KR20200059945A - Gasoline information monitoring system using block chain and monitoring method using the same - Google Patents

Gasoline information monitoring system using block chain and monitoring method using the same Download PDF

Info

Publication number
KR20200059945A
KR20200059945A KR1020180145319A KR20180145319A KR20200059945A KR 20200059945 A KR20200059945 A KR 20200059945A KR 1020180145319 A KR1020180145319 A KR 1020180145319A KR 20180145319 A KR20180145319 A KR 20180145319A KR 20200059945 A KR20200059945 A KR 20200059945A
Authority
KR
South Korea
Prior art keywords
information
refueling
blockchain
smart contract
block
Prior art date
Application number
KR1020180145319A
Other languages
Korean (ko)
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 KR1020180145319A priority Critical patent/KR20200059945A/en
Publication of KR20200059945A publication Critical patent/KR20200059945A/en

Links

Images

Classifications

    • G06Q50/40
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/30Transportation; Communications
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B67OPENING, CLOSING OR CLEANING BOTTLES, JARS OR SIMILAR CONTAINERS; LIQUID HANDLING
    • B67DDISPENSING, DELIVERING OR TRANSFERRING LIQUIDS, NOT OTHERWISE PROVIDED FOR
    • B67D7/00Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes
    • B67D7/06Details or accessories
    • B67D7/08Arrangements of devices for controlling, indicating, metering or registering quantity or price of liquid transferred
    • B67D7/14Arrangements of devices for controlling, indicating, metering or registering quantity or price of liquid transferred responsive to input of recorded programmed information, e.g. on punched cards
    • B67D7/145Arrangements of devices for controlling, indicating, metering or registering quantity or price of liquid transferred responsive to input of recorded programmed information, e.g. on punched cards by wireless communication means, e.g. RF, transponders or the like
    • 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/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • G06Q20/145Payments according to the detected use or quantity
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F13/00Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs
    • G07F13/02Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs by volume
    • G07F13/025Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs by volume wherein the volume is determined during delivery
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B67OPENING, CLOSING OR CLEANING BOTTLES, JARS OR SIMILAR CONTAINERS; LIQUID HANDLING
    • B67DDISPENSING, DELIVERING OR TRANSFERRING LIQUIDS, NOT OTHERWISE PROVIDED FOR
    • B67D7/00Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes
    • B67D7/04Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes for transferring fuels, lubricants or mixed fuels and lubricants
    • B67D7/0401Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes for transferring fuels, lubricants or mixed fuels and lubricants arrangements for automatically fuelling vehicles, i.e. without human intervention
    • B67D2007/0444Sensors

Abstract

Disclosed are a refueling information monitoring system using a block chain and a monitoring method using the same. The refueling information monitoring system using a block chain comprises: a communication unit receiving first refueling information with regard to a type and amount of oil leaked from a refueling tank sensed by a plurality of sensors mounted on the refueling tank, and receiving second refueling information on the type and refueling amount of the oil leaked to a consumer from the refueling tank; a block generation unit generating a block with regard to the refueling information at a predetermined time cycle by using the first refueling information and the second refueling information; and a control unit controlling overall operation of the communication unit and the block generation unit.

Description

블록체인을 이용한 주유 정보 감시 시스템 및 이를 이용한 감시 방법{Gasoline information monitoring system using block chain and monitoring method using the same}Gasoline information monitoring system using block chain and monitoring method using the same}

본 발명은 주유 정보 감시 시스템 및 이를 이용한 감시 방법에 관한 것으로서, 보다 상세하게는 블록체인을 이용하여 보안성이 개선된 주유 정보 감시 시스템 및 이를 이용한 감시 방법에 관한 것이다.The present invention relates to a fueling information monitoring system and a monitoring method using the same, and more particularly, to a fueling information monitoring system having improved security using a blockchain and a monitoring method using the same.

주유소에서 주유를 하는 과정 중에 주문량에 비하여 주유량을 속이는 방식, 단가가 낮은 유종을 단가가 높은 유종에 혼합하여 차익을 노리는 방식 등 주유 사기가 빈번하게 발생한다.During the process of refueling at a gas station, gasoline fraud frequently occurs, such as a method of deceiving the gasoline quantity compared to the order quantity, and a method of mixing a low-priced oil type with a high-priced oil type to aim for profit.

기존에도 주유량을 속이거나 유종 혼합을 통한 차익을 노리는 사기 방식을 방지하기 위한 노력이 계속되고 있으나, 기존의 방식은 주유기에 부착된 주유량 카운터를 조작하지 못하게 하는 등의 수동적인 방식에 지나지 않았다.In the past, efforts have been made to prevent the fraudulent method of deceiving gasoline or aiming for profit through mixing oil, but the existing method was only a passive method such as preventing the operation of the fuel flow counter attached to the oiler.

하지만 주유기의 카운터를 조작하지 않고 주유탱크의 유출입량을 조작하여 주유량을 속이거나 유종 혼합을 통한 시세 차익을 노리는 수법에 대해서는 지금까지 개발 기술로는 적발할 수 없었다.However, until now, development techniques have not been able to detect how to manipulate the outflow and outflow of the oil tank without manipulating the counter of the oil tanker to deceive the oil quantity or aim for market profit through mixing oil.

이러한 상황에서 블록체인(Block Chain)이라는 암호화된 블록을 체인으로 연결하고, 이를 분산 노드에 저장하는 거래 계약 방식이 소개되면서 주유 정보 관리에도 이러한 블록체인 기술의 도입의 필요성이 요구되고 있다.In this situation, the introduction of such a block chain technology is also required in the management of gasoline information as the transaction contract method of connecting an encrypted block called a block chain as a chain and storing it in a distributed node is introduced.

특허문헌 1 : 한국등록특허 제10-1385243호(공고일 : 2014년04월08일)Patent Document 1: Korean Registered Patent No. 10-1385243 (Publication date: April 8, 2014) 특허문헌 2 : 한국등록특허 제10-1583751호(공고일 : 2016년01월04일)Patent Literature 2: Korean Registered Patent No. 10-1583751 (Publication date: January 04, 2016) 특허문헌 3 : 한국공개특허 제10-2014-0016205호(공개일 : 2014년02월07일)Patent Literature 3: Korean Patent Publication No. 10-2014-0016205 (Publication Date: February 7, 2014) 특허문헌 4 : 한국등록특허 제10-1778768호(공고일 : 2017년09월08일)Patent Document 4: Korean Registered Patent No. 10-1778768 (Publication date: September 8, 2017)

상술한 필요성에 의해서 안출된 본 발명은 주유기 조작에 의한 유량 속임 여부 및 유종을 속이는 것을 방지할 수 있는 블록체인을 이용한 주유 정보 감시 시스템을 제공하는 것을 목적으로 한다.The present invention, devised by the above-mentioned necessity, aims to provide a fueling information monitoring system using a block chain capable of preventing the fuel flow from being deceived or deceived by oiling operation.

상기 목적을 달성하기 위하여 본 발명의 일 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템은, 주유 탱크에 장착된 복수의 센서에 의해서 센싱된 상기 주유 탱크에서 유출되는 기름의 유종 및 유출량에 대한 제1 주유 정보를 수신하고, 주유기로부터 소비자에게 유출된 기름의 유종 및 주유량에 대한 제2 주유 정보를 수신하는 통신부; 상기 제1 주유 정보와 상기 제2 주유 정보를 이용하여 기 결정된 시간 주기로 주유 정보에 대한 블록을 생성하는 블록 생성부; 및 상기 통신부 및 상기 블록 생성부의 전반적인 동작을 제어하는 제어부;를 포함한다.In order to achieve the above object, the fueling information monitoring system using a block chain according to an embodiment of the present invention, the oil type and the amount of oil discharged from the oiling tank sensed by a plurality of sensors mounted on the oiling tank is provided for A communication unit that receives the first refueling information and receives second refueling information about the oil type and refueling amount of oil spilled from the refueling machine to the consumer; A block generator configured to generate a block for refueling information at a predetermined time period using the first refueling information and the second refueling information; And a control unit controlling overall operations of the communication unit and the block generation unit.

이 경우에, 상기 블록 생성부는, 기 결정된 주기 동안에 수집된 주유 정보에 대해서 스마트 컨트랙트 코드를 생성하고, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하여 상기 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포할 수 있다.In this case, the block generation unit generates a smart contract code for the refueling information collected during a predetermined period, compiles the generated smart contract code, and generates the byte code for the smart contract in the nth blockchain. It can be deployed to multiple nodes connected to the blockchain network by inserting it into the network.

이 경우에, 상기 바이트 코드는, 상기 복수의 노드에서 실행되는 가상 머신 상에서 구동될 수 있는 형태이다.In this case, the byte code is a form that can be run on a virtual machine running on the plurality of nodes.

한편, 상기 블록 생성부는, 주유가 완료된 사용자가 주유 완료 후 발행되는 영수증에 기입된 QR코드를 인식시켜서 해당 주유 거래에 대한 정보를 수신하고, 수신된 주유 거래에 대한 정보에 대해서 스마트 컨트랙트 코드를 생성하고, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하여 상기 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포할 수 있다.On the other hand, the block generating unit recognizes the QR code written on the receipt issued after the refueling is completed by the user who has refueling, receives the information on the refueling transaction, and generates a smart contract code for the information on the received refueling transaction. Then, by compiling the generated smart contract code, the byte code for the smart contract can be inserted into the n-th blockchain and distributed to a plurality of nodes connected to the blockchain network.

본 발명의 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 방법은, 주유 탱크에 장착된 복수의 센서에 의해서 센싱된 상기 주유 탱크에서 유출되는 기름의 유종 및 유출량에 대한 제1 정보를 수신하는 단계; 주유기로부터 소비자에게 유출된 기름의 유종 및 주유량에 대한 제2 정보를 수신하는 단계; 및 상기 제1 정보와 상기 제2 정보를 이용하여 기 결정된 시간 주기로 주유 정보에 대한 블록을 생성하는 단계;를 포함하고, 상기 블록을 생성하는 단계는, 기 결정된 주기 동안에 수집된 주유 정보에 대해서 스마트 컨트랙트 코드를 생성하는 단계와, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하는 단계와, 상기 스마트 컨트랙트에 대한 바이트 코드를 생성하는 단계와, 상기 바이트 코드를 제n번째 블록체인에 삽입하는 단계와, 블록체인 네트워크에 연결된 복수의 노드에 생성된 블록체인을 배포하는 단계를 포함한다. A method for monitoring refueling information using a blockchain according to another embodiment of the present invention includes receiving first information on oil type and amount of oil discharged from the refueling tank sensed by a plurality of sensors mounted on the refueling tank. ; Receiving second information about the oil type and the amount of oil spilled from the oiler to the consumer; And generating a block for refueling information at a predetermined time period using the first information and the second information; and the generating of the block includes smart refueling information collected during a predetermined period. Generating a contract code, compiling the generated smart contract code, generating a byte code for the smart contract, and inserting the byte code into the n-th blockchain, And distributing the created blockchain to a plurality of nodes connected to the blockchain network.

본 발명의 다양한 실시 예에 따르면, 주유기 조작에 의한 유량을 속일 수 없고, 유종을 속이는 것을 방지하고, According to various embodiments of the present invention, it is not possible to deceive the flow rate by the operation of the lubricator, and to prevent deceiving oil species,

사용자가 주유 정보를 블록체인에 의해서 관리함으로써 정보 보안성이 강화되면서도 주유량 데이터에 대한 정보 관리의 편의성이 향상되는 효과를 발휘한다.The user manages the refueling information by the blockchain, while enhancing information security while improving the convenience of information management for refueling data.

도 1은 본 발명의 일 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템의 동작을 설명하기 위한 도면,
도 2는 본 발명의 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 방법을 설명하기 위한 도면,
도 3은 본 발명의 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 방법 중 스마트 컨트랙트를 배포하는 예시를 설명하는 도면,
도 4은 도 3에 도시된 불법적인 주유 거래 상황을 적발하기 위한 주유 검사 알고리즘을 예시적으로 설명하는 플로우챠트, 그리고,
도 5는 본 발명의 또 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템을 이용한 거래 정보를 블록체인으로 생성하는 과정을 설명하는 도면.
1 is a view for explaining the operation of the fueling information monitoring system using a blockchain according to an embodiment of the present invention,
2 is a view for explaining a method for monitoring fueling information using a blockchain according to another embodiment of the present invention;
3 is a view for explaining an example of distributing a smart contract among methods for monitoring fueling information using a blockchain according to another embodiment of the present invention;
FIG. 4 is a flowchart exemplarily illustrating a fueling inspection algorithm for detecting an illegal fueling situation shown in FIG. 3, and
5 is a diagram for explaining a process of generating transaction information using a refueling information monitoring system using a blockchain according to another embodiment of the present invention as a blockchain.

이하, 도면을 참조하여 본 발명의 실시예에 대하여 상세히 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

도 1은 본 발명의 일 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템의 동작을 설명하기 위한 도면이다. 도 1을 참고하면, 주유 정보 감시 시스템(100)은 통신부(110), 블록생성부(130) 및 제어부(150)를 포함한다.1 is a view for explaining the operation of the fueling information monitoring system using a blockchain according to an embodiment of the present invention. Referring to FIG. 1, the fueling information monitoring system 100 includes a communication unit 110, a block generation unit 130, and a control unit 150.

통신부(110)는 주유 탱크(200)에 장착된 복수의 센서에 의해서 센싱된 주유 탱크(200)에서 유출되는 기름의 유종 및 유출량에 대한 제1 주유 정보를 수신한다. 통신부(110)는 주유기(300)로부터 소비자에게 유출된 기름의 유종 및 주유량에 대한 제2 주유 정보를 수신한다.The communication unit 110 receives first oiling information about the oil type and the amount of oil flowing out of the oiling tank 200 sensed by a plurality of sensors mounted on the oiling tank 200. The communication unit 110 receives second oiling information about the oil type and oiling amount of oil spilled to the consumer from the oiling machine 300.

블록생성부(130)는 제1 주유 정보와 제2 주유 정보를 이용하여 기 결정된 시간 주기로 주유 정보에 대한 블록을 생성한다. 여기서 기 결정된 시간 주기는 5분, 10분, 30분, 1시간 등 다양하게 설계될 수 있다.The block generator 130 generates a block for the refueling information at a predetermined time period using the first refueling information and the second refueling information. Here, the predetermined time period may be variously designed such as 5 minutes, 10 minutes, 30 minutes, and 1 hour.

블록생성부(130)는 기 결정된 주기 동안(예컨대 10분 단위)에 수집된 주유 정보에 대해서 스마트 컨트랙트(smart contract) 코드를 생성한다. 블록생성부(130)는 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행한다. 블록생성부(130)는 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포한다. 여기서, 바이트 코드는 복수의 노드에서 실행되는 가상 머신(virtual maching) 상에서 구동될 수 있는 형태로 컴파일된다.The block generating unit 130 generates a smart contract code for refueling information collected during a predetermined period (eg, in 10 minute increments). The block generator 130 compiles the generated smart contract code. The block generator 130 inserts the byte code for the smart contract into the n-th blockchain and distributes it to a plurality of nodes connected to the blockchain network. Here, the byte code is compiled in a form that can be run on a virtual machine (virtual maching) running on a plurality of nodes.

블록생성부(130)는 주유가 완료된 사용자가 주유 완료 후 발행되는 영수증에 기입된 QR코드를 인식시켜서 해당 주유 거래에 대한 정보를 통신부(110)를 통해서 수신한다. 블록생성부(130)는 수신된 주유 거래에 대한 정보에 대해서 스마트 컨트랙트 코드를 생성한다. 블록생성부(130)는 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행한다. 블록생성부(130)는 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포한다.The block generating unit 130 recognizes the QR code written in the receipt issued after the refueling is completed by the user who has refueling, and receives information on the refueling transaction through the communication unit 110. The block generation unit 130 generates a smart contract code for the information on the received gasoline transaction. The block generator 130 compiles the generated smart contract code. The block generator 130 inserts the byte code for the smart contract into the n-th blockchain and distributes it to a plurality of nodes connected to the blockchain network.

본 발명의 일 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템(100)은 작은 크기의 모듈로 구현되어 유류탱크에 부착된다. 주유기에서 측정한 주유량 정보와 탱크에서 빠져나가는 유량 정보를 유선 혹은 무선으로 각 주유소에 설치한 중계 장치를 거쳐 실시간 블록체인 상에 기록하고 감시가 가능한 스마트컨트 랙트를 활용하여 의도적인 유량 조작여부를 실시간 검출할 뿐만 아니라, 관리서버에 데이터를 저장, 통계 처리함으로써 개별 주유기의 주유정보 또는 다수의 주유기를 대상으로 하는 지역단위의 주유정보 등 장기적인 석유 유통정보를 종합한 최종 분석이 가능하게 되는 것이다.The fueling information monitoring system 100 using a blockchain according to an embodiment of the present invention is implemented as a small-sized module and is attached to an oil tank. Real-time intentional operation of flow rate by using smart contracts that can record and monitor the flow rate information measured by the oil tanker and the flow rate information exiting the tank on a real-time blockchain through a relay device installed at each gas station by wire or wireless. In addition to detection, by storing and statistical processing of data on the management server, it is possible to perform a final analysis that synthesizes long-term oil distribution information such as refueling information of individual refueling stations or refueling information of regional units targeting multiple refueling stations.

특히, 기존에 제공된 주유량 감시 장치들은 권한을 가진 사람이 조작한 데이터를 변경하면 조작 여부를 판단할 수 없었지만 한번 기록하면 영원히 데이터가 바뀌지 않는 블록체인의 특성을 활용하여 보다 더 완벽한 신뢰성 있는 데이터를 제공하고자 한다.In particular, the existing fuel flow monitoring devices provided more complete and reliable data by utilizing the characteristics of a blockchain that does not change the data forever if recorded once, although it was impossible to determine whether or not it has been operated by the authorized person. I want to.

도 2는 본 발명의 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 방법을 설명하기 위한 도면이다. 도 2를 참고하면, 주유 탱크(200)는 주유 정보 감시 시스템(100 : 참여 노드)로 주유 탱크의 잔유량 및 유종 정보를 전송한다. 주유기(300)는 주유 정보 감시 시스템(100)으로 주유기에서 유출된 주유량과 유종 정보를 전송한다. 주유 정보 감시 시스템(100)은 일정한 시간 주기 간격으로 트랜잭션을 생성한다. 주유 정보 감시 시스템(100)은 트랜잭션을 생성하는 경우에 스마트 컨트랙트 코드를 생성하고, 생성된 스마트 컨트랙트 코드를 컴파일하여 바이트 코드를 생성한다.2 is a view for explaining a method for monitoring refueling information using a blockchain according to another embodiment of the present invention. Referring to FIG. 2, the refueling tank 200 transmits the remaining amount and oil type information of the refueling tank to the refueling information monitoring system 100 (participating node). The lubricator 300 transmits the lubricating amount and oil type information leaked from the lubricator to the lubricating information monitoring system 100. The fueling information monitoring system 100 generates transactions at regular time period intervals. The refueling information monitoring system 100 generates a smart contract code when generating a transaction, and compiles the generated smart contract code to generate byte code.

스마트 컨트랙트를 배포하는 과정에 대해서는 도 3을 참고하여 설명한다. 브록체인 네트워크에 연결된 복수의 노드는 브라우저를 통해서 HTTP 통신에 기반하여 스마트 계약을 요청하고 이에 응답하는 절차에 따라 각각의 참여 노드에 스마트 컨트랙트를 배포한다.The process of distributing the smart contract will be described with reference to FIG. 3. Multiple nodes connected to the Brockchain network distribute smart contracts to each participating node according to the procedure of requesting and responding to a smart contract based on HTTP communication through a browser.

스마트 컨트랙트 로직 실행에 대해서 설명하면 다음과 같다. 본 발명의 일 실시 예에 따른 블록체인을 이용한 주유 정보 감시 방법은 주유기의 유량센서에서 생성되는 데이터를 블록체인에 등록된 유량에 대한 데이터와 비교하여 조작 여부를 검사하는 단계와 감시결과를 고객에게 표시해주는 소프트웨어 등을 포함하여 구성됨을 특징으로 한다. The execution of smart contract logic is as follows. The method for monitoring refueling information using a blockchain according to an embodiment of the present invention compares the data generated by the flow sensor of the refueling machine with the data for the flow rate registered in the block chain, and checks whether the operation is performed and the monitoring result to the customer. It is characterized in that it is configured to include software that displays.

스마트 컨트랙트 로직 실행 단계는 주유기에서 생성되는 주유량에 대한 정보를 받아오는 단계, 주유탱크에 부착된 유량센서에서 지속적으로 측정한 데이터 값을 받아오는 단계를 포함하고, 두 단계에서 얻은 데이터를 각 주유소에 설치된 블록체인에 데이터를 기록하는 중계 장치에 보내는 단계를 거친다.The step of executing the smart contract logic includes receiving information on the amount of oil generated by the oiler, and continuously receiving data values measured by the flow sensor attached to the oiling tank. It goes through the steps of sending data to the relay device that records the data on the installed blockchain.

이러한 중계 장치는 블록체인에 올릴 데이터를 모아 블록체인에 기록하기 위한 트랜잭션을 생성한다. 중계장치가 만든 트랜잭션 안에 담겨있는 정보는 블록체인위에서 다음의 4가지 세부적인 단계를 거치게 된다. Such a relay device collects data to be uploaded to the blockchain and creates a transaction for recording on the blockchain. The information contained in the transaction created by the relay device goes through the following four detailed steps on the blockchain.

1. 중계장치가 생성한 트랜잭션은 블록체인위에 등록된 검사 시스템에 검증할 유량정보를 넣어 검사함수를 호출한다.1. The transaction generated by the relay device calls the inspection function with the flow rate information to be verified in the inspection system registered on the blockchain.

2. 검사함수는 중계장치에 담긴 유량정보 데이터를 받아 이전 블록에 담긴 유량정보와 비교를 진행한다. 이때, 설정해둔 오차범위와의 차이를 측정하여 조작여부를 판단한다.2. The inspection function receives the flow information data contained in the relay device and compares it with the flow information contained in the previous block. At this time, the difference from the set error range is measured to determine whether to operate.

3. 상기 단계에서 오차범위 이상으로 벗어나가거나, 이하로 벗어나가면 조작 여부가 있었다고 판단하여 실시간으로 감시 서버의 관리화면에 조작여부와 조작된 양을 표시해준다.3. In the above step, if it deviates beyond or exceeds the error range, it determines that there has been an operation, and displays the operation status and the amount of operation on the management screen of the monitoring server in real time.

4. 주유가 끝난 후, 고객의 주유 정보가 담긴 블록의 위변조 여부를 담은 영수증을 고객에게 지급하여 참여에 따른 보상과 고객 및 유류관리가 가능하다.4. After refueling, a receipt containing the forgery or alteration of the block containing the customer's refueling information is paid to the customer, allowing compensation for participation and customer and oil management.

도 4는 도 2에 도시된 불법적인 주유 거래 상황을 적발하기 위한 검사 알고리즘을 예시적으로 설명하는 플로우챠트이다. 도 4를 참고하면, 검사 알고리즘은 주유 탱크와 주유기에서 획득한 데이터를 처리하여 분석 가능한 데이터로 변환한다(S410). 처리된 데이터에 대한 검사 알고리즘을 진행하기에 앞서서 예외 처리 상황인지 여부를 판단한다(S430). 여기서 예외 처리 상황이면(S430-Y), 유량 검사를 수행하지 않고 정상 상태로 판단한다(S470-2).FIG. 4 is a flowchart exemplarily illustrating an inspection algorithm for detecting an illegal refueling transaction situation illustrated in FIG. 2. Referring to FIG. 4, the inspection algorithm processes data obtained from the refueling tank and the refueling machine and converts it into analytical data (S410). Prior to proceeding with the inspection algorithm for the processed data, it is determined whether or not an exception is handled (S430). Here, if it is an exception processing condition (S430-Y), it is determined as a normal state without performing a flow rate check (S470-2).

예외 처리 상황이 아니라면(S430-N), 유량 검사를 실시하여 유량이 오차 범우 이하인지 이상인지 여부를 판단한다(S450). 만약 처리된 데이터가 오차 범위 이하이면(S450-1), 유량 조작 발생을 의심할 상황으로 판단한다(S470-1). 만약 처리된 데이터가 오차 범위 내에 있으면(S450-2), 유량 조작 등이 발생하지 않은 정상 상태로 판단한다(S470-2). 만약 처리된 데이터가 오차 범위 이상이면(S450-3), 불순물을 투입한 경우 또는 저가의 유종을 고가의 유종에 혼유하여 조작한 상황으로 판단한다(S470-3).If it is not an exception processing condition (S430-N), a flow rate test is performed to determine whether the flow rate is less than or equal to the error range (S450). If the processed data is below the error range (S450-1), it is determined as a situation in which a flow rate manipulation is suspected (S470-1). If the processed data is within an error range (S450-2), it is determined as a normal state in which no flow manipulation or the like has occurred (S470-2). If the processed data is more than the error range (S450-3), it is judged as a situation in which impurities are added or a low-cost oil type is mixed with an expensive oil type (S470-3).

본 발명에서 제공하는 블록체인 기반 유류 유통 감시 시스템 및 그 장치는 다음과 같은 효과가 있다.The blockchain-based oil distribution monitoring system and the device provided by the present invention have the following effects.

첫째, 주유기 조작에 의한 주유량 속임 행위를 원천적으로 방지한다. 둘째, 주유기를 통하여 가짜 휘발유 등 무자료 석유의 판매를 방지한다. 셋째, 가짜 세금계산서 등 매출 속임에 의한 막대한 예산 낭비를 방지한다. 넷째, 실시간 주유 정보와 가격정보를 인터넷에 연결함으로서 소비자들이 언제 어디서나 최신 정보를 보고 주유소를 선택할 수 있도록 함으로서 소비자들이 신뢰할 수 있는 휘발유를 싼 가격에 주유할 수 있게 한다. 다섯째, 가짜 휘발유, 무자료 석유, 가짜 계산서 등 허위 매출을 검출할 수 있으며, 이 정보를 국세청 등 관련기관에서 활용하여 소비자 피해뿐만 아니라 가짜 매출에 의한 세금 포탈 및 복지카드 보조금 지출 등 막대한 예산 낭비를 방지할 수 있는 효과가 있다.First, it prevents the cheating act of fueling by manipulation of the fueling machine. Second, it prevents the sale of crude oil, such as fake gasoline, through a fuel machine. Third, it prevents huge budget waste due to sales deception, such as fake tax invoices. Fourth, by connecting real-time refueling information and price information to the Internet, consumers can refuel gasoline at a reasonable price by allowing consumers to view the latest information anytime, anywhere and select gas stations. Fifth, it is possible to detect false sales such as fake gasoline, non-material oil, and fake bills, and this information is used by related organizations such as the National Tax Service to prevent not only consumer damage but also enormous budget waste such as tax portals and welfare card subsidies due to fake sales. There is an effect that can be done.

특히, 기존에 나온 주유량 감시 시스템에서는 데이터를 수정할 수 있는 권한을 가진 사람이 수정할 경우 조작여부를 판단할 수 없었다. 그러나 한번 기록되면 바꿀 수 없는 블록체인의 특성을 활용하여, 소비자가 더욱 더 신뢰할 수 있는 석유를 제공할 수 있다.In particular, in the existing fuel flow monitoring system, it was not possible to judge whether or not manipulation was performed by a person who has the authority to modify data. However, once it is recorded, it is possible to provide more reliable oil to consumers by utilizing the characteristics of the blockchain that cannot be changed.

도 5는 본 발명의 또 다른 실시 예에 따른 블록체인을 이용한 주유 정보 감시 시스템을 이용한 거래 정보를 블록체인으로 생성하는 과정을 설명하는 도면이다. 도 5를 참고하면, 사용자(Guest)가 주유소에서 제1 번 주유기(300-1)를 통해서 주유를 완료한다. 주유가 완료되면 종이 영수증이 발행되거나 전자 영수증이 스마트폰으로 전송될 수 있다. 종이 영수증이 발행된 경우에는 스마트폰을 이용하여 영수증에 인쇄된 식별 표지(예컨대, QR 코드)를 인식하여 주유 거래 정보를 주유 정보 감시 시스템(100)으로 전송한다. 5 is a diagram for explaining a process of generating transaction information using a refueling information monitoring system using a blockchain according to another embodiment of the present invention as a blockchain. Referring to FIG. 5, a user completes refueling through a first refueling machine 300-1 at a gas station. When refueling is complete, a paper receipt can be issued or an electronic receipt can be sent to the smartphone. When a paper receipt is issued, the identification mark (eg, QR code) printed on the receipt is recognized by using a smartphone and the refueling transaction information is transmitted to the refueling information monitoring system 100.

주유 정보 감시 시스템(100)은 수신된 주유 거래 정보와 기 처리된 주유 탱크(200)의 유출량 및 유종 정보 그리고 주유기(300)의 주유량 및 유종 정보를 이용하여 산출한 정산 주유 거래 정보를 생성하고, 영수증을 통해서 획득한 주유 거래 정보를 상호 대비하여 거래 정보의 무결성을 검증한다.The refueling information monitoring system 100 generates the settlement refueling transaction information calculated using the received refueling transaction information, the pre-processed refueling tank type 200, and the refueling oil type and refueling amount and refueling information of the refueling unit 300, The integrity of the transaction information is verified by mutually preparing the refueling transaction information obtained through the receipt.

이렇게 주유 정보 감시 시스템(100)은 무인 주유소와 같이 거래, 결제 등을 소비자가 스스로 수행하는 상황에서도 주유 정보와 거래 정보를 상호 대비하여 주유 정보를 조작하거나 결제 정보를 조작하지 못하도록 블록 체인 기반으로 주유 거래 정보를 생성하여 관리할 수 있다. In this way, the refueling information monitoring system 100 is operated on a blockchain-based refueling basis to prevent manipulation of refueling information or manipulation of payment information by preparing for reciprocal refueling information and transaction information, even in situations where consumers perform transactions, payments, etc. You can create and manage transaction information.

이는, 최근 정유회사들이 구축하려 하는 스마트 주유소에 상기 기술을 활용하면 ‘커넥티드 카’서비스에 적용할 수 있는 일 예이다.This is an example that can be applied to a “connected car” service by utilizing the above technology in a smart gas station that oil refineries are currently trying to build.

한편, 본 발명의 실시 예를 구성하는 모든 구성 요소들이 하나로 결합하거나 결합하여 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시 예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 비일시적 저장매체(non-transitory computer readable media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시 예를 구현할 수 있다.On the other hand, that all components constituting the embodiments of the present invention are described as being combined or operated as one, the present invention is not necessarily limited to these embodiments. That is, if it is within the scope of the present invention, all of the components may be selectively combined and operated. In addition, all of the components may be implemented by one independent hardware, but a part or all of each component is selectively combined to perform a combined function of some or all functions in one or a plurality of hardware. It may be implemented as a computer program having a. The codes and code segments constituting the computer program can be easily deduced by those skilled in the art of the present invention. Such a computer program is stored in a computer-readable non-transitory computer readable media and read and executed by a computer, thereby realizing an embodiment of the present invention.

여기서 비일시적 판독 가능 기록매체란, 레지스터, 캐시(cache), 메모리 등과 같이 짧은 순간 동안 데이터를 저장하는 매체가 아니라, 반영구적으로 데이터를 저장하며, 기기에 의해 판독(reading)이 가능한 매체를 의미한다. 구체적으로, 상술한 프로그램들은 CD, DVD, 하드 디스크, 블루레이 디스크, USB, 메모리 카드, ROM 등과 같은 비일시적 판독가능 기록매체에 저장되어 제공될 수 있다.Here, the non-transitory readable recording medium means a medium that stores data semi-permanently and that can be read by a device, rather than a medium that stores data for a short time, such as registers, caches, and memory. . Specifically, the above-described programs may be stored and provided on a non-transitory readable recording medium such as a CD, DVD, hard disk, Blu-ray disk, USB, memory card, ROM, and the like.

이상에서는 본 발명의 바람직한 실시 예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어서는 안 될 것이다.Although the preferred embodiments of the present invention have been shown and described above, the present invention is not limited to the specific embodiments described above, and it is usually in the technical field to which the present invention pertains without departing from the gist of the present invention as claimed in the claims. It is of course possible to perform various modifications by a person having knowledge of, and these modifications should not be individually understood from the technical idea or prospect of the present invention.

100 : 블록체인을 이용한 주유 정보 감시 시스템
110 : 통신부
130 : 블록 생성부
150 : 제어부
200 : 주유 탱크
300 : 주유기
400 : 감시 서버
100: fueling information monitoring system using blockchain
110: communication unit
130: block generation unit
150: control unit
200: oiling tank
300: Lubricator
400: surveillance server

Claims (5)

블록체인을 이용한 주유 정보 감시 시스템에 있어서,
주유 탱크에 장착된 복수의 센서에 의해서 센싱된 상기 주유 탱크에서 유출되는 기름의 유종 및 유출량에 대한 제1 주유 정보를 수신하고, 주유기로부터 소비자에게 유출된 기름의 유종 및 주유량에 대한 제2 주유 정보를 수신하는 통신부;
상기 제1 주유 정보와 상기 제2 주유 정보를 이용하여 기 결정된 시간 주기로 주유 정보에 대한 블록을 생성하는 블록 생성부; 및
상기 통신부 및 상기 블록 생성부의 전반적인 동작을 제어하는 제어부;를 포함하는 블록체인을 이용한 주유 정보 감시 시스템.
In the fueling information monitoring system using blockchain,
The first refueling information on the oil type and the amount of oil discharged from the refueling tank sensed by a plurality of sensors mounted on the refueling tank is received, and the second refueling information on the oil type and refueling amount from the refueling machine to the consumer Communication unit for receiving;
A block generator configured to generate a block for refueling information at a predetermined time period using the first refueling information and the second refueling information; And
A control system for controlling the overall operation of the communication unit and the block generator; a fueling information monitoring system using a blockchain.
제1 항에 있어서,
상기 블록 생성부는,
기 결정된 주기 동안에 수집된 주유 정보에 대해서 스마트 컨트랙트 코드를 생성하고, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하여 상기 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포하는 것을 특징으로 하는 블록체인을 이용한 주유 정보 감시 시스템.
According to claim 1,
The block generating unit,
A smart contract code is generated for the refueling information collected during a predetermined cycle, and compilation of the generated smart contract code is performed, and the byte code for the smart contract is inserted into the n-th blockchain to connect to a plurality of blockchain networks A system for monitoring fueled information using a blockchain, characterized in that it is distributed to nodes of the system.
제2 항에 있어서,
상기 바이트 코드는, 상기 복수의 노드에서 실행되는 가상 머신 상에서 구동될 수 있는 형태인 것을 특징으로 하는 블록체인을 이용한 주유 정보 감시 시스템.
According to claim 2,
The byte code, the fueling information monitoring system using a blockchain, characterized in that the form that can be run on a virtual machine running on the plurality of nodes.
제1 항에 있어서,
상기 블록 생성부는,
주유가 완료된 사용자가 주유 완료 후 발행되는 영수증에 기입된 QR코드를 인식시켜서 해당 주유 거래에 대한 정보를 수신하고, 수신된 주유 거래에 대한 정보에 대해서 스마트 컨트랙트 코드를 생성하고, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하여 상기 스마트 컨트랙트에 대한 바이트 코드를 제n번째 블록체인에 삽입하여 블록체인 네트워크에 연결된 복수의 노드에 배포하는 것을 특징으로 하는 블록체인을 이용한 주유 정보 감시 시스템.
According to claim 1,
The block generating unit,
After the refueling is completed, the user recognizes the QR code written on the receipt issued after refueling, receives information on the refueling transaction, generates a smart contract code for the information on the refueling transaction, and generates the generated smart contract code A system for monitoring fueled information using a blockchain, characterized in that byte code for the smart contract is inserted into the n-th blockchain and distributed to a plurality of nodes connected to a blockchain network by compiling for.
블록체인을 이용한 주유 정보 감시 방법에 있어서,
주유 탱크에 장착된 복수의 센서에 의해서 센싱된 상기 주유 탱크에서 유출되는 기름의 유종 및 유출량에 대한 제1 정보를 수신하는 단계;
주유기로부터 소비자에게 유출된 기름의 유종 및 주유량에 대한 제2 정보를 수신하는 단계; 및
상기 제1 정보와 상기 제2 정보를 이용하여 기 결정된 시간 주기로 주유 정보에 대한 블록을 생성하는 단계;를 포함하고,
상기 블록을 생성하는 단계는, 기 결정된 주기 동안에 수집된 주유 정보에 대해서 스마트 컨트랙트 코드를 생성하는 단계와, 생성된 스마트 컨트랙트 코드에 대한 컴파일을 수행하는 단계와, 상기 스마트 컨트랙트에 대한 바이트 코드를 생성하는 단계와, 상기 바이트 코드를 제n번째 블록체인에 삽입하는 단계와, 블록체인 네트워크에 연결된 복수의 노드에 생성된 블록체인을 배포하는 단계를 포함하는 것을 특징으로 하는 블록체인을 이용한 주유 정보 감시 방법.


In the method of monitoring refueling information using blockchain,
Receiving first information on oil type and outflow amount of oil discharged from the oil tank sensed by a plurality of sensors mounted on the oil tank;
Receiving second information about the oil type and the amount of oil spilled from the oiler to the consumer; And
And generating a block for refueling information at a predetermined time period using the first information and the second information.
The generating of the block may include generating smart contract code for refueling information collected during a predetermined period, compiling the generated smart contract code, and generating byte codes for the smart contract. Monitoring the fueling information using the blockchain, comprising the steps of: inserting the byte code into the n-th blockchain, and distributing the generated blockchain to a plurality of nodes connected to the blockchain network. Way.


KR1020180145319A 2018-11-22 2018-11-22 Gasoline information monitoring system using block chain and monitoring method using the same KR20200059945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180145319A KR20200059945A (en) 2018-11-22 2018-11-22 Gasoline information monitoring system using block chain and monitoring method using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180145319A KR20200059945A (en) 2018-11-22 2018-11-22 Gasoline information monitoring system using block chain and monitoring method using the same

Publications (1)

Publication Number Publication Date
KR20200059945A true KR20200059945A (en) 2020-05-29

Family

ID=70911800

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180145319A KR20200059945A (en) 2018-11-22 2018-11-22 Gasoline information monitoring system using block chain and monitoring method using the same

Country Status (1)

Country Link
KR (1) KR20200059945A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140016205A (en) 2013-09-16 2014-02-07 조주현 Apparatus for inspecting the fabricated oil flow sensor and the supplied oil quantity indicator in a lubricator
KR101385243B1 (en) 2012-06-01 2014-04-16 이한우 Feul flow monitoring apparatus and system
KR101583751B1 (en) 2014-08-06 2016-01-08 재단법인 한국기계전기전자시험연구원 Monitoring method of pulse signal in lubricator and monitoring apparatus for the same
KR101778768B1 (en) 2017-04-21 2017-09-18 (주)케이사인 METHOD OF CONTROLLING IoT DEVICE AND IoT DEVICE CONTROL SYSTEM FOR PERFORMING THE SAME

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101385243B1 (en) 2012-06-01 2014-04-16 이한우 Feul flow monitoring apparatus and system
KR20140016205A (en) 2013-09-16 2014-02-07 조주현 Apparatus for inspecting the fabricated oil flow sensor and the supplied oil quantity indicator in a lubricator
KR101583751B1 (en) 2014-08-06 2016-01-08 재단법인 한국기계전기전자시험연구원 Monitoring method of pulse signal in lubricator and monitoring apparatus for the same
KR101778768B1 (en) 2017-04-21 2017-09-18 (주)케이사인 METHOD OF CONTROLLING IoT DEVICE AND IoT DEVICE CONTROL SYSTEM FOR PERFORMING THE SAME

Similar Documents

Publication Publication Date Title
CN106778109A (en) A kind of certification authority evaluation method and device based on intelligent contract
CN102325062A (en) Abnormal login detecting method and device
WO2009055040A1 (en) Dynamic, secure software tagging for software asset management with respect to deployment, configuration, and usage
NO329354B1 (en) Commercial Transaction Monitoring System and Procedure
EP3866082A1 (en) Method and apparatus for leasing measurement device based on blockchain
CN104715402A (en) Electronic invoice generation method based on digital signatures
CN111985938A (en) Method, device and equipment for verifying authenticity of cross-border transaction
Shreekumar et al. Fake product detection using blockchain technology
Boccardo et al. Software evaluation of smart meters within a Legal Metrology perspective: A Brazilian case
KR20200059945A (en) Gasoline information monitoring system using block chain and monitoring method using the same
KR100955323B1 (en) Method and system for preventing unlawful distribution of tax-free gasoline
CN103327086A (en) Fuel gas sale transaction method and gas sale client
KR101522760B1 (en) System to issue revenue stamp by using data processing system and method to control issue thereof
CN105224851A (en) Tax inspection method based on USBKEY
CN112636954B (en) Server upgrading method and device
CN109190332A (en) A kind of License Authentication method, system and the relevant device of product
KR102058582B1 (en) Method and apparatus for monitoring the modulation of a lubricator
KR101891996B1 (en) System for monitoring petroleum transactions without authentic documentation
KR101941651B1 (en) Method for preventing illegal receipt of fuel subsidy
CN103229218A (en) Sensor for checking valuable documents
KR101891995B1 (en) System for monitoring petroleum transactions without authentic documentation using measurement apparatus of storage quantity
KR20140094338A (en) System and black box and method for sales management
KR101644009B1 (en) A fuel subsidy verification system or its method
KR102383830B1 (en) Gas station device using smart contract
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service

Legal Events

Date Code Title Description
E601 Decision to refuse application