KR20050034058A - Compression saving method and search method of card black-list data - Google Patents

Compression saving method and search method of card black-list data Download PDF

Info

Publication number
KR20050034058A
KR20050034058A KR1020030069852A KR20030069852A KR20050034058A KR 20050034058 A KR20050034058 A KR 20050034058A KR 1020030069852 A KR1020030069852 A KR 1020030069852A KR 20030069852 A KR20030069852 A KR 20030069852A KR 20050034058 A KR20050034058 A KR 20050034058A
Authority
KR
South Korea
Prior art keywords
card
bin
data
value
card number
Prior art date
Application number
KR1020030069852A
Other languages
Korean (ko)
Other versions
KR100610529B1 (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 KR1020030069852A priority Critical patent/KR100610529B1/en
Publication of KR20050034058A publication Critical patent/KR20050034058A/en
Application granted granted Critical
Publication of KR100610529B1 publication Critical patent/KR100610529B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Human Resources & Organizations (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

구매대금 또는 교통요금을 징수하는 BL데이터 기반 카드결제 시스템 또는 WL(White List)데이터 기반 카드결제 시스템에서, 각 카드사에서 받은 카드번호리스트 데이터를 저장 또는 전송하는데 사용되는 카드번호리스트 데이터의 압축방법에 있어서;In the BL data-based card payment system or WL (White List) data-based card payment system that collects the purchase price or transportation fee, the compression method of the card number list data used to store or transmit the card number list data received from each card company In;

카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시킨 값중에서 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정하였을 때,Sector number of the upper two bytes among the values converted from the 1st to 6th digits (decimal value or binary value) of the 16 digits of the card number into BIN, and the 7th through 15th numbers into 4 byte binary code. When the lower 2 bytes are designated as BL value,

동일한 BIN 및 섹터넘버를 가진 BL값들이 수집된 BL블럭들로 구성된 BL저장영역과,A BL storage area composed of BL blocks in which BL values having the same BIN and sector number are collected;

특정한 BIN 및 섹터넘버에 해당하는 BL블럭들의 저장위치를 표시하는 인덱스 테이블 영역으로 이루어진 데이터페이지의 구조를 구성하는 것을 특징으로 한다.And a structure of a data page consisting of an index table area indicating a storage location of BL blocks corresponding to a specific BIN and sector number.

Description

카드블랙리스트 데이터의 압축저장방법 및 그 검색방법{COMPRESSION SAVING METHOD AND SEARCH METHOD OF CARD BLACK-LIST DATA}Compression and Storage Method of Card Blacklist Data and Search Method thereof {COMPRESSION SAVING METHOD AND SEARCH METHOD OF CARD BLACK-LIST DATA}

본 발명은 교통요금 또는 상품이나 서비스의 구매대금 등을 신속 정확하게 징수하기 위한 블랙리스트(BL:신용불량카드 및 분실카드 리스트) 데이터 기반 카드결제 시스템에 관한 것으로, 특히 카드단말기의 BL데이타 저장 공간을 획기적으로 절감하면서도 검색속도에 지장이 없고 BL의 업데이트가 용이한 저장방법에 관한 것이다.The present invention relates to a black list (BL: bad credit card and lost card list) data-based card payment system for quickly and accurately collecting transportation charges or purchase price of goods or services, and particularly, a BL data storage space of a card terminal. The present invention relates to a storage method that can significantly reduce the search speed and can easily update the BL.

최근에 교통카드를 중심으로 스마트 카드형 전자화폐가 널리 사용되고 있으며, 이 중 후불식 전자화폐는 선불방식과는 달리 사전에 금액을 리필시켜야 하는 불편을 덜 수 있고, 신용카드의 결제방식과 유사하여, 특히, 신용카드의 부가기능으로써 널리 사용되고 있다.Recently, smart card-type electronic money has been widely used around transportation cards. Among these, prepaid electronic money can reduce the inconvenience of having to refill the amount in advance unlike the prepaid method. In particular, it is widely used as an add-on to credit cards.

후불식 방식은 정산서버에서 교통카드의 사용내역을 모아 신용카드결제와 유사한 방식으로 후불 결제하는 것이다.The postpay method collects the usage history of the transportation card in the settlement server and pays the postpay in a similar manner to the credit card payment.

그러나, 최근에 발급되는 거의 모든 신용카드에는 후불식 교통카드의 기능이 포함되며, 이러한 신용카드도 일인당 수매씩 발급되어 있는 이유로, 거래가 불가능한 신용불량자의 카드나 분실된 후불식 교통카드의 리스트인 BL데이타도 그 크기가 커질 수 밖에 없다.However, almost all recently issued credit cards include the function of postpaid transit cards, and BL is a list of unpaid credit cards or lost postpaid transit cards that cannot be traded because they are also issued per person. Data can only grow in size.

상기의 문제점을 해결하기 위하여 출원번호 제 10-2001-0040873호 출원이 제안된 바 있다. 상기 출원에서는 BL DB에 수록된 일련의 BL데이터를 순차적으로 소트시키는 단계와, 소트된 최 가장자리의 BL카드번호 중에서 처음 6번째 자리까지의 은행식별번호(BIN)를 1바이트로 코드화하고 카드번호의 7번 ~ 15번째자리까지의 9자리의 카드식별번호를 4바이트로 바이너리 코드화하여 하나의 카드번호를 5바이트 크기로 압축 생성하는 단계와, 하나의 BL카드번호에 대한 압축 데이터가 생성되면 다음 차례의 BL카드번호에 대해서는 바로앞의 BL카드번호와의 차이값(오프셋값)만 표기하여 압축하는 단계로 구성되는 것을 그 기술적 요지로 한다.Application No. 10-2001-0040873 has been proposed to solve the above problem. The application sequentially sorts a series of BL data stored in a BL DB, encodes a bank identification number (BIN) up to the first sixth digit of the BL card number of the edge sorted into one byte, and sets 7 of the card number. Binary encoding the 9-digit card identification number from the 15th to the 15th digit into 4 bytes to compress and generate one card number into 5-byte size, and when the compressed data for one BL card number is generated, The technical gist of the BL card number consists of a step of compressing by expressing only the difference value (offset value) from the previous BL card number.

상기 출원은 BL데이타의 크기를 줄일수 있는 방법이지만, 그에 따른 부작용이 존재 등의 이유로 실제로 응용하기에는 문제가 있다. 압축에 따른 부작용은 다음과 같다. 첫째, 카드단말기가 읽어들인 카드번호에 대하여 저장된 BL데이타에서 해당카드의 존재여부를 검사하여야 하는데 옵셋으로 저장되어 있기 때문에 그 검색과정이 복잡하고 시간이 소요된다. The above application is a method of reducing the size of BL data, but there is a problem in the practical application for the presence of side effects. Compression side effects include: First, the card terminal should check the existence of the corresponding card from the stored BL data for the card number read, but the search process is complicated and time consuming because it is stored as an offset.

둘째, 시시각각 변동하는 BL데이타의 갱신시마다 상기 출원의 과정 단계들을 반복하여 전체 BL데이타를 다시 생성해주어야 하는데, BL데이타의 갱신주기가 짧은 경우에는 불필요하며 낭비적인 과정의 반복이지 않을 수 없으며, 낭비를 방지하기 위해 BL데이타 갱신주기를 길게 하면 불량카드가 사용되는 위험성이 커지는 딜레마에 빠지는 문제점이 있었다.Second, every update of BL data that fluctuates every moment should be repeated to generate the entire BL data again by repeating the process steps of the application. When the BL data update cycle is short, it is necessary to repeat unnecessary and wasteful processes. In order to prevent the long BL data update cycle, there was a problem that the risk of using a bad card falls into a dilemma.

셋째, 상기 6자리의 BIN이 현재는 모두 256개이내라는 이유로 1바이트로 표시하는데, 이에는 각 BIN별로 대응하는 별도의 1바이트값을 부여해야 하는바, BIN의 신규가입이나 해제시 그 조정절차가 복잡해지며, 글로벌시대에 해외의 발급사의 카드를 적용하는 경우에는 총 BIN의 개수가 256개 이내라고 보장할 수 없는 한계를 안고 있는 방법이다.Third, the 6-digit BINs are currently represented as 1 byte because they are all less than 256. In this case, a separate 1-byte value corresponding to each BIN must be given. Is complicated, and in the case of applying a card issued by an overseas issuer in the global era, there is a limit that cannot guarantee that the total number of bins is less than 256.

본 발명은 상기의 문제점들을 해결하기 위하여 안출된 것으로서, 카드단말기내 저장공간 및 전송효율을 위해 보다 BL데이타의 크기를 줄이면서도 상기 카드단말기에서 보다 용이하게 카드번호의 검색이 가능한 BL데이터의 압축방법을 제공함에 그 목적이 있다.The present invention has been made to solve the above problems, the BL data compression method that can be easily retrieved card number in the card terminal while reducing the size of the BL data for the storage space and transmission efficiency in the card terminal The purpose is to provide.

본 발명은 또한, 주기적으로 변동된 BL데이타 만을 전송하여 검색하는 기능을 용이하게 적용할 수 있는 BL데이터의 압축방법을 제공함에 그 또 다른 목적이 있다.Another object of the present invention is to provide a method of compressing BL data, which can easily apply a function of transmitting and retrieving only BL data periodically changed.

상기 목적을 달성하기 위한 본 발명의 BL압축저장방법은 BL compression storage method of the present invention for achieving the above object

상기 출원에서는 일련의 BL데이터를 순차적으로 소트시키는 단계와, The application sequentially sorts a series of BL data,

소트된 각 BL카드번호들을 처음 6번째 자리까지를 은행식별번호(BIN)로 구분하고, 카드번호의 7번 ~ 15번째자리까지의 9자리의 카드식별번호를 4바이트로 바이너리 코드화하고 다시 2바이트씩 나누어 섹터넘버와 BL값으로 구분하는 단계와,Each of the sorted BL card numbers are divided into bank identification numbers (BINs) up to the first six digits, and 9-digit card identification numbers from seven to fifteenth digits of the card number are binary-coded into four bytes, and again two bytes are used. Dividing by sector number and BL value,

동일한 BIN 및 섹터넘버를 가지는 BL값들을 모아진 BL블럭들로 형성된 BL데이타를 형성하는 단계와;Forming BL data formed of BL blocks of BL values having the same BIN and sector number;

각 BIN 및 섹터넘버에 대한 BL블럭의 저장위치를 표시하는 BL블럭 인덱스 테이블을 형성하는 단계로 이루어진 것을 특징으로 한다.And forming a BL block index table indicating a storage location of the BL block for each BIN and sector number.

이하, 첨부된 도면을 참조하여 각 실시예들을 상술하기로 한다.Hereinafter, each embodiment will be described in detail with reference to the accompanying drawings.

(실시예 1)(Example 1)

본 실시예의 BL데이타페이지의 저장구조는 동일한 BIN 및 섹터넘버를 가지는 BL값들을 모아진 BL블럭들로 형성된 BL(데이타)저장영역과, 특정 BIN 및 섹터넘버를 가진 BL블럭의 저장위치를 검색할 수 있는 인덱스 테이블로 구성된다. 즉, 본 발명의 BL인덱스 테이블은 BIN 및 섹터넘버값으로서 해당 BL데이타의 위치를 찾을 수 있는 구조를 가진다. 관리의 편의를 위해 BL데이타의 버젼 및 크기등의 서지정보를 포함하는 헤더를 구비하는 것이 바람직하다.The storage structure of the BL data page of this embodiment can search for a BL (data) storage area formed of BL blocks having BL values having the same BIN and sector number, and a storage location of a BL block having a specific BIN and sector number. Index table That is, the BL index table of the present invention has a structure in which the position of the BL data can be found as the BIN and sector number values. For the convenience of management, it is preferable to include a header including bibliographic information such as the version and size of the BL data.

관리서버에서의 BL데이터의 그 상세한 생성과정은 다음과 같다.The detailed process of generating BL data in the management server is as follows.

우선 수집된 BL데이터를 그 카드번호순으로 소트시킨다. 이때 작업의 편의를 위해 각 자리수마다 1바이트를 할당하면 1개의 BL데이타에 16바이트가 할당된다. 각 BL카드번호의 7번째 ~ 15번째까지의 번호를 하나의 십진수로 보아 이를 4바이트의 바이너리 코드로 변환시키고 16번째 자리값은 버려, 각 BL카드번호를 10바이트값으로 변환한다. 1번째 ~ 6번째 번호들을 BIN으로 지정하고, 상기 4바이트의 바이너리 코드중 상위 2바이트를 섹터넘버로 지정하고, 하위 2바이트를 BL값으로 지정한다. 상기에서 1번째 ~ 6번째 번호를 하나의 십진수로 보아 이를 3바이트의 바이너리 코드로 변환해서 구현해도 무방하다.First, the collected BL data is sorted by the card number. At this time, if one byte is allocated to each digit for convenience, 16 bytes are allocated to one BL data. The 7th to 15th numbers of each BL card number are regarded as a decimal number and converted into a 4-byte binary code. The 16th digit is discarded, and each BL card number is converted into a 10-byte value. The first to sixth numbers are designated as BINs, the upper two bytes of the four-byte binary code are designated as sector numbers, and the lower two bytes are designated as BL values. In the above, the first through sixth numbers can be viewed as a decimal number and converted into a three-byte binary code.

소트된 BL데이터를 동일한 BIN을 가진 데이타들을 구분하여 작업을 진행한다. 소트된 순서대로 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들을 병렬적으로 수집하여 하나의 BL블럭을 구성하여 작성하려는 압축 BL데이타가 저장되는 공간에 차례대로 저장한다. 각 BL블럭의 상기 압축 BL데이타상의 위치값(포인터)으로 구성된 BL블럭 인덱스 테이블을 구성하는데, 동일한 BIN을 가진 BL블럭들마다 별도로 인덱스 테이블을 구성한다. 상기 각 BL블럭 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 섹터넘버 인덱스 테이블을 구성한다. 상기 각 섹터넘버 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 BIN 인덱스 테이블을 구성한다. 전체 BL데이타의 버전, 작성일, 크기 등의 서지정보가 기록된 헤더를 구성하여 상기 완성된 BL데이타 바디에 이어서 저장한다.The sorted BL data is divided into data having the same BIN. The BL values of the cards having the same BIN and sector number in the sorted order are collected in parallel to form one BL block and stored sequentially in a space in which the compressed BL data to be written is stored. A BL block index table composed of position values (pointers) on the compressed BL data of each BL block is configured, and an index table is separately configured for each BL blocks having the same BIN. Each BL block index table is stored in a space in which compressed BL data is stored, and a sector number index table composed of a position value (pointer) in the stored space is constructed. The sector number index table is stored in a space in which compressed BL data is stored, and constitutes a BIN index table composed of position values (pointers) in the stored space. A header in which bibliographic information such as a version, a creation date, and a size of all BL data is recorded is constructed and stored after the completed BL data body.

상기와 같이 관리서버에서 작성된 BL데이타는 소정의 유/무선 통신 경로를 통해 각 카드단말기로 전송되고 동일한 구조로 상기 카드단말기의 내부메모리에 저장된다.The BL data created in the management server as described above is transmitted to each card terminal through a predetermined wired / wireless communication path and stored in the internal memory of the card terminal in the same structure.

카드단말기가 읽어들인 카드에 대한 카드번호를 상기와 같이 구성된 BL데이타에서 검색하는 과정은 다음과 같다. 먼저, 읽어들인 카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시킨 값 중 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정한다(S110). 상기 BIN 및 섹터넘버를 내부 메모리에 저장된 인덱스 테이블에서 검색(S120)하여, 검색된 레코드에 기록된 해당 BL블럭의 저장위치를 리드하여 찾아간다(S140).The process of searching for the card number for the card read by the card terminal in the BL data configured as described above is as follows. First, the highest 2 of the values converted from the 1st to 6th digits (decimal value or binary value) of the 16-digit read card number into BIN, and the 7th to 15th numbers into 4 byte binary code. Bytes are designated as sector numbers and lower 2 bytes by BL values (S110). The BIN and sector number are searched in the index table stored in the internal memory (S120), and the storage location of the corresponding BL block recorded in the searched record is read (S140).

상기 BL블럭 저장위치 검색의 그 상세한 방법은, 우선 읽어들인 카드의 BIN값을 BIN인덱스테이블에서 검색한다(S122). 검색된 레코드에는 해당 BIN을 가지는 카드번호데이타들에 대한 섹터넘버 인덱스 테이블 저장위치가 기록되어 있으며, 이를 리드한다(S124). 다시 상기 섹터넘버 인덱스 테이블에서 리드한 카드의 섹터넘버를 검색한다(S126). 검색된 레코드에는 해당 BIN 및 섹터넘버에 대한 BL블럭의 저장위치가 기록되어 있다. 이 값으로 해당 BL블럭의 위치를 알 수 있는 것이다.In the detailed method of the BL block storage location search, first, the BIN value of the card read is searched in the BIN index table (S122). In the searched record, the sector number index table storage position for the card number data having the corresponding BIN is recorded and read (S124). The sector number of the card read from the sector number index table is searched again (S126). In the retrieved record, the storage location of the BL block for the corresponding BIN and sector number is recorded. This value tells the location of the BL block.

읽어들인 카드번호 중 상기 BL값을 상기 BL블럭에서 검색한다(S150). 검색결과 BL블럭내에 존재하면 거래불가 카드로 판정하고 존재하지 않으면 전자화폐 거래절차를 수행한다(S160).The BL value of the read card number is retrieved from the BL block (S150). If the search result is present in the BL block, it is determined as a non-tradeable card, and if not present, the electronic money transaction procedure is performed (S160).

카드단말기 또는 관리서버내 메모리상에 저장되는 전체 BL데이타의 각 부분에 대한 저장구조는 다음 2가지 경우가 가능하다. 첫번째 방법은 모든 BL블럭들을 하나의 집합으로 모아서 저장하고, 다음에 섹터넘버 인덱스 테이블들을 하나의 집합으로 모아서 저장하고, 다음에 이어서 BIN 인덱스 테이블을 저장한다. 이와 같이 구성된 BL 데이타 바디에 필요한 서지정보가 포함된 BL 데이타 헤더를 이어서 저장하여 전체 BL 데이타를 구성한다.The storage structure for each part of the entire BL data stored on the memory in the card terminal or the management server can be the following two cases. The first method collects and stores all the BL blocks in one set, then stores the sector number index tables in one set, and then stores the BIN index table. The BL data header including the bibliographic information necessary for the BL data body configured as described above is subsequently stored to form the entire BL data.

두번째 방법은 동일한 BIN을 가진 BL블럭들끼리 모아서 하나의 집합으로 모으고, 각 BIN의 BL블럭 집합에 이어서 해당 BIN의 섹터넘버 인덱스 테이블을 저장하여 각 BIN별 데이타를 구성한다. 각 BIN별 데이타를 모아서 BL 데이타 바디를 형성하고 이어서 BIN 인덱스 테이블 및 BL데이타 헤더를 저장하여 전체 BL 데이타를 구성한다.In the second method, BL blocks having the same BIN are collected and collected into one set, and then the sector number index table of the corresponding BIN is stored after the BL block set of each BIN to configure data for each BIN. The data of each BIN is collected to form a BL data body, and then the BIN index table and the BL data header are stored to form the entire BL data.

(실시예 2)(Example 2)

본 실시예는 상기 제1 실시예의 구조에 예외 BL 페이지를 추가한 것을 특징으로 한다. 본 실시예의 BL데이타는 BIN인덱스 테이블과, 각 BIN별로 섹터넘버 인덱스 테이블과 BL블럭들과 예외 BL페이지로 이루어진 BIN별 데이타로 이루어진 구조를 가진다.This embodiment is characterized by adding an exception BL page to the structure of the first embodiment. The BL data of this embodiment has a structure consisting of a BIN index table, a sector number index table for each BIN, BIN-specific data consisting of BL blocks and an exception BL page.

어떤 특정한 BIN 및 섹터넘버를 가진 BL번호들이 극히 적은 개수가 있다면, 이를 상기 제1 실시예처럼 별도로 BL블럭을 구성하고 인덱스 테이블에 추가하기에는 저장공간이 오히려 낭비되는 결과를 가져오지 않을 수 없다. 따라서, 본 실시예에서는 어떤 특정한 BIN 및 섹터넘버를 공유하는 BL번호들이 소정개수(5개 내지 10중에서 지정)이하라면 별도의 BL블럭으로 모으지 않고 예외 BL페이지에 그 이진카드번호값(섹터넘버+BL값)을 기록한다. 상기 예외 BL페이지는 각 BIN별 BL데이타에 추가되는 구조로서 포함된다.If there are extremely small numbers of BL numbers having a certain BIN and sector number, it is a waste of storage space to construct the BL blocks separately and add them to the index table as in the first embodiment. Therefore, in this embodiment, if the BL numbers sharing a certain BIN and sector number are less than a predetermined number (specified among 5 to 10), the binary card number value (sector number + Record the BL value). The exceptional BL page is included as a structure added to BL data for each BIN.

본 실시예의 BL데이터의 생성방법은 다음과 같다.The generation method of BL data of this embodiment is as follows.

우선 수집된 BL데이터를 그 카드번호순으로 소트시킨다. 이때 작업의 편의를 위해 각 자리수마다 1바이트를 할당한다. 각 BL카드번호의 7번째 ~ 15번째까지의 번호를 하나의 십진수로 보아 이를 4바이트의 바이너리 코드로 변환시키고 16번째 자리값은 버려, 각 BL카드번호를 10바이트값으로 변환한다. 1번째 ~ 6번째 번호들을 BIN으로 지정하고, 상기 4바이트의 바이너리 코드중 상위 2바이트를 섹터넘버로 지정하고, 하위 2바이트를 BL값으로 지정한다. 상기에서 1번째 ~ 6번째 번호를 하나의 십진수로 보아 이를 3바이트의 바이너리 코드로 변환해서 구현해도 무방하다.First, the collected BL data is sorted by the card number. At this time, 1 byte is allocated to each digit for convenience of work. The 7th to 15th numbers of each BL card number are regarded as a decimal number and converted into a 4-byte binary code. The 16th digit is discarded, and each BL card number is converted into a 10-byte value. The first to sixth numbers are designated as BINs, the upper two bytes of the four-byte binary code are designated as sector numbers, and the lower two bytes are designated as BL values. In the above, the first through sixth numbers can be viewed as a decimal number and converted into a three-byte binary code.

소트된 BL데이터를 동일한 BIN을 가진 데이타들을 구분하여 작업을 진행한다. 소트된 순서대로 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들을 병렬적으로 수집한다. 이때 어떤 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들의 개수가 소정개수(10개로 지정하기로 한다) 미만이라면 그 BL값들은 별도로 할당한 예외 BL 저장영역에 이진카드번호값(BIN을 제외한 섹터넘버와 BL값)만을 저장한다. 반대로 어떤 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들의 개수가 10개 이상이라면 하나의 BL블럭을 구성하여 작성하려는 압축 BL데이타가 저장되는 공간에 차례대로 저장한다.The sorted BL data is divided into data having the same BIN. Collect BL values of cards with the same BIN and sector number in sorted order in parallel. At this time, if the number of BL values of the cards having the same BIN and sector number is less than the predetermined number (to be designated as 10), the BL values are the binary card number value (sector number except BIN) in the separately allocated exception BL storage area. And BL values) only. On the contrary, if the number of BL values of cards having the same BIN and sector number is 10 or more, one BL block is constructed and stored in the space in which the compressed BL data to be written is stored.

각 BL블럭의 상기 압축 BL데이타상의 위치값(포인터)으로 구성된 BL블럭 인덱스 테이블을 구성하는데, 동일한 BIN을 가진 BL블럭들마다 별도로 인덱스 테이블을 구성한다. 상기 각 BL블럭 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 섹터넘버 인덱스 테이블을 구성하여 저장하고, 해당 BIN에 대한 예외 BL페이지를 구성하여 저장한다. 상기 각 섹터넘버 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 BIN 인덱스 테이블을 구성한다. 전체 BL데이타의 버전, 작성일, 크기 등의 서지정보가 기록된 헤더를 구성하여 상기 완성된 BL데이타 바디에 이어서 저장한다.A BL block index table composed of position values (pointers) on the compressed BL data of each BL block is configured, and an index table is separately configured for each BL blocks having the same BIN. Store each BL block index table in a space where compressed BL data is stored, construct and store a sector number index table composed of position values (pointers) in the stored space, and construct and store an exception BL page for the corresponding BIN. . The sector number index table is stored in a space in which compressed BL data is stored, and constitutes a BIN index table composed of position values (pointers) in the stored space. A header in which bibliographic information such as a version, a creation date, and a size of all BL data is recorded is constructed and stored after the completed BL data body.

본 실시예의 카드단말기의 BL데이터 검색방법은 다음과 같다.The BL data retrieval method of the card terminal of this embodiment is as follows.

먼저, 읽어들인 카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시키고 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정한다(S110). 상기 BIN을 상기 BIN인덱스 테이블에서 검색한다(S122). 검색된 필드에는 해당 BIN에 대한 섹터넘버 인덱스 테이블의 저장위치가 기록되어 있으므로, 이를 참조하여 해당 BIN에 대한 섹터넘버 인덱스 테이블로 찾아간다(S124). 읽어들인 카드번호 중 상기 섹터넘버를 섹터넘버 인덱스 테이블에서 검색한다(S126). 검색된 필드에는 해당 섹터넘버에 대한 BL블럭의 저장위치가 기록되어 있으므로, 이를 참조하여 해당 섹터넘버에 대한 BL블럭으로 찾아간다(S140). 읽어들인 카드번호 중 상기 BL값을 상기 BL블럭에서 검색한다(S150). 검색결과 BL블럭내 존재하면 거래불가 카드로 판정하고 존재하지 않으면 전자화폐 거래절차를 수행한다(S160). 그런데, 상기 S126단계에서 읽어들인 카드의 섹터넘버가 섹터넘버 인덱스 테이블에서 검색되지 않는다면, 해당 BIN별 BL데이터 저장영역에 포함된 예외 BL페이지에서 이진카드번호값을 검색한다(S202). 상기에서 읽어들인 카드번호가 검색되면 사용불가 카드로 판단하고, 검색되지 않으면 전자화폐 거래절차를 수행한다(S204).First, convert the 1st to 6th digits (decimal value or binary value) of the 16-digit card number (decimal value or binary value) into BIN, and convert the 7th to 15th numbers into 4 byte binary code. As the sector number, the lower two bytes are designated as BL values (S110). The BIN is retrieved from the BIN index table (S122). In the searched field, since the storage position of the sector number index table for the BIN is recorded, the searched field goes to the sector number index table for the BIN (S124). The sector number of the read card numbers is retrieved from the sector number index table (S126). In the searched field, since the storage location of the BL block for the corresponding sector number is recorded, the controller searches for the BL block for the corresponding sector number with reference to this (S140). The BL value of the read card number is retrieved from the BL block (S150). If the search result is present in the BL block, it is determined as a non-tradeable card, and if not present, the electronic money transaction procedure is performed (S160). If the sector number of the card read in step S126 is not retrieved from the sector number index table, the binary card number value is retrieved from the exception BL page included in the corresponding BL data storage area for each BIN (S202). If the card number read in above is searched, it is determined as an unusable card, and if not, the electronic money transaction procedure is performed (S204).

(실시예 3)(Example 3)

본 실시예는 제2 실시예와 마찬가지로 상기 제1 실시예의 구조에 예외 BL 페이지를 추가한 것을 특징으로 한다. 즉, 본 실시예의 BL 데이타는 상기 제 1실시예의 전체 BL데이타와 동일한 구조의 전체 BL 페이지와 예외 BL 페이지로 구성된다. 본 실시예에서는 상기 제2 실시예의 경우와는 다르게 일반 BL 페이지와 예외 BL 페이지가 각 BIN별로 구분되어 결합되지 않고, 전체 BL데이타가 일반 BL페이지와 예외 BL페이지로 구성된다.This embodiment is characterized in that an exception BL page is added to the structure of the first embodiment as in the second embodiment. That is, the BL data of this embodiment is composed of all BL pages and exception BL pages having the same structure as all BL data of the first embodiment. In the present embodiment, unlike the case of the second embodiment, the general BL page and the exception BL page are not divided and combined for each BIN, and the entire BL data is composed of the general BL page and the exception BL page.

본 실시예에서도 상기 제2 실시예와 마찬가지로 어떤 특정한 BIN 및 섹터넘버를 공유하는 BL번호들이 소정개수(5개 내지 10중에서 지정)이하라면 별도의 BL블럭으로 모으지 않고 예외 BL페이지에 그 카드번호값(섹터넘버+BL값)을 기록한다. 상기 예외 BL페이지는 각 예외적인 BL번호 전체값들이 병렬적으로 수집 저장된 예외 BL페이지 바디와, 작성일자, 버젼 등의 서지정보가 포함된 예외 BL페이지 헤더로 구성된다. In the present embodiment, as in the second embodiment, if the BL numbers sharing a certain BIN and sector number are less than a predetermined number (specified among 5 to 10), the card number value is not collected in a separate BL block and is stored in the exception BL page. Record (sector number + BL value). The exception BL page is composed of an exception BL page body in which all of the exceptional BL number values are collected and stored in parallel, and an exception BL page header including bibliographic information such as creation date and version.

본 실시예의 BL데이터의 생성방법은 다음과 같다.The generation method of BL data of this embodiment is as follows.

우선 수집된 BL데이터를 그 카드번호순으로 소트시킨다. 이때 작업의 편의를 위해 각 자리수마다 1바이트를 할당한다. 각 BL카드번호의 7번째 ~ 15번째까지의 번호를 하나의 십진수로 보아 이를 4바이트의 바이너리 코드로 변환시키고 16번째 자리값은 버려, 각 BL카드번호를 10바이트값으로 변환한다. 1번째 ~ 6번째 번호들을 BIN으로 지정하고, 상기 4바이트의 바이너리 코드중 상위 2바이트를 섹터넘버로 지정하고, 하위 2바이트를 BL값으로 지정한다. 상기에서 1번째 ~ 6번째 번호를 하나의 십진수로 보아 이를 3바이트의 바이너리 코드로 변환해서 구현해도 무방하다.First, the collected BL data is sorted by the card number. At this time, 1 byte is allocated to each digit for convenience of work. The 7th to 15th numbers of each BL card number are regarded as a decimal number and converted into a 4-byte binary code. The 16th digit is discarded, and each BL card number is converted into a 10-byte value. The first to sixth numbers are designated as BINs, the upper two bytes of the four-byte binary code are designated as sector numbers, and the lower two bytes are designated as BL values. In the above, the first through sixth numbers can be viewed as a decimal number and converted into a three-byte binary code.

소트된 BL데이터를 동일한 BIN을 가진 데이타들을 구분하여 작업을 진행한다. 소트된 순서대로 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들을 병렬적으로 수집한다. 이때 어떤 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들의 개수가 소정개수(10개로 지정하기로 한다)미만이라면 그 BL값들은 이진카드번호값(섹터넘버+BL값)을 별도로 할당한 예외 BL 저장영역(예외 BL페이지 저장영역)에 저장한다. 반대로 어떤 동일한 BIN 및 섹터넘버를 가진 카드들의 BL값들의 개수가 10개 이상이라면 하나의 BL블럭을 구성하여 작성하려는 압축 BL데이타가 저장되는 공간(일반 BL 페이지 저장영역)에 차례대로 저장한다.The sorted BL data is divided into data having the same BIN. Collect BL values of cards with the same BIN and sector number in sorted order in parallel. At this time, if the number of BL values of the cards having the same BIN and sector number is less than the predetermined number (to be designated as 10), the BL values are stored in the exception BL which separately assigns the binary card number value (sector number + BL value). Area (exception BL page storage area). On the contrary, if the number of BL values of cards having the same BIN and sector number is 10 or more, one BL block is formed and stored in the space (general BL page storage area) in which the compressed BL data to be written is stored.

상기 일반 BL 페이지의 경우, 각 BL블럭의 상기 압축 BL데이타상의 위치값(포인터)으로 구성된 BL블럭 인덱스 테이블을 구성하는데, 동일한 BIN을 가진 BL블럭들마다 별도로 인덱스 테이블을 구성한다. 상기 각 BL블럭 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 섹터넘버 인덱스 테이블을 구성한다. 상기 각 섹터넘버 인덱스 테이블을 압축 BL데이타가 저장되는 공간에 저장하고 그 저장된 공간상의 위치값(포인터)으로 구성된 BIN 인덱스 테이블을 구성한다. 전체 BL데이타의 버전, 작성일, 크기 등의 서지정보가 기록된 헤더를 구성하여 상기 완성된 BL데이타 바디에 이어서 저장한다.In the case of the general BL page, a BL block index table including a position value (pointer) on the compressed BL data of each BL block is configured, and an index table is separately configured for each BL block having the same BIN. Each BL block index table is stored in a space in which compressed BL data is stored, and a sector number index table composed of a position value (pointer) in the stored space is constructed. The sector number index table is stored in a space in which compressed BL data is stored, and constitutes a BIN index table composed of position values (pointers) in the stored space. A header in which bibliographic information such as a version, a creation date, and a size of all BL data is recorded is constructed and stored after the completed BL data body.

기록이 완료된 예외 BL바디에 대해서도 필요한 서지정보가 기록된 헤더를 구성하여 결합하여 전체 예외 BL 페이지를 구성한다. 상기 예외 BL 페이지도 각 BIN별로 구분하여 데이타 저장위치를 할당하고 해당 저장위치에는 이진카드번호값(섹터넘버와 BL값)만을 저장하는 구조를 가지며, 이를 위해 예외 BL에 대한 BIN 인덱스 테이블을 구비하는 것이 바람직하다. 상기 예외 BL에 대한 BIN 인덱스 테이블의 구조는 상기 BIN 인덱스 테이블의 구조와 유사하므로 설명을 생략한다.Even in the exceptional BL body for which recording is completed, a header in which necessary bibliographic information is recorded is combined to form an entire exception BL page. The exception BL page also has a structure for allocating a data storage location by dividing each BIN and storing only a binary card number value (sector number and BL value) in the storage location. For this purpose, a BIN index table for the exception BL is provided. It is preferable. Since the structure of the BIN index table for the exception BL is similar to that of the BIN index table, description thereof is omitted.

본 실시예의 카드단말기의 BL데이터 검색방법은 다음과 같다.The BL data retrieval method of the card terminal of this embodiment is as follows.

먼저, 읽어들인 카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시키고 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정한다(S110). 상기 BIN을 상기 BIN인덱스 테이블에서 검색한다(S122). 검색된 필드에는 해당 BIN에 대한 섹터넘버 인덱스 테이블의 저장위치가 기록되어 있으므로, 이를 참조하여 해당 BIN에 대한 섹터넘버 인덱스 테이블로 찾아간다(S124). 읽어들인 카드번호 중 상기 섹터넘버를 섹터넘버 인덱스 테이블에서 검색한다(S126). 검색된 필드에는 해당 섹터넘버에 대한 BL블럭의 저장위치가 기록되어 있으므로, 이를 참조하여 해당 섹터넘버에 대한 BL블럭으로 찾아간다(S140). 읽어들인 카드번호 중 상기 BL값을 상기 BL블럭에서 검색한다(S150). 검색결과 BL블럭내 존재하면 거래불가 카드로 판정하고 존재하지 않으면 전자화폐 거래절차를 수행한다(S160). 그런데, 상기 S126단계에서 읽어들인 카드의 섹터넘버가 섹터넘버 인덱스 테이블에서 검색되지 않는다면, 예외 BL에 대한 BIN인덱스 테이블에서 읽어들인 카드의 BIN을 검색하여 해당 BIN을 포함하는 예외 BL의 저장위치를 알아내고, 상기 예외 BL의 저장위치에서 읽어들인 카드의 이진카드번호값(섹터넘버 및 BL값)을 검색한다(S202). 상기에서 읽어들인 카드번호가 검색되면 사용불가 카드로 판단하고, 검색되지 않으면 전자화폐 거래절차를 수행한다(S204).First, convert the 1st to 6th digits (decimal value or binary value) of the 16-digit card number (decimal value or binary value) into BIN, and convert the 7th to 15th numbers into 4 byte binary code. As the sector number, the lower two bytes are designated as BL values (S110). The BIN is retrieved from the BIN index table (S122). In the searched field, since the storage position of the sector number index table for the BIN is recorded, the searched field goes to the sector number index table for the BIN (S124). The sector number of the read card numbers is retrieved from the sector number index table (S126). In the searched field, since the storage location of the BL block for the corresponding sector number is recorded, the controller searches for the BL block for the corresponding sector number with reference to this (S140). The BL value of the read card number is retrieved from the BL block (S150). If the search result is present in the BL block, it is determined as a non-tradeable card, and if not present, the electronic money transaction procedure is performed (S160). However, if the sector number of the card read in step S126 is not found in the sector number index table, the BIN of the card read in the BIN index table for the exception BL is searched to find the storage location of the exception BL including the corresponding BIN. The binary card number value (sector number and BL value) of the card read out from the storage location of the exception BL is retrieved (S202). If the card number read in above is searched, it is determined as an unusable card, and if not, the electronic money transaction procedure is performed (S204).

(실시예 4)(Example 4)

본 실시예는 상기 제1 실시예 또는 제2 실시예 또는 제3실시예의 구조를 가진 메인 BL파일에 템프 BL데이타를 추가한 것을 특징으로 한다. 템프 파일과 예외 BL페이지의 유사성이 강한 상기 제3 실시예의 개선으로 적용하기가 용이하다. 상기 템프 BL파일은 메일 BL파일의 작성이후 특정기간 동안 변동된 사항만을 기록한 BL데이타이다.The present embodiment is characterized in that temp BL data is added to the main BL file having the structure of the first embodiment, the second embodiment, or the third embodiment. It is easy to apply with the improvement of the third embodiment where the similarity between the temp file and the exception BL page is strong. The temp BL file is a BL data which records only the contents changed during a specific period after the mail BL file is created.

템프 BL데이타는 짧은 기간의 변동한 BL만을 기록하므로 메인 BL데이타처럼 압축하기에는 데이타간의 간격이 크다. 따라서, 단순히 BIN넘버를 공유하는 카드번호들의 집합으로 구분하여 구현하는 것이 바람직하다. BL변동은 새로이 BL로 카드번호가 추가되는 것 뿐만 아니라, 기존에 BL에 있던 카드번호가 리스트에서 삭제되는 경우도 있으므로 템프 BL에 기록된 각 카드번호마다 삭제/추가 여부를 표시해야 한다. 표시방법은 별도의 각 카드번호기록마다 플래그비트를 마련하여(9자리 십진수를 4바이트 이진수로 변환할때 남는 자리를 플래그로 이용하는 것이 바람직하다) 표시하거나, 삭제되는 리스트와 추가되는 리스트들을 그 저장영역을 구분하여 표시한다.Since the temp BL data records only the fluctuating BL of a short period, the interval between the data is large to compress the main BL data. Therefore, it is desirable to implement by dividing into a set of card numbers that simply share the BIN number. The BL change is not only to add a new card number to the BL, but also to delete a card number existing in the BL from the list. Therefore, it is necessary to indicate whether to delete / add each card number recorded in the temp BL. The display method is to provide a flag bit for each separate card number record (preferably using the remaining digits as a flag when converting a 9-digit decimal number to a 4-byte binary number) or display the list to be deleted and the list to be added. Areas are displayed separately.

본 실시예의 전체 BL데이터중 메인 BL데이터의 생성방법은 상기 제1실시예 내지 제3 실시예 중 하나와 동일하다. The method of generating main BL data among the entire BL data of this embodiment is the same as that of one of the first to third embodiments.

도 4는 본 발명의 제 4실시예의 메인BL 데이타와 템프BL 데이타를 설명하기 위한 것이다. 이 경우에는 BL전송이 하루에 한번 이루어지는 것으로 한다.4 illustrates main BL data and temp BL data according to the fourth embodiment of the present invention. In this case, the BL transmission is performed once a day.

일단, 과거의 BL데이터인 메인BL 데이타가 있고, 이 메인BL 데이타는 지불단말기의 메모리에 저장되어 있다. 중앙단말기는 메인BL 데이타 최종갱신일 이후 첫째날동안 추가된 BL과 해제된 BL을 모아서 템프BL0를 만들어(S20) 지불단말기로 전송하고, 지불단말기의 메모리에는 메인BL과 템프BL0을 저장한다. 중앙단말기는 둘째날 동안 추가된 BL과 해제된 BL을 모아서 템프BL0을 갱신(새로 추가된 BL을 추가기록하고, 추가된 BL번호와 같은 번호가 존재하는 경우 기존 값을 새로운 설정으로 기록한다)하여(S30) 지불단말기로 전송하고 지불단말기는 메모리에 저장된 템프BL0를 새로 갱신된 템프BL0로 교체한다. 같은 방법으로 일곱째날 까지 추가/해제된 BL을 모아서 갱신하여 1주일간의 최종 템프BL0을 완성한다(S40). 상기의 과정으로 다음 1주일 동안 템프BL1을 완성한다. 이제 지불단말기의 메모리에는 메인BL과 템프BL0, 템프BL1이 저장되어 있다. 템프BL0부터 템프BL9까지 10개의 템프BL이 모아지면, 중앙단말기는 기존의 메인BL에 템프BL 10개를 병합하여 새로운 버전의 메인BL을 구성한다(S50). 이 과정은 기존의 메인BL에 우선 템프BL0를 병합하여 갱신하고, 다시 템프BL1을 병합하여 갱신하는 순서로 템프BL9까지 병합하여 갱신한다. 메인BL에 템프BL을 병합할 때에는 템프BL에 '등록'으로 설정된 BL번호들은 메인BL에 추가하고(물론 이미 존재하는 경우에는 변화없다), 템프BL에 '해제'로 설정된 BL번호들은 메인BL에서 제거한다(물론 해당 번호가 메인BL에 존재하지 않는 경우 변화없다).First, there is main BL data, which is past BL data, and this main BL data is stored in the memory of the payment terminal. The central terminal collects the added BL and the released BL during the first day after the last update date of the main BL data, makes a temp BL0 (S20), and transmits it to the payment terminal, and stores the main BL and temp BL0 in the memory of the payment terminal. The central terminal collects the added BL and released BL during the second day, and updates the temp BL0 (adds the newly added BL and records the existing value with the new setting if the same number as the added BL number exists). (S30) The payment terminal transmits the payment terminal and replaces the temp BL0 stored in the memory with the newly updated temp BL0. In the same way, the added / released BLs are collected and updated until the seventh day, thereby completing the final temp BL0 of one week (S40). The above process completes temp BL1 for the next week. The memory of the payment terminal now stores the main BL, the temp BL0, and the temp BL1. When 10 temp BLs are collected from temp BL0 to temp BL9, the central terminal merges 10 temp BLs into the existing main BL to form a new version of the main BL (S50). This process merges and updates the temp BL0 first to the existing main BL, and updates the temp BL9 by merging the temp BL1 again. When merging Temp BL to Main BL, BL numbers set to 'register' in Temp BL are added to Main BL (unchanged if it already exists), and BL numbers set to 'Off' in Temp BL are Remove it (unless the number exists in the main BL, of course).

템프 BL 데이터 영역내 BL 데이터 저장영역의 각 이진카드번호값은 9자리의 십진수를 31비트의 이진수로 변환하여 표시하고, BL등록시 '0', BL해제시 '1'을 기록하는 BL등록/해제 비트(1비트)를 앞에 붙여 모두 4바이트로 저장한다.Each binary card number value in the BL data storage area in the temp BL data area is displayed by converting 9-digit decimal number into 31-bit binary number and registering / unregistering BL recording '0' and BL '1'. All of them are stored as four bytes, preceded by a bit (1 bit).

본 실시예의 카드단말기의 BL데이터 검색방법은 다음과 같다.The BL data retrieval method of the card terminal of this embodiment is as follows.

단말기의 메모리에는 1개의 메인 BL데이타와 2개의 템프 BL데이타가 저장되어 있다고 가정한다. 메인 BL을 먼저 검색하였을 경우에는 템프 BL을 다시 검색하는 번거로움이 있으므로, 템프 BL부터 특히, 가장 최신의 템프 BL부터 검색한다.It is assumed that one main BL data and two temp BL data are stored in the memory of the terminal. If the main BL is searched first, it is troublesome to search for the temp BL again. Therefore, the temp BL is searched from the most recent temp BL.

단말기는 읽어들인 전체카드번호중 1번째 ~ 6번째 자리까지의 BIN값을 BIN 인덱스 테이블에서 검색하고, 그 결과값으로 해당 BIN의 BL데이터 저장영역을 찾아간다. 읽어들인 카드의 전체 카드번호중 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환한 이진카드번호값을, 해당 BIN에 대한 가장 최근의 템프 BL데이타에서 검색한다(S102). 해당 이진카드번호값이 검색되면 그것에 대한 삭제/추가 여부 기록을 리드하여 삭제라면 당해 카드는 사용가능카드로 판정을 완료하고, 추가라면 사용불가카드로 판정을 완료한다(S104). 상기 단계에서 해당 이진카드번호값이 검색되지 않으면 다음 최근의 템프 BL데이타에서 검색하는 상기 단계와 동일한 과정을 수행한다. 모든 템프 BL데이타에서 해당 이진카드번호값이 검색되지 않으면 메인 BL데이타에서 해당 이진카드번호값을 검색하게 되는데, 이 검색 절차는 상기 제1 실시예 내지 제3 실시예의 어느 하나와 동일하므로 설명을 생략한다.The terminal searches the BIN index table of the first to sixth digits of all the card numbers read, and finds the BL data storage area of the BIN as a result. The binary card number value obtained by converting the seventh to fifteenth numbers of all the card numbers read out into a four-byte binary code is retrieved from the most recent temp BL data for the corresponding BIN (S102). If the corresponding binary card number value is found, a record of whether to delete / add it is read, and if it is deleted, the card completes the determination as an available card, and if it is added, the determination is completed as an unavailable card (S104). If the corresponding binary card number value is not retrieved in the above step, the same process as the above step of searching in the latest temp BL data is performed. If the corresponding binary card number value is not found in all the temp BL data, the corresponding binary card number value is searched in the main BL data. This search procedure is the same as any one of the first to third embodiments, and thus description thereof is omitted. do.

본 발명의 모든 실시예에서, 계약관계상 서비스 되지 않는 카드 종류(즉, BIN)를 구분하기 위해서는, 상기 BIN인덱스 테이블에 후불 거래가 가능한 카드들의 BIN을 모두 기록하는 것이 바람직하다. 이 때 BL이 전혀 없는 경우에는 해당 BL데이타 저장영역이 없으므로 인덱스 영역에는 NULL을 표시하는 값을 기록하며, 템프 BL데이타로 서비스 추가된 BIN을 추가하기 위해 상기 BIN인덱스 테이블에는 소정크기의 예약영역을 가져야 한다. 이와 같은 구현의 경우에는 단말기는 BL체크시 먼저 읽어들인 카드의 BIN이 상기 BIN인덱스 테이블에 존재하는지를 먼저 확인하여 존재하는 경우에만 후불처리 절차를 수행하고 존재하지 않으면 거래불가로 종료한다.In all embodiments of the present invention, it is preferable to record all the BINs of cards that can be postpaid in the BIN index table in order to distinguish card types (ie, BINs) which are not serviced due to contractual relationship. In this case, if there is no BL at all, there is no corresponding BL data storage area, so a value indicating NULL is recorded in the index area, and a reserved area of a predetermined size is set in the BIN index table to add a BIN added with temp BL data. Should have In the case of such an implementation, the terminal first checks whether the BIN of the card read first at the BL check is present in the BIN index table, and performs the post-paid processing procedure only if it exists.

본 발명의 각 인덱스 테이블에 저장되는 값은 찾으려는 데이타의 저장위치에 대한 어드레스값 또는 인덱스값이 될 수 있다. 이중 어드레스로 구현하는 경우에는 그 값의 크기가 커서 저장공간의 낭비가 있는 반면, 바로 해당 위치로 찾아갈수 있으므로 검색속도가 보다 빠르고 검색구현이 간단한 장점이 있다. 반대로 인덱스로 구현하는 경우에는 인덱스 숫자만큼 이전의 각 데이타구조를 하나씩 찾아가야 하므로 검색속도가 느리고 검색구현이 복잡한 단점이 있는 반면에, 짧은 인덱스 숫자를 사용하므로 저장공간을 절감하는 장점이 있다.The value stored in each index table of the present invention may be an address value or an index value for a storage location of data to be found. In the case of implementing a double address, the size of the value is large, which wastes storage space. However, since the value can be directly moved to the corresponding location, the search speed is faster and the search implementation is simpler. On the contrary, when the index is implemented, each previous data structure needs to be searched one by one as the number of indexes, and thus the search speed is slow and the search implementation is complicated. On the other hand, the short index number is used to save storage space.

본 발명에 의한 BL데이터의 압축방법을 실시하면, 종래의 방법보다 BL데이터의 카드 단말기내 저장공간을 절감하면서도, 단말기가 읽어들인 카드번호의 BL존재여부의 검색이 빠른 효과를 가져온다. When the BL data compression method according to the present invention is implemented, the BL data can be searched for whether the BL exists in the card number read by the terminal, while reducing the storage space of the BL data in the card terminal.

본 발명에 의한 BL데이터의 압축방법 및 템프 파일을 사용하는 구현을 실시하면, 일일 전송되는 데이터량은 크기가 작은 템프 파일이므로 전송시간 및 전송비용을 절감할 수 있는 효과가 있을 뿐만 아니라, 단말기내 별도의 BL데이타의 병합(merge)과정이 없으므로 BL데이타의 갱신을 수행함으로 인한 카드단말기의 운영시간의 단축 및 시간낭비를 방지하는 효과도 있다. If the implementation using the compression method and the temp file of the BL data according to the present invention, since the amount of data to be transmitted daily is a small temp file, there is an effect that can reduce the transmission time and cost, as well as in the terminal Since there is no separate process of merging BL data, it is possible to reduce the operating time of the card terminal and waste of time by performing the BL data update.

도 1은 본 발명의 제1 실시예에서의 BL데이타 구조의 하나를 도시한 것이다.1 shows one BL data structure in the first embodiment of the present invention.

도 2는 본 발명의 제1 실시예에서의 BL데이타 구조의 다른 하나를 도시한 것이다.2 shows another one of the BL data structures in the first embodiment of the present invention.

도 3은 본 발명의 제2 실시예에서의 BL데이타 구조의 하나를 도시한 것이다.3 shows one of the BL data structures in the second embodiment of the present invention.

도 4는 본 발명의 제4 실시예에서의 BL데이타 구조의 하나를 도시한 것이다.4 shows one BL data structure in the fourth embodiment of the present invention.

도 5는 본 발명이 사용되는 후불식 카드시스템을 도시한 것이다.Figure 5 illustrates a postpaid card system in which the present invention is used.

Claims (8)

구매대금 또는 교통요금을 징수하는 BL데이터 기반 카드결제 시스템 또는 WL(White List)데이터 기반 카드결제 시스템에서, 각 카드사에서 받은 카드번호리스트 데이터를 저장 또는 전송하는데 사용되는 카드번호리스트 데이터의 압축방법에 있어서;In the BL data-based card payment system or WL (White List) data-based card payment system that collects the purchase price or transportation fee, the compression method of the card number list data used to store or transmit the card number list data received from each card company In; 카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시킨 값중에서 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정하였을 때,Sector number of the upper two bytes among the values converted from the 1st to 6th digits (decimal value or binary value) of the 16 digits of the card number into BIN, and the 7th through 15th numbers into 4 byte binary code. When the lower 2 bytes are designated as BL value, 동일한 BIN 및 섹터넘버를 가진 BL값들이 수집된 BL블럭들로 구성된 BL저장영역과,A BL storage area composed of BL blocks in which BL values having the same BIN and sector number are collected; 특정한 BIN 및 섹터넘버에 해당하는 BL블럭들의 저장위치를 표시하는 인덱스 테이블 영역으로 이루어진 데이터페이지의 구조를 구성하는 것을 특징으로 하는 카드번호리스트 데이터의 압축방법.A method of compressing card number list data, comprising a structure of a data page comprising an index table area indicating a storage location of BL blocks corresponding to a specific BIN and sector number. 구매대금 또는 교통요금을 징수하는 BL데이터 기반 카드결제 시스템 또는 WL(White List)데이터 기반 카드결제 시스템에서, 각 카드사에서 받은 카드번호리스트 데이터를 저장 또는 전송하는데 사용되는 카드번호리스트 데이터의 압축방법에 있어서;In the BL data-based card payment system or WL (White List) data-based card payment system that collects the purchase price or transportation fee, the compression method of the card number list data used to store or transmit the card number list data received from each card company In; 카드번호 16자리중 1번째 ~ 6번째자리까지의 값(십진수값 또는 바이너리값)을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시킨 카드번호값 중에서 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정하였을때,The first 2 bytes of the 16th digit of the card number (decimal value or binary value) are converted into BIN, and the top 2 bytes of the card number value obtained by converting the 7th to 15th numbers into 4 byte binary codes. Sector number, when the lower 2 bytes are designated as BL value, 동일한 BIN 및 섹터넘버를 가진 BL값들의 개수가 소정개수 이상인 BL값들에 대해서는, 동일 BIN 및 섹터넘버의 BL값들이 수집된 BL블럭들로 구성된 BL저장영역과,For BL values having a predetermined number or more of BL values having the same BIN and sector number, a BL storage area including BL blocks in which BL values of the same BIN and sector number are collected; 특정한 BIN 및 섹터넘버에 해당하는 BL블럭들의 저장위치를 표시하는 인덱스 테이블 영역으로 이루어진 일반 데이터 페이지의 구조를 구성하고;Construct a structure of a general data page consisting of an index table area indicating a storage location of BL blocks corresponding to a specific BIN and sector number; 동일한 BIN 및 섹터넘버를 가진 BL값들의 개수가 소정개수 미만인 BL값들에 대해서는, 동일 BIN의 카드번호값들이 수집된 각 BIN별 예외 BL블럭영역들로 이루어진 예외 페이지의 구조를 구성하는 것을 특징으로 하는 카드번호리스트 데이터의 압축방법.Regarding the BL values in which the number of BL values having the same BIN and sector number is less than a predetermined number, an exception page structure consisting of exception BL block areas for each BIN in which card number values of the same BIN are collected is characterized in that it is configured. Compression method of card number list data. 제 1항 또는 2항에 있어서, 상기 데이터 페이지의 구조는 동일한 BIN을 가진 BL블럭들끼리 모아서 하나의 집합으로 모으고, 각 BIN의 BL블럭 집합에 이어서 해당 BIN의 섹터넘버 인덱스 테이블을 저장하여 구성된 각 BIN별 데이타를 모아서 형성된 BL 저장영역과, 각 BIN값에 대한 해당 BIN별 데이타 저장위치를 표시하는 BIN 인덱스 테이블로 이루어진 것을 특징으로 하는 카드번호리스트 데이터의 압축방법.The data structure of claim 1 or 2, wherein the data page structure is formed by collecting BL blocks having the same BIN and collecting them into one set, and storing the sector number index table of the corresponding BIN following the BL block set of each BIN. A method of compressing card number list data, comprising: a BL storage area formed by collecting data for each BIN, and a BIN index table for indicating a data storage location for each BIN for each BIN value. 상기 제 1항 내지 3항 중 어느 한 방법으로 메인BL파일을 생성하는 단계(S10)와,Generating the main BL file by any one of claims 1 to 3 (S10), 1일의 BL 데이타의 변동량을 모아서 새로운 템프파일을 생성하는 단계(S20)와,Generating a new temp file by collecting variation of BL data of one day (S20), 이미 존재하는 템프파일 데이타에 각 카드사별 로 1일의 카드번호리스트 데이타의 변동량을 모아서 템프파일을 갱신하는 단계(S30)와, A step of updating the temp file by collecting the amount of variation in the card number list data for each card company for each card company in the existing temp file data (S30); 6일 동안의 S30단계에 의해 갱신된 템프파일을 확정하는 단계(S40)와 ,Confirming the temp file updated by the step S30 for 6 days (S40) and, 상기 (S20)~(S40) 단계를 9번 반복하여, 확정된 템프파일 10개를 모아서 기존의 메인 파일에 병합하여 메인파일을 갱신하는 단계(S50)로 이루어진 것을 특징으로 하는 카드번호리스트 데이터의 압축방법. Repeating steps (S20) to (S40) nine times, collecting ten determined temp files, merging them into an existing main file and updating the main file (S50). Compression method. 읽어들인 카드번호 16자리중 1번째 ~ 6번째자리까지의 값을 BIN으로, 7번째 ~ 15번째까지의 번호를 4바이트의 바이너리 코드로 변환시킨 상위 2바이트를 섹터넘버로, 하위 2바이트를 BL값으로 지정하는 단계(S110)와;The first 2 to 6 digits of the read 16-digit card number are converted to BIN, the upper 2 bytes of the 7th to 15th numbers are converted into 4-byte binary code, and the lower 2 bytes are BL. Assigning a value (S110); 상기 BIN 및 섹터넘버를 내부 메모리에 저장된 인덱스 테이블에서 검색하는 단계(S120)와;Retrieving the BIN and sector numbers from an index table stored in an internal memory (S120); 검색된 레코드에 기록된 해당 BL블럭의 저장위치를 리드하는 단계(S140)와;Reading storage positions of the corresponding BL blocks recorded in the retrieved record (S140); 해당 BL블럭에서 상기 BL값을 검색하는 단계(S150)와;Retrieving the BL value from the BL block (S150); 검색결과 BL블럭내 존재하면 거래불가 카드로 판정하고, 존재하지 않으면 전자화폐 거래절차를 수행하는 단계(S160)로 이루어진 것을 특징으로 하는 카드단말기의 BL조회방법.If it is present in the BL block is determined as a non-tradeable card, and if not present, the step of performing an electronic money trading procedure (S160), the BL query method of the card terminal. 제 5항에 있어서, 상기 S120단계는,The method of claim 5, wherein the step S120, 상기 BIN값을 내부 메모리에 저장된 BIN 인덱스 테이블에서 검색하는 단계(S122)와;Retrieving the BIN value from a BIN index table stored in an internal memory (S122); 검색된 레코드에 기록된 해당 BIN의 섹터넘버 인덱스 테이블의 저장위치를 리드하는 단계(S124)와;Reading the storage position of the sector number index table of the corresponding BIN recorded in the retrieved record (S124); 상기 섹터넘버 인덱스 테이블에서 상기 섹터넘버를 검색하는 단계(S126)로 이루어진 것을 특징으로 하는 카드단말기의 BL조회방법.And retrieving the sector number from the sector number index table (S126). 제 5항 또는 6항에 있어서, 읽어들인 카드번호를 일반 BL페이지에서 검색하는 상기 S102단계 내지 S160단계의 수행결과 읽어들인 카드번호가 검색되지 않으면,The card number read according to claim 5 or 6, wherein if the read card number is not retrieved as a result of performing steps S102 to S160 of retrieving the read card number from the general BL page, 예외 BL페이지에서 읽어들인 카드번호를 검색하여, 예외 BL페이지 내 존재하면 거래불가 카드로 판정하고, 존재하지 않으면 전자화폐 거래절차를 수행하는 단계(S202)를 더 포함하는 것을 특징으로 하는 카드단말기의 BL조회방법.Searching the card number read from the exception BL page, if present in the exception BL page is determined as a non-tradeable card, if not present, further comprising the step of performing an electronic money trading procedure (S202) of the card terminal BL query method. 제 7항에 있어서, 읽어들인 카드번호를 메인 파일에서 검색하는 상기 S110단계 이전에,According to claim 7, Before the step S110 of retrieving the read card number in the main file, 내부 메모리에 저장된 가장 최신의 템프 파일에서 읽어들인 카드번호를 검색하는 단계(S102)와;Retrieving a card number read from the latest temp file stored in the internal memory (S102); 상기 S102 단계에서 검색되면, 해당 레코드의 삭제/추가 플래그를 리드하여, 삭제면 카드 사용가능으로 판정하고, 추가면 사용불가로 판정하는 단계(S104)가 더 포함되고,When the search is made in step S102, the delete / add flag of the corresponding record is read to determine that the card can be deleted, and that it is not available. 상기 S120단계에서 읽어들인 카드번호가 검색되지 않으면, 그 다음으로 최신의 템프 파일에서 상기 S102단계 및 S104를 수행하는 것을 특징으로 하는 카드단말기의 BL조회방법.If the card number read in step S120 is not retrieved, then the steps S102 and S104 are performed on the latest temp file.
KR1020030069852A 2003-10-08 2003-10-08 Compression saving method and search method of card black-list data KR100610529B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030069852A KR100610529B1 (en) 2003-10-08 2003-10-08 Compression saving method and search method of card black-list data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030069852A KR100610529B1 (en) 2003-10-08 2003-10-08 Compression saving method and search method of card black-list data

Publications (2)

Publication Number Publication Date
KR20050034058A true KR20050034058A (en) 2005-04-14
KR100610529B1 KR100610529B1 (en) 2006-08-09

Family

ID=37237985

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030069852A KR100610529B1 (en) 2003-10-08 2003-10-08 Compression saving method and search method of card black-list data

Country Status (1)

Country Link
KR (1) KR100610529B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834584B1 (en) * 2006-11-16 2008-06-02 한국정보통신서비스 주식회사 Terminal Devices for Processing Payment
WO2012128557A2 (en) * 2011-03-22 2012-09-27 비씨카드 주식회사 Transportation card payment processing method and transportation card terminal for the method
KR101354388B1 (en) * 2012-12-12 2014-01-23 신한카드 주식회사 Generating method for one time code
KR20150141871A (en) * 2014-06-10 2015-12-21 주식회사 엘지씨엔에스 Apparatus and method for processing card information

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834584B1 (en) * 2006-11-16 2008-06-02 한국정보통신서비스 주식회사 Terminal Devices for Processing Payment
WO2012128557A2 (en) * 2011-03-22 2012-09-27 비씨카드 주식회사 Transportation card payment processing method and transportation card terminal for the method
WO2012128557A3 (en) * 2011-03-22 2013-01-03 비씨카드 주식회사 Transportation card payment processing method and transportation card terminal for the method
KR101354388B1 (en) * 2012-12-12 2014-01-23 신한카드 주식회사 Generating method for one time code
WO2014092234A1 (en) * 2012-12-12 2014-06-19 신한카드 주식회사 Method for generating one-time card number
CN104011760A (en) * 2012-12-12 2014-08-27 新韩信用卡株式会社 Method for generating one-time card number
CN104011760B (en) * 2012-12-12 2017-08-15 新韩信用卡株式会社 Method for generating disposable code
KR20150141871A (en) * 2014-06-10 2015-12-21 주식회사 엘지씨엔에스 Apparatus and method for processing card information

Also Published As

Publication number Publication date
KR100610529B1 (en) 2006-08-09

Similar Documents

Publication Publication Date Title
CN101553813B (en) Managing storage of individually accessible data units
CN102893265B (en) Management can independent access data cell storage
CN103870492A (en) Data storing method and device based on key sorting
CN1189906A (en) Value transfer system
CN111061752B (en) Data processing method and device and electronic equipment
CN107992492B (en) Data block storage method, data block reading method, data block storage device, data block reading device and block chain
CN101571869A (en) File memory and read method of smart card and device thereof
US6192366B1 (en) Integrated database system and computer-readable recording medium recorded with program for managing database structure thereof
KR100610529B1 (en) Compression saving method and search method of card black-list data
CN103034649B (en) Method and system for realizing data storage and search
KR100389194B1 (en) Method of B/L data compression of card and transmission system thereof
CN102034305A (en) Composite application service processing method and smart card
CN100511183C (en) Method for reducing data redundance in storage medium
CN101217385B (en) A method and system for the temporary storage and treatment of charging bill
CN1236396C (en) Card reader
CN101382961A (en) Method for making update file and updating data
CN110633275B (en) ETC transaction data retention analysis method and device
CN109271463B (en) Method for recovering inodb compressed data of MySQL database
CN113570444A (en) Non-tax payment report processing method and query system based on non-tax payment book
KR20030083431A (en) Apparatus and method for compressing card-number-data lists
CN100571431C (en) The short message storage and the processing method that are used for portable terminal
KR101346778B1 (en) Method for approving card transactions and method for managing card transaction approval informaion
CN116342123A (en) Method and device for reading data of hardware wallet
KR930003058B1 (en) Credit card inquiry apparatus and this data transfer method for memorizing and searching bad credit card number
RU2010118074A (en) MULTIDIMENSIONAL DATABASE AND METHOD OF MANAGING THE MULTIDIMENSIONAL DATABASE

Legal Events

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

Payment date: 20130731

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20140616

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee