KR0142248B1 - An automatic count device and a method for count thereof - Google Patents

An automatic count device and a method for count thereof

Info

Publication number
KR0142248B1
KR0142248B1 KR1019950009193A KR19950009193A KR0142248B1 KR 0142248 B1 KR0142248 B1 KR 0142248B1 KR 1019950009193 A KR1019950009193 A KR 1019950009193A KR 19950009193 A KR19950009193 A KR 19950009193A KR 0142248 B1 KR0142248 B1 KR 0142248B1
Authority
KR
South Korea
Prior art keywords
data
sensor
sensor unit
information
unit
Prior art date
Application number
KR1019950009193A
Other languages
Korean (ko)
Other versions
KR960039765A (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 KR1019950009193A priority Critical patent/KR0142248B1/en
Publication of KR960039765A publication Critical patent/KR960039765A/en
Application granted granted Critical
Publication of KR0142248B1 publication Critical patent/KR0142248B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

본 발명은 동일한 공간 및 동일시간에 발생되는 복수의 현상을 파악하고, 이를 기초로 필요로 되는 데이터로 가공하여 컴퓨터에 송신시킴으로써 자동으로 게이트를 통과하는 사람의 수를 카운트할 수 있는 자동카운트장치 및 카운트방법을 제공하기 위한 것이다.The present invention is an automatic counting device that can count the number of phenomena occurring at the same space and at the same time, and process the data into the necessary data based on this and transmit the data to a computer to automatically count the number of people passing through the gate. To provide a counting method.

본 발명에 다른 자동카운트장치는, 각각 센서유니트(1. 0,0. 0; 1. 1, 0. 1; ----- ; 1. 7, 0. 7)로 이루어진 각각의 기본세트(1~8)로 구성되면서 사람이 출입하는 각 게이트에 설치되어 게이트로의 사람의 진입여부에 따라 출입하는 사람의 이동 방향등의 신호정보를 발생시키는 센서부(30)와; 이 센서부(30)로부터의 상황 신호를 입력받는 신호입력부(21)와, 상기 센서부(30)로부터의 입력된 신호를 제어하는 신호제어부(22), 입력된 신호를 각 상황별로 분류하여 필요한 데이터로 가공처리하는 데이터 가공 및 편집부(23) 및, 가공된 데이터의 역방향 통신을 수행하는 데이터 통신부(24)로 이루어진 제어부(20) 및, 이 제어부(20)로부터 입력된 모든 정보를 분석 처리하여 출입하는 고객의 이동 방향에 따라 출입 고객의 수를 판단하여 그 정보를 이용할 수 있도록 제공하는 호스트 컴퓨터(10)를 구비하여 구성된 것을 특징으로 한다.The automatic counting device according to the present invention includes a basic set of sensor units (1.0, 0, 0; 1. 1, 0.1, 1, -----; 1. 7, 0, 7), respectively. 1 to 8) and the sensor unit 30 is installed in each gate that the person enters and exits to generate signal information, such as the movement direction of the person entering and leaving according to whether the person entering the gate; The signal input unit 21 which receives the situation signal from the sensor unit 30, the signal control unit 22 that controls the input signal from the sensor unit 30, and the input signal are classified and required for each situation. A control unit 20 comprising a data processing and editing unit 23 for processing data, and a data communication unit 24 for performing reverse communication of the processed data, and analyzing and processing all information inputted from the control unit 20 It is characterized in that it is provided with a host computer 10 for determining the number of access customers according to the moving direction of the customer entering and leaving the information available.

또한 본 발명에 따른 자동카운트방법은, 출입자 고객 계수를 텍스트형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 플로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 텍스트형식으로 화면에 나타내는 단계와, 출입자 고객 계수를 이미지형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 풀로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 이미지형식으로 화면에 나타내는 단계, 센서부로부터 받은 정보를 분석하고, 분석한 정보를 막대그래프, 선그래프형식으로 나타내는 단계 및, 도움말 화면을 보여주는 단계로 이루어진 호스트용 플로우와; ID와 타이머 및 보드레이트를 설정하는 단계와, 센서부에서 이벤트를 발생시키고, 센서부로 데이터를 읽는 단계 및, 입력/출력을 판단하여 각각에 대해 카운트를 설정하는 단계로 이루어진 제어부용 플로우를 구비하여 이루어진 것을 특징으로 한다.In addition, the automatic counting method according to the present invention, process the customer customer counts in a text format, set the device and baud rate, data length, parity, stop bits and flow control, and control the data for the person in the sensor unit Communicating information, displaying the information received from the sensor unit on the screen in text format, processing the customer counts in the image format, setting the device and baud rate, data length, parity, stop bits and pull control, The sensor unit controls and processes the data on the person who communicates, and displays the information received from the sensor unit on the screen in the form of an image, analyzes the information received from the sensor unit, and analyzes the received information in the form of a bar graph and a line graph. A flow for the host, which includes a display step and a step of showing a help screen; A control flow consisting of setting an ID, a timer, and a baud rate, generating an event in the sensor unit, reading data to the sensor unit, and setting a count for each of the inputs and outputs; Characterized in that made.

Description

자동카운트장치 및 그 카운트방법Automatic Counting Device and Counting Method

제1도는 본 발명에 따른 자동카운트장치의 개략적인 구성도,1 is a schematic configuration diagram of an automatic counting device according to the present invention;

제2도는 (a)는 본 발명에 따른 자동카운트장치의 전체적인 구성을 나타낸 도면,Figure 2 (a) is a view showing the overall configuration of the automatic counting apparatus according to the present invention,

제2도(b)는 본 발명에 따른 자동카운트장치의 하드웨어적인 구성에 있어서, 제어부의 전체적인 흐름을 개략적으로 나타낸 도면,2 (b) is a diagram schematically showing the overall flow of the control unit in the hardware configuration of the automatic counting device according to the present invention;

제3도는 본 발명에 따른 자동카운트장치의 배선을 나타낸 도면3 is a diagram showing the wiring of the automatic counting device according to the present invention.

제4도는 센서유니트의 상세회로도,4 is a detailed circuit diagram of the sensor unit,

제5도는 호스트용 소프트웨어의 전체적인 프로세스흐름을 나타낸 도면,5 is a diagram showing the overall process flow of the software for the host,

제6도 내지 제12도는 호스트용 소프트웨어의 흐름을 보다 상세히 나타낸 도면,6 to 12 are views showing in more detail the flow of the software for the host,

제13도는 제어부용 소프트웨어의 전체적인 프로세스흐름을 나타낸 도면,13 is a view showing the overall process flow of the control software;

제14도 내지 제18도는 제어부용 소프트웨어의 흐름을 보다 상세히 나타낸 도면이다.14 to 18 are views showing in more detail the flow of the control software.

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

10:호스트부20:제어부10: host unit 20: control unit

30:센서부30: sensor unit

[산업상의 이용분야][Industrial use]

본 발명은 사람의 이동을 자동으로 카운트하는 자동카운트장치 및 그 카운트방법에 관한 것으로, 특히 사람의 이동방향에 따른 진행방향등을 감지하고, 이를 기초로 이동하는 사람의 수를 자동으로 카운트하는 자동카운트장치 및 그 카운트방법에 관한 것이다.The present invention relates to an automatic counting device for automatically counting a person's movement and a counting method thereof. In particular, the present invention relates to an automatic counting device based on a person's moving direction, and automatically counting the number of people moving based on the counting direction. A counting device and a counting method thereof.

[종래의 기술 및 그 문제점][Traditional Technology and Problems]

종래, 같은 형태의 물체, 즉 같은 크기, 같은 모양의 물건이 한 방향으로 이동하거나 또는 사람이 동일 방향으로 진행할 경우, 이를 카운트하기 위해서는 기계적 또는 전자적인 방법에 의해 카운트를 행하였는 바, 이는 기본적으로 전방센서와 후방센서가 있고, 이를 이용해서 거리 및 처리흐름에 의한 포인트체크(point check)를 행한 것으로서, 동일한 시간이나 공간에서 발생되는 복수의 현상은 파악할 수 없었다. 예컨대, 전철역의 출입구를 통과하는 승객의 수를 파악하기 위해서는 한사람씩 순번(한 방향)으로 소정 시간 간격을 갖고서 통과할 경우는 카운트가 가능하지만, 복수의 사람이 한 방향으로 일시에 진행할 경우에는 정확한 승객의 수를 파악하는 것이 현재의 기술로는 불가능하였다.Conventionally, when objects of the same type, that is, objects of the same size and shape, move in one direction or a person moves in the same direction, counting is performed by mechanical or electronic methods to count them. There are a sensor and a rear sensor, and by using this, a point check by distance and processing flow was performed, and a plurality of phenomena occurring in the same time or space could not be grasped. For example, in order to determine the number of passengers passing through the entrance and exit of the subway station, it is possible to count when passing by a predetermined time interval in order (one direction), but when a plurality of people proceed in one direction at a time, Determining the number of passengers was not possible with current technology.

[발명의 목적][Purpose of invention]

본 발명은 상기한 점을 감안하여 발명된 것으로, 동일한 공간 및 동일시간에 발생되는 복수의 현상, 즉 양방향으로의 입출입이 동시에 발생되는 현상을 구분하여 파악하고, 이를 기초로 필요로 되는 데이터로 가공하여 컴퓨터에 송신시킴으로써 자동으로 게이트를 통과하는 사람의 수를 카운트할 수 있는 자동카운트장치 및 그 카운트방법을 제공함에 그 목적이 있다.The present invention has been invented in view of the above, and identifies and distinguishes a plurality of phenomena occurring at the same space and at the same time, that is, phenomena occurring at the same time in both directions. It is an object of the present invention to provide an automatic counting device capable of automatically counting the number of people passing through a gate by transmitting to a computer and a counting method thereof.

[발명의 구성][Configuration of Invention]

상기 목적을 달성하기 위한 본 발명에 따른 자동카운트장치는, 각각 센서유니트로 이루어진 각각의 기본세트로 구성되면서 사람이 출입하는 각 게이트에 설치되어 게이트로의 사람의 진압여부에 따라 출입하는 사람의 이동 방향등의 신호정보를 발생시키는 센서부와; 이 센서부로부터의 상황 신호를 입력받는 신호입력부와, 상기 센서부로부터의 입력된 신호를 제어하는 신호제어부, 입력된 신호를 각 상황별로 분류하여 필요한 데이터로 가공처리하는 데이터 가공 및 편집부 및, 가공된 데이터의 양방향 통신을 수행하는 데이터 통신부로 이루어진 제어부 및, 이 제어부로부터 입력된 모든 정보를 분석 처리하여 출입하는 고객의 이동 방향에 따라 출입 고객의 수를 판단하여 그 정보를 이용할 수 있도록 제공하는 호스트컴퓨터를 구비하여 구성된 것을 특징으로 한다.The automatic counting device according to the present invention for achieving the above object is composed of each basic set consisting of the sensor unit, each person is installed in each gate that enters and exits the movement of the person entering and leaving according to whether or not the suppression of the person to the gate A sensor unit for generating signal information such as a direction; A signal input unit for receiving the situation signal from the sensor unit, a signal control unit for controlling the input signal from the sensor unit, a data processing and editing unit for classifying the input signal into the necessary data for each situation, and processing A control unit comprising a data communication unit that performs bidirectional communication of the data, and a host that analyzes and processes all the information inputted from the control unit to determine the number of access customers according to the moving direction of the accessing customer and provide the information for use. It is characterized by comprising a computer.

또한 본 발명에 따른 자동카운트방법은, 출입자 고객 계수를 텍스트형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 플로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 텍스트형식으로 화면에 나타내는 단계와, 출입자 고객 계수를 이미지형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 플로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 이미지형식으로 화면에 나타내는 단계, 센서부로부터 받은 정보를 분석하고, 분석한 정보를 막대그래프, 선그래프형식으로 나타내는 단계 및, 도움말 화면을 보여주는 단계와, 센서부에서 이벤트를 발생시키고, 센서부로 데이터를 읽는 단계 및, 입력/출력을 판단하여 각각에 대해 카운트를 설정하는 단계로 이루어진 제어부용 플로우를 구비하여 이루어진 것을 특징으로 한다.In addition, the automatic counting method according to the present invention, process the customer customer counts in a text format, set the device and baud rate, data length, parity, stop bits and flow control, and control the data for the person in the sensor unit Communicate information, display information received from the sensor unit on the screen in text format, process the customer customer count in image format, set device and baud rate, data length, parity, stop bit and flow control, The department controls the data on the person to communicate and communicates the information, and displays the information received from the sensor on the screen in the form of an image, analyzes the information received from the sensor, and displays the analyzed information in the form of a bar graph and a line graph. Step, and showing a help screen, the sensor unit generates an event, And a flow for the control unit comprising a step of reading data by a negative portion, and setting a count for each of the inputs and outputs.

[작용][Action]

상기와 같이 이루어진 본 발명은, 제어부(30)에서 인체감지용 초전형 적외선센서의 감지동작에 의해 움직이는 인체로부터 발생되는 교류적인 변화전압을 감지하고, 이를 기초로 교류증폭신호의 크기를 검사하여 사람의 진입여부에 대한 신호를 제어부(20)로 전송한다.The present invention made as described above, the control unit 30 detects the AC change voltage generated from the human body moving by the sensing operation of the pyroelectric infrared sensor for detecting the human body, and based on this by examining the magnitude of the AC amplifier signal The control unit 20 transmits a signal for entering or not.

상기 제어부(20)에서는 상기 센서부(30)로부터 전송되어온 정보신호를 통신부로부터 받아 제어 및 편집하여 호스트컴퓨터(10)로 전송하고, 호스트컴퓨터(10)는 모든 정보를 분석 및 처리하여 최종적으로 출입하는 고객의 이동방향에 따른 출입 고객의 수를 판단하여 사용자가 이 정보를 이용할 수 있도록 제공하게 된다.The control unit 20 receives the information signal transmitted from the sensor unit 30 from the communication unit, controls and edits it, and transmits it to the host computer 10. The host computer 10 analyzes and processes all the information and finally enters and exits. The number of access customers according to the moving direction of the customer is determined to provide the user to use this information.

[실시예]EXAMPLE

이하, 예시도면을 참조하여 본 발명에 따른 1실시예를 상세히 설명한다.Hereinafter, one embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 발명에 따른 자동카운트장치의 개략적인 구성도를 나타낸 것으로, 도면중 참조부호 10은 호스트컴퓨터를 나타내는 바, 이는 기존의 386급 이상의 컴퓨터이면 가능하고, 호스트컴퓨터(10)에서는 제어부(20)를 최대 256대까지 증설하여 설치할 수 있다. 이러한 호스트컴퓨터(10)는 이동하는 사람을 자동으로 카운트하고, 그에 따라 발생되는 정보를 편집하여 관리하고 있다. 또한 호스트컴퓨터(10)의 소프트웨어는 기존의 386급 이상의 컴퓨터로서 MS-WINDOW 버전 3.1 이상의 것을 기본으로 하고 있고, 각 센서부(30)로부터 발생되는 상황을 제어부(20)를 매개로 인가받아 가공처리하여 각각의 현장별 현황을 즉시 확인 가능하도록 표시해 주며, 그 현황데이터를 타업무(관련시스템)에서도 사용가능하도록 편집 및 파일링 해주는 기능을 가지고 있다. 특히, 각 센서부(30)로부터 발생된 데이터는 일반 전력선을 통하여 전송될 수 있기 때문에 기존의 데이터 통신개념과는 달리 별도의 통신케이블을 이용하지 않고 전력선(일반적인 전원플러그를 사용)을 통하여 전달되는 데이터를 가공처리하는 기능을 가지고 있다. 즉, 일반적인 전력선을 이용하여 호스트컴퓨터와의 데이터통신이 이루어짐으로써 별도의 통신설비 없이 공사가 불필요하게 된다. 그리고, 기존의 컴퓨터간의 통신에 이용되는 RS-232C를 이용한 통신도 선택적으로 사용할 수 있다.1 is a schematic configuration diagram of an automatic counting apparatus according to the present invention. In the drawing, reference numeral 10 denotes a host computer, which may be a conventional 386 or higher computer, and the host computer 10 may include a controller ( 20) can be installed by adding up to 256 units. The host computer 10 automatically counts people moving, and edits and manages information generated accordingly. In addition, the software of the host computer 10 is a conventional 386 or higher computer, which is based on MS-WINDOW version 3.1 or higher, and is processed by receiving the situation generated from each sensor unit 30 through the control unit 20. It displays the status of each site so that it can be checked immediately, and has the function of editing and filing the status data so that it can be used in other tasks (related systems). In particular, since data generated from each sensor unit 30 can be transmitted through a general power line, unlike a conventional data communication concept, a data line is transmitted through a power line (using a general power plug) without using a separate communication cable. It has a function to process data. That is, data communication with a host computer is performed using a general power line, so construction is unnecessary without a separate communication facility. In addition, communication using RS-232C, which is used for communication between existing computers, may be selectively used.

한편, 본 장치에서 사용되는 호스트용 소프트웨어는 통신용 소프트웨어와 업무용 소프트웨어로 구성되어 있는 바, 먼저 통신용 소프트웨어에 대해 간략히 설명하면, 통신용 소프트웨어에 있어서는 센서와의 통신에 전력선(전력통신모뎀)을 이용하여 데이터통신이 수행되고, 이는 제어부로부터 전력선으로 전송되는 데이터를 컴퓨터에서 가동되는 기본소프트웨어 또는 업무용 소프트웨어가 원활하게 기동될 수 있도록 지원해주는 인터페이스 소프트웨어이다.On the other hand, the host software used in the apparatus is composed of communication software and business software. First, the communication software is briefly described. In the communication software, data is transmitted using a power line (power communication modem) for communication with a sensor. Communication is performed, and this is interface software that enables the basic software or business software running on the computer to smoothly start the data transmitted from the control unit to the power line.

다음에, 업무용 소프트웨어는 전력모뎀을 통하여 전송되어진 데이터를 가공 편집하여 사용자가 실제상황을 확인 조회할 수 있도록 표시해줌과 더불어 터업무(기존의 타 시스템)에서도 데이터를 이용할 수 있도록 편집, 보관해주는 기능을 갖추고 있다.Next, business software processes and edits the data transmitted through the power modem so that the user can check and check the actual situation, and edit and store the data so that it can be used in other business (existing system). Equipped with.

여기서, 시스템의 초기화처리는 통신모드의 설정 및 업무용시스템의 초기화처리를 수행하는 기능으로, 각 게이트별 현황처리기능은 전체 게이트별 현황을 리얼타임으로 표시 관리한다. 또한, 각 게이트별 분포현황관리는 전체 게이트에 대한 시간대별 분포현황을 그래프로 표시 관리하는 기능이고, 각 게이트별 현황명세관리는 전체 게이트에 대한 시긴대별 현황을 명세서로 표시 및 출력할 수 있도록 관리하는 기능이다. 또한, 업무용 소프트웨어는 전체 센서에 대한 작동상태(정상 작동 상황 감지관리)를 감지하여 관리하는 상황관리기능과 타업무용 데이터를 가공편집하는 데이터관리기능을 갖추고 있다.Here, the initialization processing of the system is a function of setting the communication mode and initializing the business system. The current status processing function of each gate displays and manages the current status of all gates in real time. In addition, the distribution status management for each gate is a function to display and manage the distribution status by time zone for all the gates in a graph, and the status specification management for each gate is managed to display and output the current status for each gate as a specification. Function. In addition, the work software has a situation management function for detecting and managing an operation state (normal operation situation detection management) for all sensors and a data management function for processing and editing other work data.

한편, 제1도중 제어부(20)는 각 센서부(30)로부터 전송된 상황을 각 유형별로 분석, 파악하여 실제 필요로 되는 데이터로 가공처리하여 호스트컴퓨터(10)와의 데이터통신을 수행하는 기능을 가지고 있다.Meanwhile, the first control unit 20 performs a function of performing data communication with the host computer 10 by analyzing and grasping the situation transmitted from each sensor unit 30 for each type, processing the data into actual necessary data. Have.

제2도(A)는 본 발명에 따른 자동카운트장치의 하드웨어의 전체적인 구성도를 개략적으로 나타낸 도면으로, 제2도(A)에 있어서 센서부(30)는 사람이 출입하는 각 게이트에 설치되어 사람의 진입 여부에 따라 출입하는 사랍의 수에 대한 신호 정보를 발생시켜 제어부(20)로 전송하게 된다. 즉, 센서부에서는 현장에서 발생되는 상황을 제어부에 전달해주는 기능을 가지고 있다. 여기서는 실제 발생되는 현상을 각 유형별로 세분화하기 위한 방법으로 1세트(최대 1.5m대응)의 개념을 이용한다. 여기서 1세트개념이란 일정한 크기, 길이 즉 일정한 공간안에서 발생되는 복수현상(가상 데이터)으로부터 하나의 실제현상(실제 데이터)으로의 가공을 하기 위해 필요로하는 하드웨어적인 최소단위이다. 그러므로, 1세트에는 길이 1.2m, 넓이 0.3m, 높이 0.05m의 크기에 8개의 센서(상황감지 포인트)를 가지고 있으며, 각각의 센서(상황감지 최소단위)로부터 일어나는 현상을 제어부에 독립적으로 전달해주는 역할을 하고 있다. 각각의 센서(1세트)는 제어부와 독립적으로 작동되며, 제어부 하나에 2개의 센서(2세트)까지 동시에 제어할 수 있다. 상기 제어부(20)에서는 상기 센서부(30)로부터 전송되어온 정보신호를 통신부로부터 받아 제어 및 편집하여 호스츠컴퓨터(10)로 전송하고, 호스트컴퓨터(10)는 모든 정보를 분석 및 처리하여 최종적으로 출입하는 고객의 이동방향에 따른 출입 고객의 수를 판단하여 사용자가 이 정보를 이용할 수 있도록 제공하게 된다.FIG. 2A is a view schematically showing the overall configuration of the hardware of the automatic counting device according to the present invention. In FIG. 2A, the sensor unit 30 is installed at each gate through which a person enters and exits. Signal information about the number of people entering and leaving according to whether or not a person enters is generated and transmitted to the control unit 20. That is, the sensor unit has a function of transmitting a situation occurring in the field to the controller. Here, the concept of one set (maximum 1.5m correspondence) is used as a method to subdivide the actual phenomenon by type. Here, the concept of one set is the minimum hardware unit necessary for processing from a plurality of phenomena (virtual data) generated in a certain space to a single real phenomena (actual data). Therefore, one set has eight sensors (situation detection points) in length 1.2m, width 0.3m and height 0.05m, and independently transmits the phenomenon occurring from each sensor (minimum unit of situation detection). Playing a role. Each sensor (one set) operates independently of the control unit, and up to two sensors (two sets) can be simultaneously controlled by one control unit. The controller 20 receives the information signal transmitted from the sensor unit 30 from the communication unit, controls and edits the information signal, and transmits the same to the host computer 10. The host computer 10 analyzes and processes all the information and finally processes the information. The number of access customers according to the moving direction of the accessing customers is determined to provide the user with the information.

제2도(B)는 제어부(20)의 전체 흐름을 개략적으로 나타낸 구성도로서, 제어부(20)는 상기 센서부(30)로부터의 상황신호를 입력받는 기능을 갖춘 신호입력부(21)와, 상기 센서부(30)로부터 입력된 신호를 제어하는 기능을 갖춘 신호제어부(22), 입력된 신호를 각 상황별로 분류하여 필요한 데이터로 가공처리를 수행하는 데이터 가공 및 편집부(23) 및, 가공된 데이터를 호스트컴퓨터(10)의 지시에 따라 양방향 통신을 수행하는 데이터 통신부를 포함하고 있다.2B is a block diagram schematically illustrating the overall flow of the control unit 20. The control unit 20 includes a signal input unit 21 having a function of receiving a status signal from the sensor unit 30, A signal control unit 22 having a function of controlling a signal input from the sensor unit 30, a data processing and editing unit 23 for classifying the input signal for each situation and processing the data into necessary data; It includes a data communication unit for performing data bidirectional communication in accordance with the instructions of the host computer 10.

제3도는 본 발명에 따른 장치의 배선을 나타낸 도면으로, 도면중 참조부호1 내지 8은 기본 세트로서, 각각의 기본세트는 2개의 센서유니트(1. 0, 0. 0; 1. 1, 0. 1; ------; 1. 7, 0. 7)로 이루어지고, 상기한 다수의 기본세트(1~8)에 의해 센서부(30)가 구성된다.3 is a diagram showing the wiring of the apparatus according to the present invention, in which reference numerals 1 to 8 are basic sets, and each basic set includes two sensor units (1.0, 0.0; 1.0, 1, 0). 1, ------; 1. 7, 0, 7), and the sensor unit 30 is constituted by the plurality of basic sets 1 to 8 described above.

또한, 제어부(20)는 상기 센서부(30)로부터 출력되는 H 또는 L의 출력신호에 인가받아 전체 장치를 제어하는 CPU로 구성되어 있다.In addition, the control unit 20 is configured of a CPU that is applied to the H or L output signal output from the sensor unit 30 to control the entire device.

제4도는 각각의 센서유니트(1. 0, 0. 0--------)의 상세회로도를 나타낸 것으로, 이하 이를 참조하여 각각의 센서유니트의 동작에 대해 상세히 설명한다.4 is a detailed circuit diagram of each sensor unit (1.0, 0.0-0 ----), and the operation of each sensor unit will be described in detail with reference to the following.

각각의 센서유니트(1. 0, 0. 0----)는 인체감지용 초전형 적외선센서의 감지동작에 의해 움직이는 인체로부터 발생되는 교류적인 변화전압을 감지하고, 이를 기초로 교류증폭신호의 크기를 검사하여 사람의 진입여부에 대한 신호를 제어부(20)로 전송하는 기능을 갖추고 있다.Each sensor unit (1.0, 0. 0 ----) detects the AC change voltage generated by the human body moving by the sensing operation of the pyroelectric infrared sensor for detecting the human body, and based on this, It checks the size and has a function of transmitting a signal to the controller 20 about whether or not a person enters.

먼저, 초전형 적외선센서(IR1)에 의해 사람의 진입여부가 감지되면, 그 출력신호가 캐패시터(C2) 및 저항(R3)을 매개로 OP앰프(U1A)의 일단에 인가되어 1차로 57배 교류증폭되고, 이와 같이 교류증폭된 신호는 캐패시터(C5) 및 저항(R9)을 매개로 OP앰프(U1B)의 일단에 인가되어 2차로 53배 증폭된다. 따라서, 최종적으로 57×53 = 3021배의 증폭이 이루어진다.First, when the human entry is detected by the pyroelectric infrared sensor IR1, the output signal is applied to one end of the OP amplifier U1A via the capacitor C2 and the resistor R3, and is 57 times AC first. The signal amplified and AC-amplified in this way is applied to one end of the OP amplifier U1B through the capacitor C5 and the resistor R9 and amplified by 53 times. Therefore, 57 × 53 = 3021 times amplification is finally achieved.

이와 같이 증폭된 신호는 비교기(U2A)의 일단에 인가되어 가변저항(VR1)에 의해 설정되는 소정 크기의 직류기준전압과 비교된다. 비교기(U2A)에 의한 비교 결과 OP앰프(U1B)로부터 인가되는 신호가 직류기준전압 보다 더 클 경우, 하이레벨의 신호가 비교기(U2A)로부터 출력되고, OP앰프(U1B)로부터 인가되는 신호가 직류기준전압 보다 더 작을 경우 로우레벨의 신호가 비교기(U2A)로부터 출력된다.The signal amplified in this way is applied to one end of the comparator U2A and compared with a DC reference voltage of a predetermined magnitude set by the variable resistor VR1. As a result of the comparison by the comparator U2A, when the signal applied from the OP amplifier U1B is larger than the DC reference voltage, a high level signal is output from the comparator U2A, and the signal applied from the OP amplifier U1B is DC When the voltage is smaller than the reference voltage, a low level signal is output from the comparator U2A.

이때, 비교기(U2A)로부터 하이레벨의 신호가 출력되어 트랜지스터(Q1)의 베이스에 인가되면, 상기 pnp트랜지스터(Q1)가 오프되고, 따라서 출력단(OUT)으로부터 하이레벨의 신호가 출력되게 된다. 이에 따라 이 하이레벨의 신호가 제어부(20)의 포토커플러를 동작시킴으로써 상기 제어부(20)는 하나의 센서 유니트(1.0,0.0,--------)에 의해 감지된 사람의 진입을 판단할 수 있게 된다.At this time, when the high level signal is output from the comparator U2A and applied to the base of the transistor Q1, the pnp transistor Q1 is turned off, so that the high level signal is output from the output terminal OUT. Accordingly, the signal of this high level operates the photocoupler of the control unit 20 so that the control unit 20 detects the entry of a person detected by one sensor unit (1.0,0.0, --------). You can judge.

한편, 비교기(U2A)로부터 로우레벨의 신호가 출력되어 pnp트랜지스터(Q1)의 베이스에 인가되면, 상기 트랜지스터(Q1)가 온되고, 따라서 출력단(OUT)으로부터 로우레벨의 신호가 출력되게 된다. 이에 따라 이 로우레벨의 신호가 제어부(20)의 포토커플러에 인가됨으로써 상기 제어부(20)는 사람이 진입하지 않았음을 판단할 수 있게 된다.On the other hand, when the low level signal is output from the comparator U2A and applied to the base of the pnp transistor Q1, the transistor Q1 is turned on, so that the low level signal is output from the output terminal OUT. Accordingly, the low level signal is applied to the photocoupler of the controller 20 so that the controller 20 can determine that no person has entered.

이와 같이 상기와 동일한 동작에 따라 각 센서유니트(1. 0, 0. 0, 1. 1, 0. 1------)가 동작하여 그에 따른 출력신호가 제3도에 도시된 바와 같이 제어부(20)의 대응하는 입력단(1. 0, 0. 0, 1. 1, 0. 1------)에 인가된다.As described above, each sensor unit (1.0, 0.0, 1.0, 1.1, 0.1) is operated according to the same operation as described above, and the output signal corresponding thereto is shown in FIG. Is applied to corresponding inputs (1.0, 0.0, 1.0, 1.1, 0.1) of the control unit 20.

상기 제어부(20)는 각 센서유니트(1. 0, 0. 0, 1. 1, 0. 1------)로부터 전송되어오는 신호의 순서에 의해 사람의 진입 방향을 결정하게 된다.The control unit 20 determines the direction of entry of a person by the sequence of signals transmitted from each sensor unit (1.0, 0.0, 1.0, 1.1, -----).

즉, 제어부 (20)는 0. 0과 1. 0, 0. 1과 1. 1, 0. 2와 1. 2, 0. 3과 1. 3, 0. 4와 1. 4, 0. 5와 1. 5, 0. 6과 1. 6, 0. 7과 1. 7의 형태로 쌍을 이루고 있기 때문에, 각각의 신호진입 순서에 의하여 진행방향이 결정되게 된다.That is, the control unit 20 is 0, 0 and 1.0, 0, 1 and 1. 1, 0, 2 and 1. 2, 0. 3 and 1. 3, 0. 4 and 1. 4, 0.5. And 1. 5, 0. 6 and 1. 6, 0. 7, and 1. 7, so the direction of travel is determined by the order of signal entry.

예컨대, 0.0과 1.0으로 이루어진 쌍의 경우, 0.0으로부터의 신호가 1.0에 비해 제어부(20)에 빨리 들어왔을 경우, 진행방향은 0.0에서 1.0으로 된다. 또한, 1.0으로부터의 신호가 0.0에 비해 제어부(20)에 빨리 들어왔을 경우, 진행방향이 1.0에서0.0으로 진행하는 것으로 한다.For example, in the case of a pair consisting of 0.0 and 1.0, when the signal from 0.0 enters the control unit 20 earlier than 1.0, the traveling direction is from 0.0 to 1.0. In addition, when the signal from 1.0 enters the control part 20 earlier than 0.0, the advancing direction shall advance from 1.0 to 0.0.

이와 같이 하여 각각의 쌍에 대한 진행방향이 결정되게 된다.In this way, the advancing direction for each pair is determined.

다음에, 각각에서 발생되어진 상황을 카운트하고, 카운트되어진 데이터를 ID별로 구분하여 보관 기억하게 되며, 보관 기억된 데이터는 상위 컴퓨터에 의해 메인 켬퓨터로 전력선을 이용하여 전달되게 된다.Next, the situation generated in each is counted, and the counted data is classified and stored by ID, and the stored data is transferred to the main ON computer by the host computer using the power line.

제5도는 호스트용 소프트웨어의 처리를 위한 전체적인 흐름도를 나타낸 것이고, 제6도 내지 제 12도는 그 처리흐름을 보다 상세히 나타낸 것으로, 이하 제6도 내지 제12도를 참조하여 호스트용 소프트웨어의 처리에 대해 상세히 설명한다.FIG. 5 shows an overall flow chart for the processing of the software for the host, and FIGS. 6 to 12 show the processing flow in more detail. Hereinafter, the processing of the software for the host will be described with reference to FIGS. It explains in detail.

먼저, 단계1에서는 자료를 초기화하여 자료화일을 만들고, 단계2로 진행한 다음 시츄에이션 텍스트(Situation Text)를 선택하는 경우 단계3으로 진행하여 출입자 고객 계수를 텍스트(Text)형식으로 처리하고, 통신접속과 통신환경, 통신환경등록 및 통신회선절단을 처리하게 되며, 이후 단계4로 진행된다. 단계4에서는 SETPORT의 선택여부에 따라 단계5나 단계9로 진행된다. SETPORT를 선택하는 경우 단계5의 ConProc루틴으로 진행되어 단계6을 거쳐 Set의 선택여부를 결정하는 단계7을 수행하게되고, 이후 단계8에서는 Close의 선택여부에 따라 단계6을 반복할 것인지 단계9로 진행할 것인지를 결정하게된다.First, in step 1, the data is initialized to create a data file, and the process proceeds to step 2, and when the situation text is selected, the process proceeds to step 3 to process the accessor customer count in the form of text, and the communication connection. And communication environment, communication environment registration and communication line cutting. In step 4, the process proceeds to step 5 or step 9 depending on whether SETPORT is selected. If the SETPORT is selected, the process proceeds to the ConProc routine of step 5 to perform step 7 of determining whether to select the set through step 6, and then, in step 8, to repeat step 6 depending on whether to select close or not, to step 9 You will decide whether to proceed.

단계9로 진행되게 되면 접속/비접속의 선택여부에 따라 단계13으로 진행되어 포트접속여부를 선택하게되고, 단계10으로 진행되어 통신연결이 되는 경우는 EDC_Close Connection으로 진행되어 통신통로의 이벤트(Event)가 일어나는 것을 무시하고, 단말장치의 연결을 닫게되어 통신장치를 닫게됨으로써 전기LAN에서의 데이터를 받지 않게되며, 단계13으로 진행된다. 단계10에서 통신연결이 되지 않은 경우는 EDC_Open Connection루틴으로 진행되어 접속한 통신통로를 열고 EDC_Setup Connectin루틴으로 진행되게 됨으로써 단계11로 진행된다.If the process proceeds to step 9, the process proceeds to step 13 depending on whether the connection / disconnection is selected. If the communication connection is proceeded to step 10, the process proceeds to the EDC_Close connection and the event of the communication path (Event Ignoring), closing the connection of the terminal device to close the communication device will not receive data from the electrical LAN, and proceeds to step 13. If the communication connection is not established in step 10, the process proceeds to the EDC_Open Connection routine to open the connected communication path and proceeds to the EDC_Setup Connectin routine to proceed to step 11.

이후 단계11에서는 접속할 장치의 정보를 얻어 보드레이트(BaudRate)를 설정하게 되고, 데이터크기를 설정하게 되며, 이후 패리티를 설정하고, StopBit를 설정하게 되며, H/W FlowControl을 설정하고, S/W FlowControl을 설정함으로써 접속할 장치에 설정한 자료를 등록하게 된다. 이후, 단계12에서 에러없이 등록이 된 경우는 통신경로에 문자가 들어있는지 검사하게 되고, 단말장치를 초기화한 후 다음 단계인 단계13으로 진행되며, 만약 단계12에서 에러가 등록된 경우는 통신접속을 닫고 단계13으로 진행된다.Subsequently, in step 11, the information on the device to be accessed is set, the baud rate is set, the data size is set, the parity is set, the stop bit is set, the H / W FlowControl is set, and the S / W is set. By setting up FlowControl, you can register the data set in the device to be connected. Thereafter, if the registration is made without error in step 12, it is checked whether there is a character in the communication path, and after initializing the terminal device, the process proceeds to the next step, step 13, if the error is registered in step 12, the communication connection Close and proceed to step 13.

단계13에서는 포트접속이 된 경우에 단계14로 진행되어 전기 LAN에서 데이터를 받지 않게 되고, 마스터(Master)를 설정하며, 설정된 마스터(Master)에서 응답을 받은 후 슬레이브(Slave)를 설정함으로써 통신을 시작하게 되어 단계15로 진행된다. 또한, 단계13에서 포트접속이 되지 않은 경우는 바로 단계(15)로 진행된다. 단계15에서는 이벤트(Event)가 발생했는지의 여부에 따라 단계16과 단계17을 선택하게 된다. 이벤트(Event)가 발생한 경우는 단계16으로 진행되어 통신경로에 들어온 데이터를 마스크(Mask)하고, 통신통로에서 데이터를 읽어온 후 읽어온 데이터를 검색하여 데이터를 화면에 디스플레이하게 된다. 이벤트(Event)가 발생하지 않은 경우는 바로 다음 단계17로 진행된다. 단계17에서 Close를 선택한경우는 Situation-Image의 선택여부를 판단하는 단계18로 진행되고, Close를 선택하지 않은 경우는 단계4로 진행된다. 단계18에서는 Situation Image선택여부를 묻게 되고 Situation Image선택하는 경우는 ImgProc루틴으로 진행된다. ImgProc 루틴은 출입자 고객계수를 Image형식으로 처리하고 통신접속, 통신환경자료등록, 통신회선절단등을 처리하는 루틴이다. 이 루틴 이후 단계19에서는 SETPORT를 선택할지를 판단하게 되고, 선택하는 경우는 ConProc루틴으로 진행되어 단계20을 수행하게 된다. 단계20에서는 디바이스를 설정하게 되고, BaudRate를 설정하게 되며, 바이트길이를 설정하게 된다. 이후, 패리티를 설정하게 되고, StopBit를 설정한 후 FlowControl을 설정하여 단계21로 진행된다. 단계21에서 Set를 설정한 경우는 설정한 자료를 등록한 후 단계22로 진행하고 Set를 선택하지 않은 경우는 바로 단계22로 진행된다. 단계22에서는 Close를 선택할 것인지를 판단하여 Close를 선택한 경우는 바로 단계23으로 진행되지만, 그렇지 않은 경우는 단계20을 반복 수행하게 된다. 단계23에서는 접속/비접속의 선택을 판단하게 되며 선택하지 않는 경우는 바로 단계24로 진행되고, 선택하는 경우는 단계25로 진행된다.In step 13, when the port is connected, the process proceeds to step 14, where data is not received from the electric LAN, master is set, communication is established by receiving a response from the set master, and slave. The process then proceeds to step 15. In the case where the port is not connected in step 13, the process proceeds to step 15 immediately. In step 15, steps 16 and 17 are selected according to whether an event has occurred. If an event occurs, the process proceeds to step 16 to mask the data entered into the communication path, read the data from the communication path, search the read data, and display the data on the screen. If no event occurs, the process proceeds to step 17 immediately following. In the case of selecting Close in step 17, the process proceeds to step 18 in which it is determined whether to select the Situation-Image, and proceeds to step 4 in the case of not selecting Close. In step 18, it is asked whether or not to select the Situation Image. If the Situation Image is selected, the routine proceeds to the ImgProc routine. ImgProc routine is a routine that processes the accessor customer count in the form of Image, and handles communication connection, communication environment data registration, and communication line cutting. After this routine, in step 19, it is determined whether to select SETPORT, and if so, the procedure proceeds to the ConProc routine to perform step 20. In step 20, the device is set, the BaudRate is set, and the byte length is set. Thereafter, parity is set, StopBit is set, and FlowControl is set, and the process proceeds to step 21. If Set is set in step 21, the set data is registered and then the procedure goes to step 22. If Set is not selected, the procedure goes to step 22 immediately. In step 22, it is determined whether to select Close. If it is selected, the process proceeds directly to step 23, but otherwise, step 20 is repeated. In step 23, the selection of the connection / disconnection is determined. If no selection is made, the process proceeds directly to step 24;

단계25에서는 통신 연결이 된 경우는 EDC_Close Connection으로 진행되어 단계26을 수행하게 된다. 단계26에 있어서 통신경로의 이벤트(Event)가 일어나는 것을 무시하는 경우는 단말장치의 연결을 닫고 통신장치를 닫게 되어 전기 LAN에서의 데이터를 받지 않게 되며 이후, 단계24로 진행된다. 단계25에 있어서 통신연결이 되지 않은 경우는 EDC_Open Connection으로 진행되어 접속한 통신경로를 열게 된다. 이후, EDC_Open Connection루틴으로 진행되어 단계27을 수행하게 된다. 단계27에 있어서는 접속할 장치의 정보를 얻어 BaudRate를 설정하게 되고, 데이터크기를 설정한 후 패리티를 설정하게 된다. 이후 StopBit를 설정한 후, H/W FlowControl을 설정하고 S/W FlowControl을 설정하게되며 접속할 장치에 설정한 자료를 등록한 후 단계28로 진행된다. 단계28에서 에러없이 등록이 된 경우는 통신경로에 문자가 들어왔는지를 검사하고, 단말장치를 초기화한 후 단계24로 진행되지만, 에러가 있는 경우는 통신접속을 닫은 후 단계24로 진행된다. 단계24에서는 Port접속이 되는 지를 판단하게 되고, 접속이 된느 경우는 단계29를 수행하게 된다. 단계29에서는 전기LAN에서 데이터를 받지않고 마스터(Master)를 설정하게 되며, 설정된 마스터(Master)에 응답을 받은 후, 슬레이브(Slave)를 설정하여 통신을 시작하게 되며 이후 단계28로 진행된다. 단계24에서 포트접속이 되지 않은 경우는 단계30으로 진행되어 이벤트(Event)의 발생을 판단하게 된다. 이벤트(Event)가 발생된 경우는 단계31을 수행하게 되어 먼저 통신통로에 들어온 데이터를 마스크(Mask)하고 통신통로에서 데이터를 읽어오며, 읽어온 데이터를 검색한 후 데이터를 화면에 디스플레이한 후 단계32로 진행된다. 또한, 단계30에 있어서 이벤트(Event)가 발생하지 않은 경우는 바로 단계30으로 진행되어 Close선택여부를 판단한다. 단계32에서 Close를 선택하지 않는 경우는 다시 단계19로 돌아가 다음 단계를 수행하게 된다. Close가 선택된 후 단계33에 있어서는 Analysis선택여부를 판단하게 되며 선택하지 않는 경우는 바로 단계34로 진행되고, 선택하는 경우는 센서로 받은 데이터를 분석하고 데이터를 막대그래프, 선그래프모양을 나타내는 AnaProc으로 진행된다. 이 루틴 이후 단계35에서는 날짜를 입력하게 되고 년, 월, 일, Gate, 그래프모양을 선택하게 되며, 이후 단계36으로 진행된다. 단계36에서는 listPrint선택여부에 따라 선택된 자료를 List형식으로 Print할 것인지 단계37로 진행할 것인지를 판단하게 되며, 단계37에서는 GraphPrint를 선택할 것인지를 판단하게 되며, 선택하는 경우는 선택된 자료를 Graph형식으로 프린트한 후 단계38로 진행하며 그렇지 않은 경우는 바로 단계38로 진행된다. 이후 단계38에서는 Close를 선택할 것인지를 판단하게 되며 선택하는 경우는 바로 단계34로 진행된고 그렇지 않은 경우는 단계35를 다시 수행하게 된다. 단계34에서는 About를 선택할것인지를 판단하게되고 선택하는 경우는 도움말화면을 나타내는 AboutProc루틴으로 진행된어 도움말화면을 보여준 후 단계39로 진행되게 된다. 또한, 단계34에서 About를 선택하지 않는 경우는 바로 단계39로 진행되어 모든 작업을 종료하는 Exit루틴의 선택여부를 판단하게 된다. 단계39에서 Exit루틴을 선택하지 않는 경우는 단계2로 돌아가 다음 단계를 수행하게 되며, Exit를 선택하는 경우는 종료된다.In step 25, when the communication connection is established, the process proceeds to EDC_Close Connection, and step 26 is performed. In the case of disregarding the occurrence of an event of the communication path in step 26, the connection of the terminal device is closed and the communication device is closed so that data from the electric LAN is not received, and then the process proceeds to step 24. If no communication connection is made in step 25, the process proceeds to the EDC_Open Connection to open the connected communication path. After that, the process proceeds to the EDC_Open Connection routine to perform step 27. In step 27, the information on the device to be connected is obtained to set the BaudRate, the data size is set, and then the parity is set. After setting StopBit, H / W FlowControl is set and S / W FlowControl is set. After registering the data set in the device to be connected, the process proceeds to step 28. If the registration is made without error in step 28, it is checked whether a character has entered the communication path, and after the terminal device is initialized, the process proceeds to step 24. If there is an error, the process proceeds to step 24 after closing the communication connection. In step 24, it is determined whether the port is connected, and in case of connection, step 29 is performed. In step 29, the master is set up without receiving data from the electric LAN. After receiving the response from the set master, the slave is set up to start communication, and then the process proceeds to step 28. If the port is not connected in step 24, the process proceeds to step 30 to determine the occurrence of an event. If an event occurs, step 31 is performed. First, mask the data entered into the communication path, read the data from the communication path, search for the read data, and then display the data on the screen. Proceed to 32. If no event occurs in step 30, the flow proceeds directly to step 30 to determine whether to select Close. If Close is not selected in Step 32, the process returns to Step 19 to perform the next step. After selecting Close, in Step 33, it is determined whether Analysis is selected. If not, it proceeds to Step 34. If it is selected, AnaProc analyzes the data received by the sensor and displays the data in the form of bar graph and line graph. Proceed. After this routine, in step 35, a date is inputted, and a year, month, day, gate, and graph shape are selected, and then the process proceeds to step 36. In step 36, it is determined whether or not to print the selected data in list format or step 37 in accordance with whether or not listPrint is selected. In step 37, it is determined whether or not to select GraphPrint. The process then proceeds to step 38, otherwise it proceeds directly to step 38. Thereafter, in step 38, it is determined whether to select Close, and if it is selected, the process proceeds directly to step 34, in which case, step 35 is performed again. In step 34, it is determined whether to select About. If the selection is made, the procedure proceeds to step 39 after showing the help screen with the AboutProc routine indicating the help screen. In addition, if About is not selected in step 34, the process proceeds directly to step 39, where it is determined whether an exit routine for completing all operations is selected. If the exit routine is not selected in step 39, the process returns to step 2 and the next step is performed.

제13도는 제어부용 소프트웨어의 전체적인 흐름도를 나타낸 것이고, 제14도 내지 제18도는 그 처리흐름을 보다 상세히 나타낸 것으로, 이하 제14도 내지 제18도는 그 처리흐름을 보다 상세히 나타낸 것으로, 이하 제14도 내지 제18도를 참조하여 제어부용 소프트웨어의 처리에 대해 상세히 설명한다.FIG. 13 shows the overall flow chart of the software for the controller, and FIGS. 14 to 18 show the processing flow in detail, and FIGS. 14 to 18 show the processing flow in detail, and FIG. The processing of the software for the control unit will be described in detail with reference to Figs.

먼저, 단계101에서는 ID에이터를 셋트하고 타이머를 50msec로 설정한 후 BaodRate를 2400bps로 설정한다. 단계102에서는 Rx 데이터가 들어왔는지를 판단하여 들어오지 않은 경우는 바로 다음 단계103으로 진행되며, 데이터가 들어온 경우는 단계104로 진행되어 RXDATA가 IDData와 같은지를 판단해서 동일한 경우는 단계105를 수행하게 되고 동일하지 않은 경우는 단계103으로 진행되어 센서로 데이터를 읽게 된다. 단계106에서는 센서가 0. 0으로 셋트되었는지를 판단하게 되며 셋트된 경우는 단계107로 진행되고 그렇지 않은 경우는 단계109로 진행된다. 단계107로 진행된 경우는 Dir_in이 0으로 셋트되었는지를 판단해서 0으로 셋트된 경우는 단계115로 진행되며, 그렇지않은 경우는 단계108로 진행되어 Dir_out이 10으로 셋트되었는지를 판단해서 셋트된 경우는 단계115로 진행되고, 셋트되지 않은 경우는 Dir_in을 00으로 세트하고, TM00_ON을 클리어하며 TM00_DLY를 클리어하는 단계를 거쳐 단계115로 진행한다. 상기 단계106에 있어서 센서가 0. 0으로 세트되지 않은 경우는 단계109로 진행되어 Dir_in이 00으로 세트되었는지를 판단하게 되어 세트되지 않은 경우는 바로 단계115로 진행되며, Dir_in이 00으로 세트된 경우는 TM00_ON을 세트한 후 단계110으로 진행된다. 단계110에서는 센서가 10으로 셋트되었는지를 판단하게 되고 센서가 10으로 세트되지 않은 경우는 단계112로 진행되고, 센서가 10으로 세트된 경우는 단계111로 진행된다. 다시 단계111에서 Dir_in이 10으로 세트된 경우는 단계115로 진행되고, Dir_in이 10으로 세트되지 않은 경우는 Dir_in을 10으로 세트한 후 단계115로 진행된다. 그리고, 단계110에서 센서가 10으로 셋트되지않은 경우는 단계115로 진행된다. 단계111에서는 Dir_in이 10으로 세트되었는지를 판단하게 되고 10으로 세트된 경우는 바로 단계115로 진행되고, 10으로세트되지 않은 경우는 Dir_in을 10으로 세트한 후 단계115를 수행하게 된다.First, in step 101, the ID setter is set, the timer is set to 50 msec, and then BaodRate is set to 2400 bps. In step 102, if it is determined that Rx data has been entered, the flow proceeds directly to the next step 103. If data is entered, the flow proceeds to step 104. If the data is the same, it is determined whether RXDATA is the same as IDData, and if it is the same, step 105 is performed. If not, the process proceeds to step 103 where data is read by the sensor. In step 106, it is determined whether the sensor is set to 0.0. If it is set, the process proceeds to step 107; otherwise, the process proceeds to step 109. If the process proceeds to step 107, it is determined whether Dir_in is set to 0. If it is set to 0, the process proceeds to step 115. Otherwise, the process proceeds to step 108, and if it is set to determine whether the Dir_out is set to 10, the process proceeds to step 108. In step 115, if it is not set, Dir_in is set to 00, TM00_ON is cleared, and TM00_DLY is cleared. In step 106, if the sensor is not set to 0.0, the process proceeds to step 109 to determine whether Dir_in is set to 00. If not, the process proceeds to step 115. If Dir_in is set to 00, Proceeds to step 110 after setting TM00_ON. In step 110, it is determined whether the sensor is set to 10. If the sensor is not set to 10, the process proceeds to step 112, and if the sensor is set to 10, the process proceeds to step 111. FIG. If Dir_in is set to 10 in step 111, the process proceeds to step 115. If Dir_in is not set to 10, the process proceeds to step 115 after setting Dir_in to 10. If the sensor is not set to 10 in step 110, the process proceeds to step 115. In step 111, it is determined whether Dir_in is set to 10. If it is set to 10, the process proceeds directly to step 115. If it is not set to 10, step 115 is performed after setting Dir_in to 10.

단계113에서는 TM00_DLY가 세트되었는지를 판단하게 되고 세트된 경우는 단계114를 수행하게 되며, 세트되지 않은 경우는 다음의 단계115로 진행된다. 단계115에서는 센서가 1. 0으로 세트되었는지를 판단하게 되고 세트되지 않은 경우는 단계120으로, 세트된 경우는 단계116으로 진행된다. 단계116에 있어서는 Dir_out이 10으로 세트되었는지를 판단하게 되고 10으로 세트된 경우는 단계126으로 진행되고, 그렇지 않은 경우는 단계117로 진행된다. 단계117에서는 Dir_in이 00으로 세트되었는지를 판단하여 세트된 경우는 단계126으로 진행되고, 그렇지 않은 경우는 단계118을 거친 후 단계126으로 진행된다. 또한 상기 단계115에서 센서가 1.0으로 세트되지 않은 경우는 단계120으로 진행되어 Dir_out이 10으로 세트되었는지를 판단하게 되고 10으로 세트되지 않은 경우는 단계126으로 진행되며, Dir_out이 10으로 세트된 경우는 TM10_ON을 세트한 후 단계121로 진행된다. 단계121에서는 센서가 00으로 세트되었는지를 판단하게되고 세트되지 않은 경우는 단계123으로 진행되며, 세트된 경우는 단계122로 진행되어 Dir_out이 00으로 세트되었는지를 판단하게 된다. 단계122에서 Dir_out이 00으로 세트된 경우는 단계126으로 진행되고, 00으로 세트되지 않은 경우는 Dir-out을 00으로 세트한 후 단계126으로 진행한다. 또한 단계121에서 센서가 00으로 세트되지 않은 경우는 단계123으로 진행되어 Dir_out이 00으로 세트되었는지를 판단하게 된다. 이때 Dir_out이 00으로 세트된 경우는 Outcnt를 0으로 세트한 후 단계124를 거쳐 단계126으로 진행되지만, Dir_out이 00으로 세트되지 않은 경우는 단계125로 진행되어, TM10_DLY가 세트되었는지를 판단하게 된다. TM10_DLY가 세트된 경우는 단계124를 거쳐 단계126으로 진행되며, TM10_DLY가 세트되지 않은 경우는 바로 단계126으로 진행된다. 이후 단계126에서는 입력된 데이터의 모든 수가 세트되었는지를 판단하여 세트된 경우는 입력된 데이터에 1을 더한 후 In_cnt를 클리어한 후 단계127로 진행되지만, 단계126에서 입력된 데이터의 모든 수가 세트되지 않은 경우는 In_cnt만을 클리어한 후 단계127로 진행된다. 단계127에서는 In_cnt가 0으로 세트되었는지를 판단하여 세트되지 않은 경우는 단계131로 진행되며, In_cnt가 0으로 세트된 경우는 In_cnt_buf에 1을 더한 후, 단계128로 진행된다. 단계128에서는 Dir_in이 1로 세트되었는지를 판단하여 1로 세트된 경우는 Dup1_in을 1로 세트한 후 단계129로 진행되고, Dir_in이 1로 세트되지 않은 경우는 바로 단계129로 진행된다. 이후 단계129에서는 in_cnt가 1로 세트되었는지를 판단하여 1로 세트된 경우는 단계130으로 진행되어 모든 데이터가 세트되었는지를 판단하게 된다. 단계130에서 모든 데이터가 세트되지 않은 경우는 바로 단계131로 진행되지만 모든 데이터가 세트된 경우는 in_cnt_buf에 1을 더한 후 단계131로 진행된다. 단계131에서는 out데이터의 모든 수가 세트되었는지를 판단하여 세트된 경우는 out데이터에 1을 추가한 다음 out_cnt를 클리어한 후 단계132로 진행되지만, 단계131에서 모든 수가 세트되지 않은 경우는 바로 out_cnt를 클리어한 후 단계132로 진행된다. 단계132에서는 out_cnt가 0으로 세트되었는지를 판단하여 세트되지 않은 경우는 단계136으로 진행되지만 out_cnt가 0으로 세트된 경우는 out_cnt_buf에 1을 더한 후 단계133으로 진행된다. 단계133에서 Dir_out이 1로 세트된 경우는 Dup1_out을 1로 세트한 후 단계134로 진행된다. 단계134에서는 out_cnt가 1로 세트된 경우는 단계135로 진행되지만 out_cnt가 1로 세트되지 않은 경우는 단계136으로 진행된다. 단계135에서는 모든 out데이터가 세트되었는지를 판단하여 세트되지 않은 경우는 단계136으로 진행되고, 모든 데이터가 세트된 경우는 out_cnt_buf에 1을 더한 후 단계136으로 진행된다. 이후 단계137에서는 out_cnt_ = out_count+out_cnt_buf가 수행된 다음 단계102로 진행된다.In step 113, it is determined whether TM00_DLY is set. If set, step 114 is performed. If not, step 115 is performed. In step 115, it is determined whether the sensor is set to 1.0, and if not, the process proceeds to step 120; In step 116, it is determined whether Dir_out is set to 10. If it is set to 10, the process proceeds to step 126; otherwise, the process proceeds to step 117. In step 117, it is determined whether Dir_in is set to 00, and if it is set, the process proceeds to step 126. Otherwise, the process proceeds to step 118 and then to step 126. If the sensor is not set to 1.0 in step 115, the process proceeds to step 120 to determine whether Dir_out is set to 10. If not set to 10, the process proceeds to step 126. If Dir_out is set to 10, After setting TM10_ON, the process proceeds to step 121. In step 121, it is determined whether the sensor is set to 00. If not, the process proceeds to step 123. If not, the process proceeds to step 122, and it is determined whether Dir_out is set to 00. If Dir_out is set to 00 in step 122, the process proceeds to step 126. If it is not set to 00, the process proceeds to step 126 after setting Dir - out to 00. If the sensor is not set to 00 in step 121, the process proceeds to step 123 to determine whether Dir_out is set to 00. At this time, if Dir_out is set to 00, Outcnt is set to 0 and then proceeds to step 126 via Step 124. If Dir_out is not set to 00, the procedure proceeds to Step 125 to determine whether TM10_DLY is set. If TM10_DLY is set, the process proceeds to step 126 through step 124. If TM10_DLY is not set, the process proceeds directly to step 126. Subsequently, in step 126, it is determined whether all the number of input data is set, and if it is set, it adds 1 to the input data and clears In_cnt, and then proceeds to step 127, but all the numbers of data input in step 126 are not set. If only In_cnt is cleared, the process proceeds to step 127. In step 127, it is determined whether In_cnt is set to 0, and if not set, the process proceeds to step 131. If In_cnt is set to 0, the process proceeds to Step 128 after adding 1 to In_cnt_buf. In step 128, it is determined whether Dir_in is set to 1, and if it is set to 1, the process proceeds to step 129 after setting Dup1_in to 1, and immediately proceeds to step 129 when Dir_in is not set to 1. Thereafter, in step 129, it is determined whether in_cnt is set to 1, and if it is set to 1, the flow proceeds to step 130 to determine whether all data is set. If all data is not set in step 130, the process proceeds directly to step 131. If all data is set, the process proceeds to step 131 after adding 1 to in_cnt_buf. In step 131, it is determined whether all the number of out data is set. If it is set, 1 is added to the out data, and then out_cnt is cleared. The process then proceeds to step 132. In step 132, it is determined whether out_cnt is set to 0. If not, the process proceeds to step 136. If out_cnt is set to 0, the process proceeds to step 133 after adding 1 to out_cnt_buf. If Dir_out is set to 1 in step 133, the process proceeds to step 134 after setting Dup1_out to 1. In step 134, if out_cnt is set to 1, the process proceeds to step 135, but if out_cnt is not set to 1, the process proceeds to step 136. In step 135, it is determined whether all out data is set. If not, the process proceeds to step 136. If all data is set, the process proceeds to step 136 after adding 1 to out_cnt_buf. In step 137, out_cnt_ = out_count + out_cnt_buf is performed, and then the process proceeds to step 102.

한편, 본원 발명은 상기한 실시예에 한정되는 것은 아니고, 다양하게 변형하여 실시할 수 있다.In addition, this invention is not limited to said Example, It can variously deform and implement.

즉, 상기한 실시예에서는 인체감지용 초전형 적외선센서를 센서부에서 이용하고 있기 때문에, 사람의 이동 상황만을 감지할 수 있도록 되어 있으나, 센서의 종류만을 변경시킴으로써 사람과 물건이 동시에 진행할 경우, 사람만을 카운트 할 수 있거나, 또는 물건만을 카운트할 수 있으며, 또한 사람과 물건을 모두 카운트할 수도 있다.That is, in the above embodiment, since the pyroelectric infrared sensor for detecting a human body is used in the sensor unit, only the movement state of the person can be detected, but when the person and the object proceed simultaneously by changing only the type of sensor, the person You can count only things, you can count only things, you can also count both people and things.

[발명의 효과][Effects of the Invention]

이상 설명한 바와 같이 본 발명에 위하면, 초광학센서를 이용하여 사람의 진입에 따른 진행방향등을 감지한 후, 이 결과를 자동으로 카운트하여 컴퓨터와 결합함으로써 군사와, 교통, 유통(백화점의 고객의 입출입 현황) 및 공장자동화등의 폭넓은 분야에 적용할 수 있게 된다.As described above, according to the present invention, after detecting the progress direction according to the entry of a person by using an ultra-optical sensor, the result is automatically counted and combined with a computer, military, transportation, and distribution (customers of department stores) It can be applied to a wide range of fields, such as the status of entry / exit) and factory automation.

또한, 일반적인 전력선을 이용하여 호스트컴퓨터와의 데이터통신이 이루어짐으로써 별도의 통신설비 및 공사가 불필요하게 된다.In addition, since data communication with the host computer is performed using a general power line, separate communication facilities and construction are unnecessary.

더욱이, 최대 256장소의 각각의 현장별 상황을 리얼타임으로 확인, 분석할 수 있다.Moreover, up to 256 sites can be identified and analyzed in real time for each site.

Claims (2)

각각 센서유니트(1. 0, 0. 0; 1. 1, 0. 1; ----- ; 1. 7, 0. 7)로 이루어진 각각의 기본세트(1~8)로 구성되면서 사람이 출입하는 각 게이트에 설치되어 게이트로의 사란의 진입여부에 따라 출입하는 사람의 이동 방향등의 신호정보를 발생시키는 센서부(30)와; 이 센서부(30)로부터의 상황 신호를 입력받는 신호입력부(21)와, 상기 센서부(30)로부터의 입력된 신호를 제어하는 신호제어부(22), 입력된 신호를 각 상황별로 분류하여 필요한 데이터로 가공처리하는 게이터 가공 및 편집부(23)및, 가공된 데이터의 양방향 통신을 수행하는 데이터 통신부(24)로 이루어진 제어부(20) 및; 이 제어부(20)로부터 입력된 모든 정보를 분석 처리하여 출입하는 고객의 이동 방향에 따라 출입 고객의 수를 판단하여 그 정보를 이용할 수 있도록 제공하는 호스트컴퓨터(10)를 구비하여 구성된 것을 특징으로 하는 자동카운트장치.Each one consists of each basic set (1 ~ 8) consisting of sensor units (1.0, 0, 0; 1. 1, 0. 1; -----; 1. 7, 0. 7) A sensor unit 30 installed at each gate to enter and exit to generate signal information such as a moving direction of a person entering and leaving according to whether a person enters the gate; The signal input unit 21 which receives the situation signal from the sensor unit 30, the signal control unit 22 that controls the input signal from the sensor unit 30, and the input signal are classified and required for each situation. A control unit 20 comprising a gator processing and editing unit 23 for processing data, and a data communication unit 24 for performing bidirectional communication of the processed data; And a host computer 10 which analyzes and processes all the information inputted from the control unit 20 to determine the number of access customers according to the moving direction of the accessing customers and to use the information. Automatic counting device. 출입자 고객 계수를 텍스트형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 플로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 텍스트형식으로 화면에 나타내는 단계와, 출입자 고객 계수를 이미지형식으로 처리하고, 디바이스와 보드레이트, 데이터길이, 패리티, 스톱비트 및 플로우콘트롤을 설정하며, 센서부에서 출입자에 대한 자료를 제어처리하여 정보를 통신하고, 센서부로부터 받은 정보를 이미지형식으로 화면에 나타내는 단계, 센서부로부터 받은 정보를 분석하고, 분석한 정보를 막대그래프, 선그래프형식으로 나타내는 단계 및, 도움말 화면을 보여주는 단계로 이루어진 호스트용 플로우와; ID와 타이머 및 보드레이트를 설정하는 단계와, 센서부에서 이벤트를 발생시키고, 센서부로 데이터를 읽는 단계 및, 입력/출력을 판단하여 각각에 대해 카운트를 설정하는 단계로 이루어진 제어부용 플로우를 구비하여 이루어진 것을 특징으로 하는 자동카운트방법.Process the customer customer count in text format, set the device and baud rate, data length, parity, stop bit, and flow control, communicate information by controlling and controlling the data for the person in the sensor, and receive information from the sensor. On the screen in text format, process the customer counts in the image format, set the device and baud rate, data length, parity, stop bit and flow control, and control and process the data for the person in the sensor. Communicating information, displaying the information received from the sensor on the screen in an image format, analyzing the information received from the sensor, displaying the analyzed information in the form of a bar graph and a line graph, and displaying a help screen. A flow for the host; A control flow consisting of setting an ID, a timer, and a baud rate, generating an event in the sensor unit, reading data to the sensor unit, and setting a count for each of the inputs and outputs; Auto count method, characterized in that made.
KR1019950009193A 1995-04-19 1995-04-19 An automatic count device and a method for count thereof KR0142248B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950009193A KR0142248B1 (en) 1995-04-19 1995-04-19 An automatic count device and a method for count thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950009193A KR0142248B1 (en) 1995-04-19 1995-04-19 An automatic count device and a method for count thereof

Publications (2)

Publication Number Publication Date
KR960039765A KR960039765A (en) 1996-11-25
KR0142248B1 true KR0142248B1 (en) 1998-07-01

Family

ID=19412494

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950009193A KR0142248B1 (en) 1995-04-19 1995-04-19 An automatic count device and a method for count thereof

Country Status (1)

Country Link
KR (1) KR0142248B1 (en)

Also Published As

Publication number Publication date
KR960039765A (en) 1996-11-25

Similar Documents

Publication Publication Date Title
CN107289949B (en) Indoor guidance identification device and method based on face identification technology
Horswill Specialization of perceptual processes
Ahmetovic et al. Impact of expertise on interaction preferences for navigation assistance of visually impaired individuals
JP5091095B2 (en) Motion detection device and motion detection method
KR20150075639A (en) Collaborative robotic control system
KR0142248B1 (en) An automatic count device and a method for count thereof
CN107067525A (en) A kind of gate control system personnel's counting device and system
CN112396997B (en) Intelligent interactive system for shadow sand table
US5276617A (en) Transaction processing system and method
EP4002328A1 (en) Artificial assistance method, related devide and system
KR20220040684A (en) KIOSK with infection prevention and security functions
JP7124738B2 (en) GATE SETTING LEARNING SYSTEM, INFORMATION PROCESSING DEVICE, GATE SETTING LEARNING METHOD, AND PROGRAM
JPH0495794A (en) Entry/leave controlling apparatus
CN114237250B (en) Navigation suggestion route generation method and device in target area and electronic equipment
JPH1068634A (en) Guide system and portable guide unit therefor
JP2020123122A (en) Teacher data generation device, gate setting learning system, teacher data generation method, and teacher data generation program
Naresh et al. Brain controlled car for disabled using artificial intelligence
KR101701915B1 (en) 3D entrance movement line tracking system and method
WO2022074722A1 (en) Information processing system, information processing method, and program storage medium
KR20000000397A (en) An administration system using the finger print detector
WO2023106612A1 (en) Method and system for controlling robot
KR102586144B1 (en) Method and apparatus for hand movement tracking using deep learning
WO2023200130A1 (en) Equipment using rpa, and facility data collection system and method
KR102263715B1 (en) Multi sensor handover technology for parking service system
KR102244270B1 (en) HMI for enhancing recognition rate for iris and speed

Legal Events

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

Payment date: 20030402

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee