KR20100047598A - Data communication method and apparatus between pos terminal and mdb database server - Google Patents

Data communication method and apparatus between pos terminal and mdb database server Download PDF

Info

Publication number
KR20100047598A
KR20100047598A KR1020080106564A KR20080106564A KR20100047598A KR 20100047598 A KR20100047598 A KR 20100047598A KR 1020080106564 A KR1020080106564 A KR 1020080106564A KR 20080106564 A KR20080106564 A KR 20080106564A KR 20100047598 A KR20100047598 A KR 20100047598A
Authority
KR
South Korea
Prior art keywords
data
pos terminal
database server
mdb
mdb database
Prior art date
Application number
KR1020080106564A
Other languages
Korean (ko)
Other versions
KR101015140B1 (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 KR1020080106564A priority Critical patent/KR101015140B1/en
Publication of KR20100047598A publication Critical patent/KR20100047598A/en
Application granted granted Critical
Publication of KR101015140B1 publication Critical patent/KR101015140B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Abstract

PURPOSE: A data communication method among pos terminals and a MDB database server, and a device thereof are provided to protect data from all kinds of viruses by transmitting data using a preset protocol through a specific port between computers. CONSTITUTION: A POS(Point Of Sale) terminal reads a transmitted-data(300). The POS terminal decides abnormality of the data(302). The POS terminal analyzes the data(304). If communication state is normal, the POS terminal transmits the data to an MDB(Microsoft Access Database) database server(306,308). The MDB database server receives the data(310). The MDB database server extracts necessary data from the data(312).

Description

POS단말기와 엠디비 데이터베이스 서버 간의 데이터 통신 방법 및 장치{Data communication method and apparatus between POS terminal and MDB database server}Data communication method and apparatus between POS terminal and MDB database server}

본 발명은 데이터 통신 방법 및 장치에 관한 것으로, 더 상세하게는 POS 단말기와 엠디비 데이터베이스 서버 사이의 데이터 통신 방법 및 장치에 관한 것이다.The present invention relates to a data communication method and apparatus, and more particularly, to a data communication method and apparatus between a POS terminal and an MDB database server.

현재 MDB(Microsoft Access Database) 데이터베이스를 사용하는 대부분의 POS(Point Of Sale) 프로그램들은 로컬이 아닌 원격컴퓨터에서 데이터베이스를 연결하기 위해 DB(DataBase)가 저장되어 있는 서버 컴퓨터 폴더를 공유 설정 후 사용하거나 또는 네트워크 드라이브를 설정하여 연결한다.Most point of sale (POS) programs that currently use Microsoft Access Database (MDB) databases use the server computer folder where the DB (DataBase) is stored to connect to the database from a remote computer that is not local. Set up and connect a network drive.

기본적으로 MDB는 원격지 컴퓨터에서 연결을 할 수 있는 기능이 없기 때문에 위와 같이 설정하여 내부 네트워크에서만 연결되어 사용한다.Basically, MDB does not have the function to connect from a remote computer.

하지만, 이런 경우 많은 문제점을 발생시킨다. 첫째, 서버의 특정 드라이브 나 특정 폴더를 공유할 경우 바이러스(Virus), 에드웨어(Adware), 스파이웨어(Spyware), 악성코드 등으로부터 자유롭지 못하며 특히 해당 폴더에 실행파일이 존재할 경우 바이러스에 감염되면 상황에따라 백오피스측 매장관리 프로그램의 작동이 멈추는 현상까지 발생할 수 있다. 둘째, 네트워크 드라이브나 폴더 공유 방식은 내부 네트워크에 부하를 주어 트래픽(Traffic)양이 증가할 수 있으며 이는 시스템간 다른 프로그램의 사용에도 지장을 초래할 수 있다. 셋째, MDB는 원격지 컴퓨터의 연결을 허용할 수 없기 때문에 원거리에 있는 POS시스템과 통신할 수 있는 방법이 없다.However, this causes many problems. First, if you share a specific drive or folder on the server, you will not be free from viruses, adware, spyware, malware, etc. Especially if there is an executable file in that folder, As a result, the back office store management program may stop working. Second, network drive or folder sharing can put a heavy load on the internal network and increase the amount of traffic, which can also interfere with the use of other programs between systems. Third, because the MDB cannot accept connections from remote computers, there is no way to communicate with a remote POS system.

본 발명은 상기 종래기술의 문제점을 해결하기 위해 안출된 것으로, POS단말기와 MDB 데이터베이스 서버간 통신시 양 컴퓨터 간 특정 포트만 열어서 미리 규약된 프로토콜을 사용하여 데이터를 전송 또는 수신함으로써 각종 바이러스로부터 안전하며 실제 데이터 외에 불필요한 데이터를 네트워크를 통해 전송하지 않기 때문에 시스템과 네트워크에 트래픽 부하를 주지 않고 데이터를 안정적으로 전송할 수 있는 데이터 통신 방법 및 장치를 제공하는 데 목적이 있다.The present invention has been made to solve the above problems of the prior art, when communicating between the POS terminal and the MDB database server by opening only a specific port between the two computers to transmit or receive data using a protocol that is pre-defined safe and practical from various viruses It is an object of the present invention to provide a data communication method and apparatus that can stably transmit data without putting traffic load on the system and the network because unnecessary data is not transmitted through the network.

상기 기술적 과제를 달성하기 위한, 본 발명의 일 실시 예에 따른 POS 단말기와 엠디비 데이터베이스 서버 간의 데이터 통신 방법은 상기 POS 단말기에서 상기 엠디비 데이터베이스 서버에 전송할 데이터를 추출하고, 상기 추출한 데이터를 소정의 프로토콜을 이용해서 전송 데이터를 생성하는 단계; 상기 POS 단말기에서 상기 생성한 전송 데이터를 TCP/IP망을 통해 상기 엠디비 데이터베이스 서버에 전송하는 단계; 및 상기 엠디비 데이터베이스 서버에서 상기 전송받은 전송 데이터의 프로토콜을 분석하고, 상기 분석 결과에 따라 상기 전송 데이터를 처리하는 단계를 포함한다.According to an aspect of the present invention, there is provided a data communication method between a POS terminal and an MDB database server to extract data to be transmitted from the POS terminal to the MDB database server, and to extract the extracted data. Generating transmission data using a protocol; Transmitting the generated transmission data in the POS terminal to the MDB database server through a TCP / IP network; And analyzing, by the MDB database server, a protocol of the received transmission data and processing the transmission data according to the analysis result.

바람직하게, 상기 소정의 프로토콜은 통신 상태 체크, 배달, 마감, 중간입금, 매가변경, 미등록상품, 준비금, 판매내용, 모바일 쿠폰, 판매, 회원조회, 판매 결제, 카드승인, 상품수정 서버에서 포스로 전송, 추가적립, 외상조회, 외상입금, 배달조회 중 적어도 하나 이상의 데이터를 정의하고, Preferably, the predetermined protocol is communication status check, delivery, closing, interim payment, price change, unregistered products, reserves, sales details, mobile coupons, sales, membership inquiry, sales settlement, card approval, product modification server to POS Define at least one or more of the following data: transmission, additional accumulation, credit inquiry, credit payment, delivery inquiry,

상기 정의된 각각의 데이터는 필드명, 타입, 바이트, 위치, 변수형 및 설명을 포함하는 것을 특징으로 한다.Each data defined above is characterized by including the field name, type, byte, position, variable type and description.

바람직하게, 상기 처리 단계 다음에, 상기 엠디비 데이터베이스 서버에서 상기 전송 데이터의 처리에 대한 성공 또는 실패에 대한 응답 메시지를 상기 POS 단말기에 전송하는 단계를 더 포함하는 것을 특징으로 한다.Preferably, after the processing step, the MDB database server further comprises the step of transmitting a response message for the success or failure of the processing of the transmission data to the POS terminal.

상기 다른 기술적 과제를 달성하기 위한, 본 발명의 다른 실시 예에 따른 POS 단말기와 엠디비 데이터베이스 서버 간의 데이터 통신을 위한 데이터 통신 장치는, 상기 POS 단말기와 상기 엠디비 데이터베이스 서버 각각에 구비되며,According to another aspect of the present invention, a data communication device for data communication between a POS terminal and an MDB database server is provided in each of the POS terminal and the MDB database server.

상기 데이터 통신 장치는 상기 엠디비 데이터베이스 서버에 전송할 데이터를 추출하거나, 상기 POS 단말기로부터 전송된 데이터를 처리하는 데이터 처리부; 상기 POS 단말기에서 추출한 데이터를 소정의 프로토콜을 이용해서 상기 전송 데이터를 생성하거나 상기 POS 단말기로부터 전송된 전송 데이터의 프로토콜을 분석하는 프로토콜 분석부; 및 상기 POS 단말기에서 상기 생성한 전송 데이터를 TCP/IP망을 통해 상기 엠디비 데이터베이스 서버에 전송하거나, 상기 엠디비 데이터베이스 서버에서 상기 전송 데이터의 처리에 대한 성공 또는 실패에 대한 응답 메시지를 상기 TCP/IP망을 통해 상기 POS 단말기에 전송하는 데이터 전송부를 포함한다.The data communication device may include a data processing unit for extracting data to be transmitted to the MDB database server or processing data transmitted from the POS terminal; A protocol analyzer configured to generate the transmission data using the data extracted from the POS terminal or to analyze a protocol of the transmission data transmitted from the POS terminal; And transmitting the generated transmission data in the POS terminal to the MDB database server through a TCP / IP network, or in response to the success or failure of the processing of the transmission data in the MDB database server. It includes a data transmission unit for transmitting to the POS terminal via an IP network.

바람직하게, 상기 소정의 프로토콜은 통신 상태 체크, 배달, 마감, 중간입금, 매가변경, 미등록상품, 준비금, 판매내용, 모바일 쿠폰, 판매, 회원조회, 판매 결제, 카드승인, 상품수정 서버에서 포스로 전송, 추가적립, 외상조회, 외상입금, 배달조회 중 적어도 하나 이상의 데이터를 정의하고, Preferably, the predetermined protocol is communication status check, delivery, closing, interim payment, price change, unregistered products, reserves, sales details, mobile coupons, sales, membership inquiry, sales settlement, card approval, product modification server to POS Define at least one or more of the following data: transmission, additional accumulation, credit inquiry, credit payment, delivery inquiry,

상기 정의된 각각의 데이터는 필드명, 타입, 바이트, 위치, 변수형 및 설명을 포함하는 것을 특징으로 한다.Each data defined above is characterized by including the field name, type, byte, position, variable type and description.

본 발명의 일 실시 예에 따른 POS단말기와 MDB 데이터베이스 서버간 통신시 양 컴퓨터 간 특정 포트만 열어서 미리 규약된 프로토콜을 사용하여 데이터를 전송 또는 수신함으로써 각종 바이러스로부터 안전하며, 실제 데이터 외에 불필요한 데이터를 네트워크를 통해 전송하지 않기 때문에 시스템과 네트워크에 트래픽 부하를 주지 않고 데이터를 안정적으로 전송할 수 있다.When communicating between the POS terminal and the MDB database server according to an embodiment of the present invention, by opening only a specific port between the two computers and transmitting or receiving data using a protocol that is pre-defined, it is safe from various viruses and uses unnecessary data in addition to the actual data. Because it does not transmit through the network, data can be transmitted reliably without putting traffic load on the system and network.

또한, TCP/IP 소켓통신 방식이므로 떨어진 원거리의 원격지 컴퓨터와 제한없이 데이터를 전송할 수 있다.In addition, TCP / IP socket communication method can transmit data without restriction to remote computer in remote.

이하, 첨부한 도면들을 참조하여 본 발명의 바람직한 실시 예들을 상세히 설명한다. 하기의 설명에서는 본 발명에 따른 동작을 이해하는데 필요한 부분만이 설명되며 그 이외 부분의 설명은 본 발명의 요지를 흩트리지 않도록 생략될 수 있다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description, only parts necessary for understanding the operation according to the present invention will be described, and descriptions of other parts may be omitted so as not to distract from the gist of the present invention.

또한, 이하에서 설명되는 본 명세서 및 청구범위에 사용된 용어나 단어는 통 상적이거나 사전적인 의미로 한정해서 해석되어서는 아니 되며, 본 발명을 가장 적절하게 표현할 수 있도록 본 발명의 기술적 사상에 부합하는 의미와 개념으로 해석되어야 한다. In addition, terms or words used in the specification and claims described below are not to be construed as limited to a conventional or dictionary meaning, in accordance with the technical spirit of the present invention to best express the present invention It should be interpreted as meaning and concept.

도 1은 본 발명의 일 실시 예에 따른 TCP/IP 망을 이용한 POS 시스템의 개략적인 블록도이다.1 is a schematic block diagram of a POS system using a TCP / IP network according to an embodiment of the present invention.

도 1을 참조하면, POS 시스템은 POS 단말기(100), 엠디비 데이터베이스 서버(200) 및 인터넷 망(300)을 포함한다.Referring to FIG. 1, the POS system includes a POS terminal 100, an MDB database server 200, and an internet network 300.

POS 단말기(100)는 상품 매장의 계산대에 구비된 된다. 고객이 상품을 구입하고 계산대에 구입한 상품을 올려놓으면 점원이 상품에 부착된 바코드에 바코드 스캐너를 갖다대면 상품 정보가 POS 단말기(100)에 입력된다. 여기서, POS(Point of Sales)란 대형할인점, 슈퍼마켓, 편의점 등 유통업체 금전출납계에 설치돼 상품의 판매 결과를 기록하는 시스템을 의미한다. 즉 판매한 시점에서 그 상품의 판매에 관한 데이터를 컴퓨터로 처리하는 시스템이다. POS terminal 100 is provided at the checkout of the merchandise store. When the customer purchases the product and puts the purchased product on the checkout counter, the salesman places the barcode scanner on the barcode attached to the product, and the product information is input to the POS terminal 100. Here, the point of sales (POS) refers to a system that is installed in a cash register of a retailer such as a large discount store, a supermarket, a convenience store, and records a sales result of a product. In other words, it is a system that processes data relating to the sale of the product by a computer at the time of sale.

또한, 실제 고객이 껌 한 통을 구입한 경우, POS를 통하면 제품명, 제조사, 상품가격 등 단품별 상세 정보까지 기록할 수 있다. 따라서 판매 중인 제품에 대한 정보를 명확하게 파악할 수 있으며 어떤 상품이 언제, 얼마나 팔렸는지 한눈에 알 수 있기 때문에 품절 방지를 비롯한 물류 효율성을 높일 수 있다. 또한, POS 시스템을 통해 매장은 고객 정보를 관리할 수도 있다. 예를 들면 고객이 특정 상품 매장에 회원번호 등을 입력하고 회원가입을 하면, 매번 구입할 때마다 구입액을 포인트로 환산하여 특정 포인트를 적립할 수 있게 한다. 여기서 회원 가입시의 집 주소 등이 고객 정보로 기록된다. In addition, if the actual customer purchased a gum, through the POS can be recorded detailed information for each product, such as product name, manufacturer, product price. Therefore, information on the products being sold can be clearly understood, and when and how many products are sold at a glance, thereby improving logistics efficiency, including preventing out of stock. The POS system also allows stores to manage customer information. For example, when a customer enters a membership number, etc. in a specific product store and joins a membership, each time a purchase is made, the purchase amount is converted into points so that specific points can be accumulated. Here, the home address and the like at the time of membership registration are recorded as customer information.

엠디비 데이터베이스 서버(200)는 POS 단말기(100)로부터 매장의 배달 정보, 마감 정보, 중간 입금 정보, 매가 변경 정보, 판매 정보 등의 데이터를 인터넷 망(300)을 통해 전송받아, 이를 MDB 데이터베이스에 저장하고 관리한다. 또한, 엠디비 데이터베이스 서버(200)는 POS 단말기(100)로부터 인터넷 망(300)을 통해 특정 데이터를 수신하고, 이를 처리한 후에는 POS 단말기(100)에 처리 결과에 따른 응답 메시지, 예를 들면 성공 또는 실패 등의 메시지를 전송한다. 따라서, POS 단말기(100)에서 전송한 데이터에 대한 처리 결과 여부를 빠르게 조회할 수 있으며, 이에 따른 데이터 이상 유무를 확인할 수 있다.The MDB database server 200 receives data such as delivery information, deadline information, interim payment information, price change information, and sales information of the store from the POS terminal 100 through the Internet network 300 and transmits the data to the MDB database. Store and manage In addition, the MDB database server 200 receives specific data from the POS terminal 100 through the Internet network 300, and after processing the response, the response message according to the processing result, for example, to the POS terminal 100 is processed. Send a message such as success or failure. Therefore, it is possible to quickly inquire whether or not the processing result for the data transmitted from the POS terminal 100, it can be confirmed whether there is data abnormality.

POS 단말기(100)와 엠디비 데이터베이스 서버(200) 간 통신시 양 컴퓨터 간 특정 포트(Port)만 열어서 미리 개발되어 규약된 별도의 프로토콜을 사용하여 데이터를 전송 또는 수신한다. When communicating between the POS terminal 100 and the MDB database server 200, only a specific port between the two computers is opened to transmit or receive data using a separate protocol that has been developed in advance.

본 발명의 바람직한 실시 예에 따른 규약된 프로토콜 외에 어떤 데이터도 전송되지 않으므로 각종 바이러스로부터 안전하며 실 데이터외에 불필요한 데이터를 네트워크를 통해 전송하지 않기 때문에 시스템과 네트워크에 트래픽 부하를 주지 않고 데이터를 안정적으로 전송한다. 또한, TCP/IP 소켓 통신 방식이므로 떨어진 원거리의 원격지 컴퓨터와 제한없이 데이터를 전송할 수 있다.Since no data is transmitted other than the protocol according to the preferred embodiment of the present invention, it is safe from various viruses and does not transmit unnecessary data over the network, thereby stably transmitting data without putting traffic load on the system and the network. do. In addition, the TCP / IP socket communication method allows data to be transmitted without restriction from a remote remote computer.

POS 단말기(100)와 엠디비 데이터베이스 서버(200)에 구비된 데이터 통신 장치의 구체적인 구성은 도 2를 참조하여 설명한다.A detailed configuration of the data communication device provided in the POS terminal 100 and the MDB database server 200 will be described with reference to FIG. 2.

도 2는 본 발명의 다른 실시 예에 따른 데이터 통신 장치(100 및 200)의 개 략적인 블록도이다.2 is a schematic block diagram of a data communication device 100 and 200 according to another embodiment of the present invention.

도 2를 참조하면, 데이터 통신 장치(100 및 200)는 데이터 전송부(110), 프로토콜 분석부(120) 및 데이터 처리부(130)를 포함한다.Referring to FIG. 2, the data communication apparatuses 100 and 200 include a data transmitter 110, a protocol analyzer 120, and a data processor 130.

데이터 전송부(110)는 POS 단말기(100)에서 생성한 전송 데이터를 TCP/IP망을 통해 엠디비 데이터베이스 서버(200)에 전송한다. 또한, 엠디비 데이터베이스 서버(200)에서 전송 데이터의 처리에 대한 성공 또는 실패에 대한 응답 메시지를 TCP/IP망(300)을 통해 POS 단말기(100)에 전송한다. The data transmitter 110 transmits the transmission data generated by the POS terminal 100 to the MDB database server 200 through the TCP / IP network. In addition, the MDB database server 200 transmits a response message for the success or failure of the processing of the transmission data to the POS terminal 100 through the TCP / IP network 300.

프로토콜 분석부(120)는 POS 단말기(100)에서 추출한 데이터를 소정의 프로토콜을 이용해서 전송 데이터를 생성한다. 또한, 엠디비 데이터베이스 서버(200)에서 POS 단말기(100)로부터 전송된 전송 데이터의 프로토콜을 분석한다. 여기서, 프로토콜은 통신 상태 체크, 배달, 마감, 중간입금, 매가변경, 미등록상품, 준비금, 판매내용, 모바일 쿠폰, 판매, 회원조회, 판매결제, 카드승인, 상품수정 서버에서 포스로 전송, 추가적립, 외상조회, 외상입금, 배달조회를 포함하는 데이터를 정의한다. 그리고 정의된 각각의 데이터는 필드명, 타입, 바이트(byte), 위치, 변수형 및 설명을 포함한다.The protocol analyzer 120 generates transmission data using data extracted from the POS terminal 100 using a predetermined protocol. In addition, the MDB database server 200 analyzes the protocol of the transmission data transmitted from the POS terminal 100. Here, the protocol is communication status check, delivery, deadline, interim payment, price change, unregistered products, reserves, sales details, mobile coupons, sales, membership inquiry, sales payment, card approval, product modification server sent to POS, additional credit Define data, including accounts receivables, accounts receivables, and delivery inquiries. Each data defined includes the field name, type, byte, position, variable type, and description.

예를 들면, 통신 상태 체크의 경우, 필드명은 헤더와 포스번호이고, 타입은 영문과 숫자, 바이트(byte)는 각각 3, 위치는 1과 4이고, 변수형은 각각 스트링(string)이고, 통신 상태 체크의 프로토콜은 헤더는 'CK'이고, 포스번호는'001'이다.For example, in the case of communication status check, the field names are header and force number, type is alphanumeric, byte is 3, position is 1 and 4, variable type is string, and communication status check is The protocol of the header is 'CK' and the force number is '001'.

POS 단말기(100)에서 전송할 데이터가 마감 데이터인 경우에는 다음 표 1과 같이 정의된 프로토콜에 따라 전송 데이터를 생성하고, 엠디비 데이터베이스 서버(200)에서는 정의된 프로토콜에 따라 전송된 데이터를 처리한다.If the data to be transmitted from the POS terminal 100 is the deadline data, the transmission data is generated according to the protocol defined as shown in Table 1 below, and the MDB database server 200 processes the data transmitted according to the defined protocol.

필드명Field name 타입type ByteByte 위치location 변수형Variable type 설명Explanation 헤더Header 영문English 22 1One StringString `MG``MG` 포스번호Force number 숫자number 33 33 StringString `001``001` 마감일자Deadline 숫자number 1010 66 DateDate `2007-10-25``2007-10-25` 금액Price 숫자number 10(8)10 (8) 1616 LongLong `23650 ` 담당자별 실매출=1:정상매출-2:반품매출`23650` Actual sales by person in charge = 1: Normal sales-2: Returns sales 담당자manager 한글Hangul 2020 2626 StringString `홍길동A ``Hong Gil-dong A` 요청응답Request response 응답구분Response classification 영문English 55 1One StringString `ACKMG``ACKMG` 마감일자Deadline 숫자number 1010 66 DateDate `2007-12-05``2007-12-05` 포스번호Force number 숫자number 33 1616 StringString `001``001` 담당자manager 한글Hangul 2020 1919 StringString `홍길동A ``Hong Gil-dong A`

이상 통신 상태 체크와 마감 데이터의 프로토콜에 대해서만 설명하였지만, 다른 데이터에 대한 프로토콜도 이와 비슷한 방식으로 정의할 수 있다.Although only the protocol for checking communication status and closing data has been described above, protocols for other data can be defined in a similar manner.

POS 단말기(100)에서 데이터 처리부(130)는 엠디비 데이터베이스 서버(200)에 전송할 데이터를 추출한다. 또한, 엠디비 데이터베이스 서버(200)에서 데이터 처리부(130)는 POS 단말기(100)로부터 전송된 데이터를 처리한다. 여기서, 전송된 데이터 처리는 저장, 관리 등을 포함한다. In the POS terminal 100, the data processor 130 extracts data to be transmitted to the MDB database server 200. In addition, the data processing unit 130 in the MDB database server 200 processes the data transmitted from the POS terminal 100. Here, the transmitted data processing includes storage, management, and the like.

도 3은 본 발명의 또 다른 실시 예에 따른 데이터 통신 방법을 설명하기 위한 흐름도이다.3 is a flowchart illustrating a data communication method according to another embodiment of the present invention.

도 3을 참조하면, 단계 300에서, POS 단말기에서 전송할 데이터를 읽어들인다. 그리고, 단계 302에서, 데이터의 이상 유무를 판단한다. 데이터가 정상인 경우, 단계 304에서, 데이터를 분석하고, 전송할 데이터를 정의된 프로토콜에 따라 생성한다. 단계 306에서, 통신 상태를 체크하고, 통신 상태의 이상이 없는 경우에는, 단계 308에서, 전송 데이터를 엠디비 데이터베이스 서버에 전송한다. Referring to FIG. 3, in step 300, data to be transmitted is read from a POS terminal. In step 302, it is determined whether data is abnormal. If the data is normal, in step 304 the data is analyzed and data to be transmitted is generated according to the defined protocol. In step 306, the communication state is checked, and if there is no abnormality in the communication state, in step 308, the transfer data is transmitted to the MDB database server.

단계 310에서, 엠디비 데이터베이스 서버는 전송 데이터를 수신한다. 그리고 단계 312에서, 전송 데이터로부터 필요한 데이터를 추출하고, 단계 314에서, 정의된 프로토콜에 따라 데이터를 분석하고, 필요한 자료를 생성한다. 단계 316에서, 데이터의 이상유무를 판단하고, 정상인 경우, 단계 320에서, 자료를 저장한다.In step 310, the MDB database server receives the transmission data. In step 312, the required data is extracted from the transmission data, and in step 314, the data is analyzed according to the defined protocol, and the required data is generated. In step 316, it is determined whether there is an abnormality in the data, and if normal, in step 320, the data is stored.

단계 302, 306 및 316에서, 데이터가 정상이 아니거나 통신 상태가 정상이 아닌 경우에는 단계 318로 진행하여 POS 단말기에 이상 여부를 알려준다.In steps 302, 306 and 316, if the data is not normal or the communication state is not normal, the process proceeds to step 318 to inform the POS terminal of the abnormality.

본 발명의 바람직한 실시 예에 따른 데이터 통신 방법은 데이터를 전송하는 측과 데이터를 수신하는 측으로 나뉘며 데이터를 전송하는 측이나 데이터를 수신하는 측 모두 동일한 방식의 프로세스로 데이터를 처리한다. According to a preferred embodiment of the present invention, a data communication method is divided into a data transmission side and a data reception side, and both the data transmission side and the data receiving side process the data in the same process.

구체적으로, POS 단말기에서 원격지 서버의 데이터베이스로 데이터를 저장하기 위해 데이터를 전송하면, 수신측에서는 먼저 전송되어온 데이터를 미리 정의된 프로토콜에 의하여 어떤 작업을 수행해야 하는지 분석하고 분석 결과에 따라 데이터베이스에 삽입(INSERT), 업데이트(UPDATE), 삭제(DELETE) 등의 쿼리(Query) 작업을 수행한다. 이후 쿼리 작업이 끝나면 작업 결과를 POS 단말기측에 전송한다.Specifically, when data is transmitted from the POS terminal to the database of the remote server, the receiving side analyzes what to do first by using a predefined protocol and inserts the data into the database according to the analysis result. Performs query operations such as INSERT, UPDATE, and DELETE. After the query is finished, the work result is sent to the POS terminal.

또한 서버 측에서 변경된 데이터가 발생할 경우 POS 단말기측으로 데이터를 전송하기 위해 상기 설명과 동일한 과정을 거쳐서 POS 단말기에 데이터를 전송한다.In addition, when the changed data occurs on the server side, the data is transmitted to the POS terminal through the same process as described above to transmit the data to the POS terminal.

기존 POS 프로그램이 서버의 MDB 데이터베이스에 네트워크 드라이브나 폴더 공유에 의해 직접 연결되어 데이터를 읽거나 저장할 경우 만약 서버가 시스템 고장을 일으키면 연결되어 있던 POS 프로그램은 데이터를 읽기 위해 시도하다가 수초 또는 수십초의 응답시간이 소요되게 되며, 이 경우 POS 프로그램은 잠깐동안 다운 현상이 발생하게 된다. 하지만, 본 발명의 바람직한 실시 예에 따른 데이터 통신 방법은 POS 프로그램에서 서버의 데이터베이스를 직접 연결하지 않고 미리 정의된 프로토콜에 의해 필요 데이터를 전송하는 방식이므로 상기와 같은 다운 현상 없이 원활한 POS 프로그램의 작동을 구현한다.If the existing POS program is directly connected to the server's MDB database by a network drive or folder share to read or store data, if the server fails, the connected POS program will attempt to read the data and then respond for several seconds or tens of seconds. This will cause the POS program to crash briefly. However, the data communication method according to an exemplary embodiment of the present invention is a method of transmitting necessary data by a predefined protocol without directly connecting a database of a server in a POS program. Implement

예를 들면, 매출마감 데이터를 서버로 전송할 경우 POS 단말기측에서는 헤더, 포스번호, 마감일자, 금액, 담당자에 대한 정보를 다음과 같이 정의된 프로토콜에 따라 "MG0012007-10-2523650홍길동" 의 전송 데이터를 생성하여 전송하고, 이를 수신한 서버측에서는 전송되어온 데이터를 분석한 후 해당 포스의 마감 데이터에 대한 처리 작업을 진행한다. 서버의 데이터 처리가 성공하면 그에대한 응답으로 정의된 프로토콜에 따라 다음과 같은 형태의 응답 메시지 "ACKMG2007-10-25 001홍길동" 를 POS 단말기에 전송한다. 여기서, 정상적으로 처리하지 못한 경우, 정의된 프로토콜에 따라 "NCKMG"와 같은 메시지를 보내어 재전송 및 이상 유무를 다시 판단하게 한다.For example, when sending the closing data to the server, the POS terminal sends the data of "MG0012007-10-2523650 Hong Gil-dong" according to the protocol defined as follows: information on header, POS number, deadline date, amount, and contact person. After generating and transmitting the data, the server side analyzes the transmitted data and performs processing on the closing data of the corresponding force. If the server succeeds in processing the data, it sends the response message "ACKMG2007-10-25 001 Hong Gil-dong" to the POS terminal according to the protocol defined as the response. In this case, if it does not process normally, it sends a message such as "NCKMG" according to the defined protocol to re-determine the presence or absence of retransmission.

한편, 본 발명은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터가 읽을 수 있는 코드로 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다.Meanwhile, the present invention can be embodied as computer readable codes on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored.

컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현하는 것을 포함한다. 또한, 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고 본 발명을 구현하기 위한 기능적인(functional) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술 분야의 프로그래머들에 의하여 용이하게 추론될 수 있다.Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like, which may also be implemented in the form of carrier waves (for example, transmission over the Internet). Include. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. And functional programs, codes and code segments for implementing the present invention can be easily inferred by programmers in the art to which the present invention belongs.

이제까지 본 발명에 대하여 바람직한 실시 예를 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 본 발명을 구현할 수 있음을 이해할 것이다. 그러므로 상기 개시된 실시 예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 한다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will understand that the present invention can be embodied in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown not in the above description but in the claims, and all differences within the scope should be construed as being included in the present invention.

도 1은 본 발명의 일 실시 예에 따른 TCP/IP 망을 이용한 POS 시스템의 개략적인 블록도이다.1 is a schematic block diagram of a POS system using a TCP / IP network according to an embodiment of the present invention.

도 2는 본 발명의 다른 실시 예에 따른 데이터 통신 장치(100,200)의 개략적인 블록도이다.2 is a schematic block diagram of a data communication apparatus 100 and 200 according to another embodiment of the present invention.

도 3은 본 발명의 또 다른 실시 예에 따른 데이터 통신 방법을 설명하기 위한 흐름도이다.3 is a flowchart illustrating a data communication method according to another embodiment of the present invention.

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

100: POS 단말기 200: 엠디비 데이터베이스 서버100: POS terminal 200: MDB database server

300: 인터넷 망 110: 데이터 전송부300: Internet network 110: data transmission unit

120: 프로토콜 분석부 130: 데이터 처리부120: protocol analysis unit 130: data processing unit

Claims (5)

POS 단말기와 엠디비 데이터베이스 서버간의 데이터 통신 방법에 있어서,In the data communication method between the POS terminal and the MDB database server, 상기 POS 단말기에서 상기 엠디비 데이터베이스 서버에 전송할 데이터를 추출하고, 상기 추출한 데이터를 소정의 프로토콜을 이용해서 전송 데이터를 생성하는 단계;Extracting data to be transmitted from the POS terminal to the MDB database server and generating transmission data using the extracted protocol using a predetermined protocol; 상기 POS 단말기에서 상기 생성한 전송 데이터를 TCP/IP망을 통해 상기 엠디비 데이터베이스 서버에 전송하는 단계; 및Transmitting the generated transmission data in the POS terminal to the MDB database server through a TCP / IP network; And 상기 엠디비 데이터베이스 서버에서 상기 전송받은 전송 데이터의 프로토콜을 분석하고, 상기 분석 결과에 따라 상기 전송 데이터를 처리하는 단계를 포함하는 데이터 통신 방법.Analyzing the protocol of the received transmission data by the MDB database server and processing the transmission data according to the analysis result. 제 1 항에 있어서,The method of claim 1, 상기 소정의 프로토콜은,The predetermined protocol is 통신 상태 체크, 배달, 마감, 중간입금, 매가변경, 미등록상품, 준비금, 판매내용, 모바일 쿠폰, 판매, 회원조회, 판매결제, 카드승인, 상품수정 서버에서 포스로 전송, 추가적립, 외상조회, 외상입금, 배달조회 중 적어도 하나 이상의 데이터를 정의하고, Communication status check, delivery, deadline, interim payment, change of price, unregistered products, reserves, sales details, mobile coupons, sales, membership inquiry, sales payment, card approval, product modification sent from the server to the POS, additional reserve, trauma inquiry, Define at least one or more data of accounts receivable, delivery inquiry, 상기 정의된 각각의 데이터는,Each data defined above, 필드명, 타입, 바이트, 위치, 변수형 및 설명을 포함하는 것을 특징으로 하 는 데이터 통신 방법.A data communication method comprising a field name, type, byte, position, variable type, and description. 제 2 항에 있어서,The method of claim 2, 상기 처리 단계 다음에,After the processing step, 상기 엠디비 데이터베이스 서버에서 상기 전송 데이터의 처리에 대한 성공 또는 실패에 대한 응답 메시지를 상기 POS 단말기에 전송하는 단계를 더 포함하는 것을 특징으로 하는 데이터 통신 방법.And transmitting a response message to the POS terminal in response to the success or failure of the processing of the transmission data in the MDB database server. POS 단말기와 엠디비 데이터베이스 서버간의 데이터 통신을 위한 데이터 통신 장치에 있어서,In the data communication device for data communication between the POS terminal and the MDB database server, 상기 데이터 통신 장치는,The data communication device, 상기 POS 단말기와 상기 엠디비 데이터베이스 서버 각각에 구비되며,It is provided in each of the POS terminal and the MDB database server, 상기 데이터 통신 장치는,The data communication device, 상기 엠디비 데이터베이스 서버에 전송할 데이터를 추출하거나, 상기 POS 단말기로부터 전송된 데이터를 처리하는 데이터 처리부; A data processor extracting data to be transmitted to the MDB database server or processing data transmitted from the POS terminal; 상기 POS 단말기에서 추출한 데이터를 소정의 프로토콜을 이용해서 상기 전송 데이터를 생성하거나 상기 POS 단말기로부터 전송된 전송 데이터의 프로토콜을 분석하는 프로토콜 분석부; 및A protocol analyzer configured to generate the transmission data using the data extracted from the POS terminal or to analyze a protocol of the transmission data transmitted from the POS terminal; And 상기 POS 단말기에서 상기 생성한 전송 데이터를 TCP/IP망을 통해 상기 엠디비 데이터베이스 서버에 전송하거나, 상기 엠디비 데이터베이스 서버에서 상기 전 송 데이터의 처리에 대한 성공 또는 실패에 대한 응답 메시지를 상기 TCP/IP망을 통해 상기 POS 단말기에 전송하는 데이터 전송부를 포함하는 데이터 통신 장치.The transmission data generated by the POS terminal is transmitted to the MDB database server through the TCP / IP network, or the response message about the success or failure of the processing of the transmission data is transmitted from the MDB database server to the TCP / IP network. And a data transmission unit for transmitting to the POS terminal via an IP network. 제 4 항에 있어서,The method of claim 4, wherein 상기 소정의 프로토콜은,The predetermined protocol is 통신 상태 체크, 배달, 마감, 중간입금, 매가변경, 미등록상품, 준비금, 판매내용, 모바일 쿠폰, 판매, 회원조회, 판매결제, 카드승인, 상품수정 서버에서 포스로 전송, 추가적립, 외상조회, 외상입금, 배달조회 중 적어도 하나 이상의 데이터를 정의하고, Communication status check, delivery, deadline, interim payment, change of price, unregistered products, reserves, sales details, mobile coupons, sales, membership inquiry, sales payment, card approval, product modification sent from the server to the POS, additional reserve, trauma inquiry, Define at least one or more data of accounts receivable, delivery inquiry, 상기 정의된 각각의 데이터는,Each data defined above, 필드명, 타입, 바이트, 위치, 변수형 및 설명을 포함하는 것을 특징으로 하는 데이터 통신 장치.A data communication device comprising a field name, type, byte, position, variable type, and description.
KR1020080106564A 2008-10-29 2008-10-29 Data communication method and apparatus between POS terminal and MDB database server KR101015140B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080106564A KR101015140B1 (en) 2008-10-29 2008-10-29 Data communication method and apparatus between POS terminal and MDB database server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080106564A KR101015140B1 (en) 2008-10-29 2008-10-29 Data communication method and apparatus between POS terminal and MDB database server

Publications (2)

Publication Number Publication Date
KR20100047598A true KR20100047598A (en) 2010-05-10
KR101015140B1 KR101015140B1 (en) 2011-03-09

Family

ID=42274537

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080106564A KR101015140B1 (en) 2008-10-29 2008-10-29 Data communication method and apparatus between POS terminal and MDB database server

Country Status (1)

Country Link
KR (1) KR101015140B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101330680B1 (en) * 2012-05-09 2013-11-19 고대식 Service system for managing charge account

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4688270B2 (en) * 1999-10-13 2011-05-25 株式会社ビジュアルジャパン Network type data transmission system, and server and terminal device in the system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101330680B1 (en) * 2012-05-09 2013-11-19 고대식 Service system for managing charge account

Also Published As

Publication number Publication date
KR101015140B1 (en) 2011-03-09

Similar Documents

Publication Publication Date Title
US7731084B2 (en) Devices and methods for monitoring transaction data from point-of-sale devices
US6039245A (en) Financial transaction processing system and method
CN101527071B (en) Merchandise sales data processing apparatus and a merchandise sales data processing method
US8001585B2 (en) Methods and systems for providing website hosting security
US20110078083A1 (en) Electronic draft capture
US8636207B2 (en) Shop terminal and information processing server
JP6086900B2 (en) Financial transaction system, financial transaction method and computer program
US20040039691A1 (en) Electronic funds transaction system
EP3485447A1 (en) System, device, and method for capturing and managing point of sale transaction related data
US10664815B2 (en) Secure customer relationship marketing system and method
CN104598653A (en) Apparatus and method for managing electronic receipt
US20050216373A1 (en) System and method for electronically transmitting information at completion of live sales transaction
US20160155107A1 (en) Improved performance in interaction systems
JP4396490B2 (en) Name identification control method
US20210350328A1 (en) Systems and methods for custodial email management and transaction verification
KR101015140B1 (en) Data communication method and apparatus between POS terminal and MDB database server
US20140032370A1 (en) Automatically Linking Product Serial Numbers
AU2006348983A1 (en) System and method for performing electronic transactions
US20110031311A1 (en) Keyfob and in store device based promotion generation system and method
GB2516309A (en) Electronic receipts system and method
US20020143570A1 (en) Credit card management method, credit card management program, credit card management device
US11972410B2 (en) Systems and methods for reconciling lottery transactions
US20230048769A1 (en) Receipt server, information processing method, program recording medium, and server system
JPH06266738A (en) Card checking method and pos system
KR102540413B1 (en) Method and system for providing issue of electronic receipt in pos

Legal Events

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

Payment date: 20140210

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20141125

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20161209

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20191231

Year of fee payment: 10