KR20210027907A - Gas station device using smart contract - Google Patents

Gas station device using smart contract Download PDF

Info

Publication number
KR20210027907A
KR20210027907A KR1020190108958A KR20190108958A KR20210027907A KR 20210027907 A KR20210027907 A KR 20210027907A KR 1020190108958 A KR1020190108958 A KR 1020190108958A KR 20190108958 A KR20190108958 A KR 20190108958A KR 20210027907 A KR20210027907 A KR 20210027907A
Authority
KR
South Korea
Prior art keywords
gas station
sensor unit
water level
transaction
station device
Prior art date
Application number
KR1020190108958A
Other languages
Korean (ko)
Other versions
KR102383830B1 (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 KR1020190108958A priority Critical patent/KR102383830B1/en
Publication of KR20210027907A publication Critical patent/KR20210027907A/en
Application granted granted Critical
Publication of KR102383830B1 publication Critical patent/KR102383830B1/en

Links

Images

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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • G06Q50/30
    • 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
    • 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
    • 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
    • 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
    • G06Q2220/00Business processing using cryptography
    • G06Q2220/10Usage protection of distributed data files

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Development Economics (AREA)
  • Mathematical Physics (AREA)
  • Mechanical Engineering (AREA)
  • Operations Research (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Loading And Unloading Of Fuel Tanks Or Ships (AREA)

Abstract

The present invention relates to a gas station device utilizing a smart contract. The gas station device of the present invention includes: a lubricator including an input unit receiving a desired amount of fuel to be injected from a vehicle driver, a payment processing unit processing payment according to the desired amount of alcohol, and a flow rate sensor unit measuring the actual amount of alcohol actually refueled in the vehicle; and an oil tank including a water level sensor unit for measuring the level of contents contained therein and a component measuring sensor unit for measuring the components of the contents contained therein. The transaction processing unit generates a transaction using the desired amount of fuel input by the driver, the actual amount of fuel, the water level, and the component value sensed by the water level sensor unit and the component measurement sensor unit, when the fueling is finished at the gas station. According to the gas station device using the smart contract according to the present invention, when the blockchain is used, the need for oil refiners and Korea Petroleum Management Service to send people to each gas station one by one to check whether illegal activity has occurred is greatly reduced.

Description

스마트 컨트랙트를 활용한 주유소 장치{GAS STATION DEVICE USING SMART CONTRACT}Gas station device using smart contract {GAS STATION DEVICE USING SMART CONTRACT}

본 발명은 스마트 컨트랙트를 활용한 주유소 장치에 관한 것으로서, 보다 구체적으로는 기름탱크 및 주유기에 센서부를 설치하고 센서부에서 측정되는 센서값을 블록체인 네트워크 상에 트랜잭션하여 가짜 석유 판매 및 기름의 정량을 속여서 파는 행위를 방지할 수 있는 스마트 컨트랙트를 활용한 주유소 장치애 관한 것이다.The present invention relates to a gas station device using a smart contract, and more specifically, by installing a sensor unit on an oil tank and a lubricator, and transacting the sensor value measured by the sensor unit on a blockchain network, selling fake oil and quantifying oil. It is about gas station devices using smart contracts that can prevent the act of selling by cheating.

현존하는 기름 판매 검증 프로세스는 정유사에서 주유소로 기름을 판매하는 과정까지는 잘 구축이 되어있다. 그러나 주유소에 기름이 판매가 된 이후 기름을 관리해주는 프로세스는 미흡한 상태이다. 이러한 점을 이용하여 매년 주유소에서는 가짜 석유를 제조하여 판매하는 행위와 기름의 정량을 속여서 파는 불법 행위가 일어나고 있다.The existing oil sales verification process is well established from refiners to gas stations. However, after the oil was sold at gas stations, the process of managing oil is inadequate. Taking advantage of this, every year gas stations manufacture and sell fake petroleum and illegally sell oil by tricking the quantity of oil.

한국공개특허 제10-2015-0067752호 (2015.06.18, 공개)Korean Patent Publication No. 10-2015-0067752 (2015.06.18, published)

본 발명은 상기와 같은 문제점을 해결하고자 하는 것으로서, 주유소에서 일반 소비자에게 판매할 때 정량을 속여서 판매하거나 가짜 기름을 제조하여 판매하는 등의 불법 행위를 방지할 수 있는 주유소 시스템을 제공하는 것을 목적으로 한다. An object of the present invention is to solve the above problems, and to provide a gas station system capable of preventing illegal activities such as selling by cheating quantity when selling to general consumers at gas stations or by manufacturing and selling fake oil. do.

본 발명의 상기 목적은 블록체인 네트워크 상에서 운영되는 주유소 장치로서, 주유기, 기름탱크 및 트랜잭션처리부를 포함하며, 주유기는 차량 운전자로부터 주입할 희망주류량을 입력받는 입력부와, 희망주류량에 따른 결제 비용을 결제 처리하는 결제처리부 및 차량에 실제 주유되는 실주류량을 측정하는 유량센서부를 포함하며, 기름탱크는 속에 든 내용물 수위를 측정하는 수위센서부 및 속에 든 내용품의 성분을 측정하는 성분측정센서부를 포함하며, 트랜잭션처리부는 상기 주유기에서 주유가 종료되는 경우 상기 운전자가 입력한 희망주류량, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하는 것을 특징으로 하는 주유소 장치에 의해서 달성 가능하다.The above object of the present invention is a gas station device operating on a blockchain network, including a lubricator, an oil tank, and a transaction processing unit, the lubricator having an input unit for receiving a desired amount of alcohol to be injected from a vehicle driver, and a payment cost according to the desired amount of alcohol. It includes a payment processing unit that processes the payment and a flow sensor unit that measures the actual amount of liquor supplied to the vehicle, and the oil tank includes a water level sensor unit that measures the level of the contents contained in the oil tank, and a component measurement sensor that measures the components of the contents contained in the oil tank. The transaction processing unit uses the desired amount of liquor input by the driver, the flow sensor unit, the water level sensor unit, and the actual alcohol amount sensed by the component measurement sensor unit, when refueling is terminated at the lubricator. This can be achieved by a gas station device, characterized in that the transaction is generated.

제안하는 주유소 장치에서 주유소 장치를 상기 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 더 구비하고 트랜잭션 생성시 상기 주유소 식별자도 이용하여 트랜잭션을 생성하는 것을 특징으로 한다.The proposed gas station device further includes a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network, and generates a transaction using the gas station identifier when creating a transaction.

제안하는 주유소 장치에서 트랜잭션처리부에는 상기 주유기를 이용하여 주유하지 않는 시간을 카운트하는 시간측정부를 더 구비하고, 상기 카운트값이 미리 정한 제1일정시간을 초과하는 경우에도 희망주류량과, 상기 주유소 식별자와, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 추가적으로 생성하는 것을 특징으로 한다.In the proposed gas station device, the transaction processing unit further includes a time measuring unit for counting the time not to be refueled using the lubricator, and even when the count value exceeds a predetermined first predetermined time, the desired amount of alcohol and the gas station identifier And, it is characterized in that the transaction is additionally generated by using the real liquor amount, water level value, and component value sensed by the flow sensor unit, the water level sensor unit, and the component measurement sensor unit.

본 발명의 또 다른 목적은 블록체인 네트워크 상에서 운영되는 주유소 장치로서, 주유기, 기름탱크 및 트랜잭션처리부를 포함하며, 주유소 장치를 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 포함하며, 주유기는 차량 운전자로부터 주입할 희망주류량을 입력받는 입력부와, 희망주류량에 따른 결제 비용을 결제 처리하는 결제처리부 및 차량에 실제 주유되는 실주류량을 측정하는 유량센서부를 포함하며, 기름탱크는 속에 든 내용물 수위를 측정하는 수위센서부 및 속에 든 내용품의 성분을 측정하는 성분측정센서부를 포함하며, 트랜잭션처리부는 주유기에서 주유가 종료되는 경우 운전자가 입력한 희망주류량, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하거나, 주유기를 이용하여 주유하지 않는 시간이 제1일정시간을 초과할 경우에도 희망주류량과, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하는 것을 특징으로 한다.Another object of the present invention is a gas station device operating on a blockchain network, including a gas tanker, an oil tank, and a transaction processing unit, including a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network, and Includes an input unit that receives a desired amount of liquor to be injected from the vehicle driver, a payment processing unit that processes payment according to the desired amount of liquor, and a flow sensor unit that measures the actual amount of liquor actually supplied to the vehicle. It includes a water level sensor that measures the level of the contents and a component measurement sensor that measures the components of the contents, and the transaction processing unit includes the desired amount of liquor input by the driver, flow sensor unit, and water level sensor when refueling is terminated at the lubricator. The desired amount of liquor and flow rate are generated even when a transaction is generated using the real liquor volume, water level and ingredient values sensed by the sub and ingredient measurement sensor unit, or the time not to refueling using a lubricator exceeds the first preset time. It is characterized in that a transaction is generated using the actual liquor amount, water level value, and component value sensed by the sensor unit, the water level sensor unit, and the component measurement sensor unit.

본 발명에 따른 주유소 장치에서 주유소 장치를 상기 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 더 구비하고 상기 트랜잭션처리부는 트랜잭션 생성시 상기 주유소 식별자도 이용하는 것을 특징으로 한다.The gas station device according to the present invention further includes a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network, and the transaction processing unit also uses the gas station identifier when creating a transaction.

본 발명에서 블록체인 네트망은 허가(permissioned)형이면서 합의 방식은 PoA(Proof of Authority) 방식을 적용하는 것을 특징으로 한다.In the present invention, the blockchain net network is a permissioned type and the consensus method is a PoA (Proof of Authority) method.

현재는 주유소에서 불법적인 행위가 발생했다는 것을 확인하는 검증 프로세서가 없어 주유소에서 가짜 기름을 판매하거나 정량보다 적은 량으로 판매하는 등의 불법적인 행위를 파악하기 어려운 실정이었다. Currently, there is no verification processor to confirm that an illegal activity has occurred at gas stations, so it was difficult to identify illegal activities such as selling fake oil at gas stations or selling in less than the amount of quantity.

본 발명에 따른 스마트 컨트랙트를 활용한 주유소 장치에 의하면 블록체인을 사용할 경우 정유사 및 한국 석유 관리원에서는 일일이 주유소를 하나씩 사람을 보내 불법 행위가 일어났는지 확인할 필요가 크게 줄어들며, 사용자들은 믿고 사용할 수 있는 주유소의 위치를 알 수 있게 된다. 이러한 시스템을 도입할 경우 가짜 석유 및 정량을 속여 파는 행위에 피해를 입는 사람들이 크게 줄어들 것으로 예상된다.According to the gas station device using the smart contract according to the present invention, when using a block chain, the need for oil refiners and the Korean Petroleum Administration to check whether illegal activity has occurred by sending people one by one to gas stations is greatly reduced, and users can trust and use gas stations. You will be able to know the location. The introduction of such a system is expected to significantly reduce the number of people who are victims of cheating and selling fake oil and oil.

본 발명에 따른 스마트 컨트랙트를 활용한 주유소 장치에 의하면 주유소에서 빠져나가고 들어오는 기름의 양을 센서 값으로 측정하여 블록체인에 등록을 하게 되면 해당 데이터는 3자의 개입이 아닌 센서로 바로 측정하여 블록체인 네트워크에 올리기 때문에 데이터에 대한 신뢰를 할 수 있다. 또한 측정된 센서 값을 갖고 정상적인 방식으로 기름이 변동이 있었는지 확인하는 연산을 스마트 컨트랙트에서 진행하기 때문에 검증 결과에 대한 연산을 믿을 수 있다. 이렇게 측정된 결과를 사용자가 볼 수 있는 UI를 제공하여 특정 주유소를 이용하기 전에 해당 주유소에서 불법적인 행위가 발생했었는지 미리 알 수가 있고 이를 통해 주유소를 신뢰하고 사용할 수 있게 된다. 정직하게 기름을 판매하는 주유소 또한 고객들에게 신용을 줄 수 있는 데이터를 제공하게 되기 때문에 불법 행위를 한 주유소와는 차별을 두고 기름을 판매할 수 있게 되었다.According to the gas station device using the smart contract according to the present invention, when the amount of oil exiting and entering the gas station is measured with a sensor value and registered in the blockchain, the data is directly measured with a sensor rather than a third party, and the blockchain network Because it is uploaded to, you can trust the data. In addition, since the smart contract performs an operation that checks whether oil has fluctuated in a normal way with the measured sensor value, the operation on the verification result can be trusted. By providing a UI that allows the user to view the measured results, it is possible to know in advance whether an illegal activity has occurred at the gas station before using a specific gas station, and through this, the gas station can be trusted and used. Since gas stations that sell oil honestly also provide data that can give credit to customers, they are able to sell oil differently from gas stations that have committed illegal activities.

도 1은 본 발명에 따른 일실시예인 주유소 장치를 노드로 구성하는 블록체인 네트워크의 구성도.
도 2는 주유소에 설치되는 주유기, 기름탱크 및 제어부의 설치예를 도시한 도면.
도 3은 본 발명에 따른 노드를 구성하는 주유소 장치의 블록 구성도.
도 4는 본 발명의 주유 장치에서 처리되는 흐름을 표시하는 흐름도.
도 5는 본 발명에 따른 블록체인 네트워크 상에서 수행되는 스마트 컨트랙트의 처리 흐름을 설명하는 흐름도.
1 is a block diagram of a block chain network comprising a gas station device as a node according to an embodiment of the present invention.
2 is a view showing an installation example of a lubricator, an oil tank, and a control unit installed at a gas station.
3 is a block diagram of a gas station device constituting a node according to the present invention.
Figure 4 is a flow chart showing the flow processed in the gasoline device of the present invention.
5 is a flowchart illustrating a processing flow of a smart contract performed on a blockchain network according to the present invention.

본 발명에서 사용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present invention are used only to describe specific embodiments, and are not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In the present specification, terms such as "comprise" or "have" are intended to designate the presence of features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, but one or more other features. It is to be understood that the presence or addition of elements or numbers, steps, actions, components, parts, or combinations thereof does not preclude in advance.

또한, 본 명세서에서, "~ 상에 또는 ~ 상부에" 라 함은 대상 부분의 위 또는 아래에 위치함을 의미하는 것이며, 반드시 중력 방향을 기준으로 상 측에 위치하는 것을 의미하는 것은 아니다. 또한, 영역, 판 등의 부분이 다른 부분 "상에 또는 상부에" 있다고 할 때, 이는 다른 부분 "바로 상에 또는 상부에" 접촉하여 있거나 간격을 두고 있는 경우뿐 아니라 그 중간에 또 다른 부분이 있는 경우도 포함한다.In addition, in the present specification, the term "on or on the top" means to be positioned above or below the target portion, and does not necessarily mean to be positioned on the upper side with respect to the direction of gravity. In addition, when a part of a region, plate, etc. is said to be "on or on" another part, it is not only in contact with or spaced apart from the other part "directly on or on", as well as another part in between. Includes cases where there is.

또한, 본 명세서에서, 일 구성요소가 다른 구성요소와 "연결된다" 거나 "접속된다" 등으로 언급된 때에는, 상기 일 구성요소가 상기 다른 구성요소와 직접 연결되거나 또는 직접 접속될 수도 있지만, 특별히 반대되는 기재가 존재하지 않는 이상, 중간에 또 다른 구성요소를 매개하여 연결되거나 또는 접속될 수도 있다고 이해되어야 할 것이다.In addition, in the present specification, when one component is referred to as "connected" or "connected" to another component, the one component may be directly connected or directly connected to the other component, but specially It should be understood that as long as there is no opposite substrate, it may be connected or may be connected via another component in the middle.

또한, 본 명세서에서, 제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.In addition, in the present specification, terms such as first and second may be used to describe various components, but the components should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another component.

도 1은 본 발명에 따른 일실시예인 주유소 장치를 노드로 구성하는 블록체인 네트워크의 구성도이다. 블록체인 네트워크에는 클라이언트(250)와 노드(200)가 연결되며, 블록체인의 블록을 생성하고 합의를 진행하는 검사기(validator)로 형성된다.1 is a block diagram of a block chain network in which a gas station device according to an embodiment of the present invention is composed of nodes. In the blockchain network, the client 250 and the node 200 are connected, and it is formed as a validator that creates blocks of the blockchain and proceeds with consensus.

클라이언트(250)는 블록체인 네트워크에 접근하여 방문을 원하는 주유소의 운영상태를 쿼리를 통해 체크할 수 있는 컴퓨팅 장치이다. 본 발명에 따른 블록체인 네트워크는 프라이빗(private) 방식을 적용하므로 필요한 장치 사양을 갖춘 주유소를 제외한 컴퓨팅 장치는 클라이언트로 블록체인 네트워크에 연결되어 필요한 주유소 정보를 서치할 수 있게 된다.The client 250 is a computing device that can access the blockchain network and check the operation status of a gas station desired to be visited through a query. Since the blockchain network according to the present invention applies a private method, computing devices other than gas stations with necessary device specifications are connected to the blockchain network as clients to search for necessary gas station information.

노드(200)는 도 1에서 블록체인 네트워크에 연결된 까만 점으로 구성된 컴퓨팅 장치를 표시하는 것으로서, 도 2 및 도 3에 제시된 바와 같은 구성을 갖는 주유소에 구비되는 주유기 장치를 의미한다. 주유소 장치는 컴퓨팅 장치로 구성된다고 표현하였으나, 도 3에 도시된 센서부를 갖는 주유기(240), 기름탱크(220) 및 각 센서부의 데이트를 획득하고 이를 트랜잭션할 수 있는 구성으로 형성하면 된다. 예를 들어, 도 3에 제시된 모든 센서부마다 IoT 기능을 부여하고 간단한 제어 연산부를 구비하여 센서부에서 직접 센싱값을 이용하여 트랜잭션을 생성하고 브로드캐스팅하도록 구현할 수 있다.The node 200 indicates a computing device composed of black dots connected to a block chain network in FIG. 1 and refers to a gasoline device provided in a gas station having the configuration as shown in FIGS. 2 and 3. Although it was expressed that the gas station device is composed of a computing device, it is sufficient to form a configuration capable of acquiring and transacting data of the lubricator 240, the oil tank 220, and each sensor unit having the sensor unit shown in FIG. 3. For example, it is possible to implement an IoT function for every sensor unit shown in FIG. 3 and a simple control operation unit to generate and broadcast a transaction using the sensing value directly from the sensor unit.

본 발명에서 사용하는 블록체인 네트워크는 PoA(Power of Authority)라는 합의 알고리즘을 사용한다. PoA 기반 네트워크에서 신뢰 가능한 일부 노드에 블록을 생성할 권한을 부여하고 생성된 블록이 일치하지 않을 경우 어느 블록을 합당한 블록으로 정하가는 합의의 권한을 부여하며, 이러한 기능을 담당하는 노드를 검사기(validators)라고 한다. PoA 합의 방식ㅇ느 노드 수를 줄여 유효성 검사에 필요한 시간을 줄일 수가 있으며, 블록 생성주기를 짧게하여 빠른 트랜잭션 처리가 가능하지만 블록체인의 핵심 개념인 ‘탈 중앙화’와는 비교적 멀어지는 단점이 있다.The blockchain network used in the present invention uses a consensus algorithm called Power of Authority (PoA). In the PoA-based network, the authority to create blocks is given to some trusted nodes, and if the generated blocks do not match, the authority of consensus is given to determine which block is a reasonable block, and the node responsible for these functions is given as validators. ). PoA consensus method can reduce the time required for validation by reducing the number of nodes, and shorten the block generation cycle to enable fast transaction processing, but has a disadvantage that is relatively far from'decentralization', which is the core concept of the blockchain.

도 2는 주유소에 설치되는 주유기, 기름탱크 및 제어부의 설치예를 도시한 도면이다. 지표면(210) 하부에는 유입관(221)과 유출관(227)를 갖는 기름탱크(220)가 매립된다. 기름탱크(220)에는 수위센서부(223)와 성분측정센서부(229)가 구비된다. 유출관(227)에는 복수 개 주유기(240)가 연력되며, 주유기(240)를 구성하는 주유노즐 말단엔느 유량센서부(225)가 구비되어 차량에 주유되는 실주유량을 측정하게 된다. 주유소 장치(200)에는 연산 및 제어 기능을 수행하는 제어부(250)가 구비되는데 제어부(250)는 후술하는 바와 같이 주유 이벤트가 발생할 때마다 복수 개 센서부를 센싱하고, 센싱된 센서값을 트랜잭션으로 처리하여 블록체인 네트워크 상으로 전송한다.2 is a diagram showing an installation example of a lubricator, an oil tank, and a control unit installed at a gas station. An oil tank 220 having an inlet pipe 221 and an outlet pipe 227 is buried under the ground surface 210. The oil tank 220 is provided with a water level sensor unit 223 and a component measurement sensor unit 229. A plurality of lubricators 240 are connected to the outlet pipe 227, and a flow sensor unit 225 at the end of the lubricating nozzle constituting the lubricator 240 is provided to measure the actual injection flow rate supplied to the vehicle. The gas station device 200 is provided with a control unit 250 that performs calculation and control functions. As described later, the control unit 250 senses a plurality of sensor units whenever a gasoline event occurs, and processes the sensed sensor values as a transaction. And transmit it over the blockchain network.

도 3은 본 발명에 따른 노드를 구성하는 주유소 장치의 블록 구성도이다. 주유소 장치는 기름탱크(220), 주유기(240) 및 트랜잭션처리부(250)로 구성된다. 3 is a block diagram of a gas station device constituting a node according to the present invention. The gas station device is composed of an oil tank 220, a lubricator 240, and a transaction processing unit 250.

기름탱크(220)는 자동차에 주유할 기름을 일시 저장하는 곳으로서, 기름탱크(220)에는 유입관(221), 유출관(227), 수위센서부(223) 및 성분측정센서부(229)가 구비된다. 유입관(221)은 기름 탱크로리로부터 공급되는 기름을 기름탱크로 유입시킬 때 이용하는 관이며, 유출관(227)은 주유기(240)와 연결되어 기름탱크(220) 내부에 채워진 기름을 주유기(240)로 유출시키는 통로로 사용되는 관이다. 기름탱크(220)에는 내부에 채워진 기름 수위를 감지하는 수위센서부(223)와 채워진 기름의 성분을 분석하기 위한 성분측정센서부(229)가 구비된다.The oil tank 220 is a place to temporarily store oil to be lubricated in a vehicle, and the oil tank 220 includes an inlet pipe 221, an outlet pipe 227, a water level sensor unit 223, and a component measurement sensor unit 229. Is equipped. The inlet pipe 221 is a pipe used to introduce the oil supplied from the oil tank lorry into the oil tank, and the outlet pipe 227 is connected to the lubricator 240 to feed the oil filled in the oil tank 220 into the lubricator 240. It is a pipe used as a passage to discharge into. The oil tank 220 is provided with a water level sensor unit 223 for sensing the level of the oil filled therein, and a component measurement sensor unit 229 for analyzing the components of the filled oil.

주유기(240)는 급유를 원하는 운행자의 지시에 따라 자동차에 구비된 기름탱크에 기름을 공급하는 장치로서, 주유기(240)에는 입력부, 표시부, 결제처리부, 주유노즐 및 유량센서부가 구비된다. 입력부는 운행자로부터 유종선택, 주유량 또는 주유금액을 입력받는 모듈이며, 표시부는 운행자에게 선택할 내용 또는 주유 진행 사항 등을 표시하기 위한 모듈이다. 결제처리부는 현금 투입구 또는 신용카드 결제부를 구비하고 운행자가 급유하는 기름값을 결제하는 모듈이다. 주유노즐은 차량의 주유 주입구에 꽂은 상태에서 주유기로부터 공급되는 기름을 차량에 공급하기 위한 노즐로서, 일명 주유건으로도 불린다. 유량센서부(225)는 주유노즐에 장착되어 주유노즐을 통해 차량 기름탱크에 들어가는 주유량을 측정하는 센서부이다. 또한 주유기(240)는 차량에 주유가 종료될 때마다 주유가 종료되었다는 이벤트를 생성하여 이번트생성부로 통지하게 된다.The lubricator 240 is a device for supplying oil to an oil tank provided in a vehicle according to an instruction of a driver who wants to refuel, and the lubricator 240 is provided with an input unit, a display unit, a payment processing unit, an oil nozzle, and a flow sensor unit. The input unit is a module that receives oil type selection, fueling amount, or fueling amount from the operator, and the display unit is a module for displaying contents to be selected or fueling progress to the operator. The payment processing unit is a module that has a cash input port or a credit card payment unit and pays for the oil price that the operator supplies. The oil nozzle is a nozzle for supplying the oil supplied from the lubricator to the vehicle while it is plugged into the oil injection port of the vehicle, and is also called a lubricating gun. The flow sensor unit 225 is a sensor unit that is mounted on the oil nozzle and measures the amount of oil that enters the vehicle oil tank through the oil nozzle. In addition, the lubricator 240 generates an event indicating that the refueling has ended whenever refueling to the vehicle is ended and notifies the event generation unit.

트랜잭션처리부(250)는 시간측정부, 식별자저장부, 이벤트생성부, 센서데이터획득부 및 트랜잭션생성부로 구성된다. The transaction processing unit 250 is composed of a time measurement unit, an identifier storage unit, an event generation unit, a sensor data acquisition unit, and a transaction generation unit.

시간측정부는 주유기를 통해서 주유되지 않는 시간을 카운트하고, 주유되지 않는 시간이 제1일정시간을 초과할 때마다 트랜잭션을 생성하라는 이벤트를 발생하여 이벤트생성부로 출력하는 모듈이다. 식별자저장부는 해당 주유장치가 블록체인 네트워크 상에 연결되는 타 주유장치와 식별하기 위한 식별자를 저장하는 모듈이다. 이벤트생성부는 주유기(240) 또는 시간측정부로부터 이벤트가 발생하는지 여부를 체크하고, 이벤트가 발생될 경우 유량센서부(225), 수위센서부(223) 및 성분측정센서부(229)를 센싱하여 주유노즐을 통해 차량에 실제 주유된 실주유량, 기름탱크에 남아 있는 기름의 수위값 및 기름탱크에 저장된 기름의 성분값을 센서데이터획득부로 입력하고, 트랜잭션생성부에 트랜잭션을 생성하여 블록체인 네트워크로 전송하라는 제어신호를 생성한다. 트랜잭션생성부는 센서데이터획득부에 일시 저장된 실주유량, 수위값 및 성분값과 더불어 주유기의 입력부를 통해 운행자가 입력한 주유하기를 원하는 주유량(금액을 입력할 경우 이를 주유량으로 환산함)인 희망주유량을 이용하여 트랜잭션을 생성하여 블록체인 네트워크 망으로 제공하는 모듈이다.The time measurement unit is a module that counts the time not to be refueled through the lubricator, generates an event to generate a transaction whenever the time not to be refueled exceeds a first predetermined time, and outputs it to the event generator. The identifier storage is a module that stores an identifier for identifying the gasoline device with other gasoline devices connected on the blockchain network. The event generation unit checks whether an event occurs from the lubricator 240 or the time measurement unit, and when an event occurs, it senses the flow sensor unit 225, the water level sensor unit 223, and the component measurement sensor unit 229. The actual fueling amount actually lubricated to the vehicle through the fueling nozzle, the level of oil remaining in the oil tank, and the oil component value stored in the oil tank are entered into the sensor data acquisition section, and a transaction is created in the transaction generation section to create a blockchain network. It generates a control signal to transmit. The transaction generation unit calculates the desired fuel flow, which is the amount of fuel that the operator wants to fuel input through the input part of the lubricator (if the amount is entered, this is converted into the fuel flow amount), along with the actual fuel flow, water level, and component values temporarily stored in the sensor data acquisition part. It is a module that creates a transaction by using it and provides it to the blockchain network.

도 4는 본 발명의 주유 장치에서 처리되는 흐름을 표시하는 흐름도이다. 도 4를 이용하여 노드를 형성하는 주유 장치에서 처리되는 흐름에 대해 설명하기로 한다. 4 is a flowchart showing the flow processed in the gasoline apparatus of the present invention. A flow processed by the gasoline device forming a node will be described with reference to FIG. 4.

차량 운행자가 주유를 했는지 여부를 체크하고(ST110), 주유를 한 경우에는 해당 주유소의 식별자와 함께 주유기를 통해 운행자가 입력한 희망주유량과 유량센서부를 통해 측정된 실주유량 및 기름탱크의 수위센서부 및 성분측정센서부에서 측정된 수위값 및 성분값을 획득한 후(ST120), 이를 이용하여 트랜잭션을 생성하고 블록체인 네트워크 상으로 전송하게 된다(ST170).Checks whether the vehicle operator has refueled (ST110), and in the case of refueling, the desired refueling amount entered by the driver through the lubricator along with the identifier of the gas station, the actual refueling amount measured through the flow sensor unit, and the oil tank level sensor And after acquiring the water level value and the component value measured by the component measurement sensor unit (ST120), a transaction is generated using the obtained value and transmitted to the blockchain network (ST170).

ST110 단계에서 주유가 발생하지 않을 경우 비주유 시간(주유가 하지 않는 지속 시간, 이하 '비주유 기간'이라 함)을 측정하고(ST130), 비주유 기간이 제1일정시간을 넘는지 여부를 체크한다(ST140). ST140 단계에서 제1일정시간을 초과할 경우 주유소 장치의 제어부는 해당 주유소의 희망주유량 및 실주유량을 '0'값으로 설정하면서(ST150) 식별자와 함께 기름탱크의 수위센서부 및 성분측정센서부에서 측정된 수위값 및 성분값을 획득하여(ST160) 트랜잭션을 생성하고 이를 전송하게 된다(ST170). 물론 ST130 및 ST140 단계 중에서 어느 단계에서나 주유하는 이벤트가 발생되면 ST120 단계를 수행하게 된다.If refueling does not occur in the ST110 step, measure the non-fuel time (the duration without refueling, hereinafter referred to as the'non-fuel period') (ST130), and check whether the non-fuel period exceeds the first preset time. Do (ST140). If the first predetermined time is exceeded in step ST140, the control unit of the gas station device sets the desired gas flow rate and actual fuel flow rate to a value of '0' (ST150), and the level sensor part and the component measurement sensor part of the oil tank together with the identifier. The measured water level value and the component value are acquired (ST160), a transaction is generated and transmitted (ST170). Of course, if the fueling event occurs in any of the steps ST130 and ST140, step ST120 is performed.

ST170단계 이후 예외사항이 발생하였는지 여부를 체크한다. 예외사항이란 탱크로리를 통해서 기름탱크에 새로운 기름이 급유되는 경우와 기름탱크를 청소하는 경우를 들 수 있다. It is checked whether an exception occurs after step ST170. Exceptions include the case of lubricating the oil tank with fresh oil through the tank lorry and the case of cleaning the oil tank.

먼저 기름이 급유되는 예외 경우에 대해 설명하기로 한다. 탱크로리로부터 기름탱크에 기름이 유입되면 기름탱크의 기름 수위가 상승하게 된다. 급유가 종료되면 주유소 장치 운영자는 '급유'라는 예외 사항이 발생하였음을 입력한다. 주유소 장치의 제어부는 주유소의 희망주유량 및 실주유량을 '0'값으로 설정하고(ST150), 식별자와 함께 탱크로리로부터 급유한 계약급유량(측정치가 아닌 상거래를 통한 계약상 급유량), 기름탱크의 수위센서부 및 성분측정센서부에서 측정된 수위값 및 성분값을 획득하여(ST160) 예외 상황인 '급유'라는 값과 함께 해당 센서값을 이용하여 트랜잭션을 생성하고 이를 전송하게 된다(ST170).First, an exception case in which oil is supplied will be described. When oil flows into the oil tank from the tank lorry, the oil level in the oil tank rises. When refueling is finished, the operator of the gas station equipment inputs that an exception called'refueling' has occurred. The control unit of the gas station device sets the desired gas flow rate and actual fuel flow rate to a value of '0' (ST150), and the contract refueling amount supplied from the tank lorry along with the identifier (contract refueling amount through commercial transactions, not measured values), and the oil tank. The water level and component values measured by the water level sensor unit and the component measurement sensor unit are acquired (ST160), and a transaction is generated using the corresponding sensor value along with the value of'refueling', which is an exception, and transmitted (ST170).

다음으로 기름탱크를 청소하는 예외 경우에 대해 설명하기로 한다. 기름탱크 청소는 탱크로리에 채워진 기름을 펌프를 이용하여 외부로 빼낸 후 청소를 한 후 다시 빼낸 기름을 채워놓는 작업순으로 진행된다. 청소가 종료되면 주유소 장치 운영자는 '청소'라는 예외 사항이 발생하였음을 입력한다. 주유소 장치의 제어부는 주유소의 희망주유량 및 실주유량을 '0'값으로 설정하면서(ST150) 식별자와 함께 기름탱크의 수위센서부 및 성분측정센서부에서 측정된 수위값 및 성분값을 획득하여(ST160) 예외 상황인 '청소'라는 값과 함께 해당 센서값을 이용하여 트랜잭션을 생성하고 이를 전송하게 된다(ST170).Next, an exception to cleaning the oil tank will be described. Oil tank cleaning is carried out in the order of operation in which the oil filled in the tank lorry is removed to the outside by using a pump, cleaned, and then refilled with the extracted oil. When cleaning is complete, the gas station device operator inputs that an exception called'cleaning' has occurred. The control unit of the gas station device sets the desired gas flow rate and the actual fuel flow rate to a value of '0' (ST150), and acquires the water level and component values measured by the water level sensor part and the component measurement sensor part of the oil tank together with the identifier (ST160). ) A transaction is generated using the sensor value along with the value of'cleaning', which is an exception, and transmitted (ST170).

도 5는 본 발명에 따른 블록체인 네트워크 상에서 수행되는 스마트 컨트랙트의 처리 흐름을 설명하는 흐름도이다. 트랜잭션이 입력되면(ST210), 희망주유값 및 실주유값이 '0'값인지 여부를 체크하고(ST220), ST220 체크 결과가 참인 경우에는 예외 상황인지 여부를 다시 체크한다(ST230). 5 is a flowchart illustrating a processing flow of a smart contract performed on a blockchain network according to the present invention. When a transaction is input (ST210), it is checked whether the desired fueling value and the actual fueling value are '0' (ST220), and if the ST220 check result is true, it is checked again whether or not there is an exception (ST230).

ST230 체크 결과가 참인 경우, 예외 상황 중 '급유'에 해당하는지 여부를 판별하고(ST235), '급유'에 해당할 경우에는 수학식 1에 따라 정상적으로 급유가 되었는지 파악한다.If the ST230 check result is true, it is determined whether it corresponds to'refueling' among the exceptions (ST235), and if it is'refueling', it is determined whether oil has been normally supplied according to Equation (1).

Figure pat00001
Figure pat00001

수위값과 성분값이 오차 범위 내에서 수학식 1을 만족하면 주유소 상태값을 '정상 급유'로 표시하고, 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하면서 급유 예외 상황을 처리하고(ST240). 다음 트랜잭션 입력을 처리한다(ST210). 만약 급유 상황에서 오차 범위 내에서 수학식 1을 만족하지 않을 경우에는 '비정상 급유'으로 표시하고, 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하고(ST240), 다음 트랜잭션 입력을 처리한다(ST210).If the water level value and the component value satisfy Equation 1 within the error range, the gas station status value is displayed as'normal refueling', and the existing water level value and the existing component value are updated using the latest water level value and the latest component value, while refueling exceptions Handle the situation (ST240). The next transaction input is processed (ST210). If Equation 1 is not satisfied within the error range in the refueling situation, it is marked as'abnormal refueling', and the existing water level value and the existing component value are updated using the latest water level value and the latest component value (ST240), and then Process the transaction input (ST210).

ST235 체크 결과가 거짓인 경우에는 '청소'에 해당할 경우에는 수학식 2에 따라 정상적으로 급유가 되었는지 파악한다.If the ST235 check result is false, if it corresponds to'cleaning', it is determined whether oil has been properly oiled according to Equation 2.

Figure pat00002
Figure pat00002

수위값과 성분값이 오차 범위 내에서 수학식 2를 만족하면 주유소 상태값을 '정상 청소'로 표시하고, 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하면서 청소 예외 상황을 처리하고(ST250). 다음 트랜잭션 입력을 처리한다(ST210). 만약 청소 상황에서 오차 범위 내에서 수학식 2를 만족하지 않을 경우에는 '비정상 청소'로 표시하고, 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하고(ST250), 다음 트랜잭션 입력을 처리한다(ST210).If the water level value and the component value satisfy Equation 2 within the error range, the gas station state value is displayed as'normal cleaning', and the existing water level value and the existing component value are updated using the latest water level value and the latest component value while cleaning exceptions. Handle the situation (ST250). The next transaction input is processed (ST210). If Equation 2 is not satisfied within the error range in the cleaning situation, it is displayed as'abnormal cleaning', and the existing water level value and the existing component value are updated using the latest water level value and the latest component value (ST250), and then Process the transaction input (ST210).

ST220 단계 및 ST230 단계 중 어느 하나의 단계라도 만족하지 않으면, 주유소 운행 상황을 수학식 3에 따라 주유소 운영 상황을 연산한다(ST255).If any one of steps ST220 and ST230 is not satisfied, the gas station operating state is calculated according to Equation 3 (ST255).

Figure pat00003
Figure pat00003

ST255 단계 연산 후, 수학식 3에 제시된 세 가지 조건을 모두 오차 범위내에서 만족하는지 여부를 이용하여 '정상운영'인지 여부를 판별한다(ST260). '정상운영'으로 판별될 경우 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하고 주유소 운영상태를 '정상'이라는 트랜잭션을 발생시키고(ST280), 다음 트랜잭션의 입력을 대기한다(ST210).After the operation in step ST255, it is determined whether it is'normal operation' by using whether all three conditions presented in Equation 3 are satisfied within an error range (ST260). If it is determined as'normal operation', the existing water level value and the existing ingredient value are updated using the latest water level value and the latest ingredient value, and a transaction called'normal' is generated for the gas station operation status (ST280), and the input of the next transaction is awaited. Do (ST210).

ST260 단계를 만족하지 않는 경우에는 최신 수위값과 최신 성분값을 이용하여 기존 수위값과 기존 성분값을 업데이트하고 주유소 운영상태를 '비정상'이라는 트랜잭션을 발생시키고(ST280), 다음 트랜잭션의 입력을 대기한다(ST210).If the ST260 step is not satisfied, the existing water level value and the existing component value are updated using the latest water level value and the latest component value, and a transaction called'abnormal' is generated for the operation status of the gas station (ST280), and the input of the next transaction is awaited. Do it (ST210).

비정상 운영은 보다 구체적으로 분석하기로 한다. 수학식 3의 첫번째 조건 '희망 주유량 = 실주유량'과 같지 않을 경우는 일반적으로 '희망 주유량 > 실주유량'보다 적은 경우로서 정량보다 적은 양의 기름을 주유한 것에 해당될 것이다. The abnormal operation will be analyzed in more detail. If the first condition of Equation 3 is not equal to the'desired fuel flow = actual fuel flow', it is generally less than the'desired fuel flow> actual fuel flow', which will correspond to a less amount of oil than the quantity.

수학식 3의 두번째 조건 '최신 수위값 = 기존 수위값 + 실주유량'과 같지 않을 경우는 '최신 수위값 > 기존 수위값 + 실주유량'와 '최신 수위값 < 기존 수위값 + 실주유량'로 나눌 수 있다. '최신 수위값 > 기존 수위값 + 실주유량'인 경우에는 기름탱크에 물 등과 같은 이물질이 들어가서 희석된 상태로 추정할 수 있다. '최신 수위값 < 기존 수위값 + 실주유량'는 주유가 진행되는 동안 별도로 기름이 유출된 것(도둑 맞은 것)으로 추정할 수 있다.If the second condition of Equation 3 is not the same as'Latest water level value = Existing water level + actual running flow rate', divide it into'Latest water level value> Existing water level + actual running flow rate' and'Latest water level value <existing water level + actual running flow rate'. I can. In the case of'Latest Water Level Value> Existing Water Level Value + Actual Flow Rate', foreign substances such as water enter the oil tank and can be estimated to be diluted. The'Latest Water Level Value <Existing Water Level Value + Actual Oil Flow' can be estimated as a separate oil spill (stolen) while refueling was in progress.

수학식 3의 세번째 조건 '최신 성분값 = 기존 수위값'과 같지 않을 경우는 최신 성분값과 기존 성분값의 비교를 통해서 물 등의 이물질이 유입되어 희석되었는지 아니면 성분이 확연이 다른 기름이 유입되었는지 여부를 판별하는데 사용될 수 있는 것이다.If the third condition of Equation 3 is not the same as'latest component value = existing water level', whether foreign substances such as water were introduced and diluted through comparison of the latest component value and the existing component value, or whether oil with a different component was introduced. It can be used to determine whether or not.

지금까지 설명한 바와 같이 다양한 센서부에서 입력되는 센서값은 변경이 될 때마다 또는 주기적으로 트랜잭션을 생성하여 블록체인 네트워크 상에 기록되게 되며, 주유소를 사용하는 사람들(클라이언트)에게 웹페이지 혹은 핸드폰 앱으로 전송을 하거나 쿼리를 통한 조회시 결과를 통보함음로써 사용자들은 해당 기록을 보고 신뢰할 수 있는 주유소를 선택하여 이용할 수 있게 되는 것이다.As explained so far, the sensor values input from various sensor units are recorded on the blockchain network whenever they are changed or by periodically creating a transaction, and to the people (clients) who use gas stations, they are sent to the webpage or mobile phone app. By notifying the result when sending or searching through a query, users can view the record and select and use a reliable gas station.

또한 센서의 고장 등에 의해 발생한 데이터들에 대한 수정을 위해 정유사들과 한국 석유 관리 위원회에서 컨소시엄을 형성하여 블록 체인 네트워크를 운영하는 것으로 한다. 이를 통해 다른 정유사들에 대한 감찰 효과 또한 기대할 수 있다.In addition, it is decided to operate a blockchain network by forming a consortium between refiners and the Korea Petroleum Management Committee to correct data generated by sensor failure. Through this, it is possible to expect an inspection effect on other refiners.

본 발명에서는 주유소 기름 검증 시스템에 사용되는 시스템은 다음과 같다. 먼저 제안하는 시스템에서는 블록체인을 사용한다. 블록체인을 사용하는 까닭은 블록체인의 가장 큰 특징인 데이터에 대한 조작이 어렵다는 점을 활용하기 위함이다. 이러한 특성을 이용해 데이터에 대한 무결성을 보장할 수 있게 된다. 또한 블록체인은 Permissioned 형식을 사용한다. 이러한 이유는 Public 형식의 블록체인을 사용하면 블록체인에 기록된 내용에 대한 수정을 누구나 제안할 수 있지만 지금 제안하는 시스템에서는 데이터 수정 등에 대한 권한을 특정 기관들의 컨소시엄에서 결정을 하기 때문에 Public을 사용하지 않는다. 또한 Public을 사용하게 되면 작업 증명이라는 연산을 거쳐야 하지만 제안하는 시스템은 기업에서 사용하는 시스템이기 때문에 이러한 불필요한 연산을 거칠 필요가 없다. 하여 권한 증명 방식을 사용하여 블록 체인에 블록을 형성하기로 한다.In the present invention, the system used in the gas station oil verification system is as follows. First, the proposed system uses a blockchain. The reason for using a block chain is to take advantage of the fact that it is difficult to manipulate data, which is the biggest feature of the block chain. Using these characteristics, it is possible to guarantee the integrity of the data. Also, the blockchain uses a Permissioned format. For this reason, if you use a public-type block chain, anyone can propose to modify the contents recorded in the block chain, but in the system proposed now, the consortium of certain organizations decides the authority to modify data, so public is not used. Does not. Also, if you use Public, you have to go through an operation called proof-of-work, but since the proposed system is a system used by companies, there is no need to go through these unnecessary operations. Thus, it is decided to form a block on the blockchain using the proof of authority method.

상기에서 본 발명의 바람직한 실시예가 특정 용어들을 사용하여 설명되었지만 그러한 용어는 오로지 본 발명을 명확히 설명하기 위한 것일 뿐이며, 본 발명의 실시예 및 기술된 용어는 다음의 청구범위의 기술적 사상 및 범위로부터 이탈되지 않고서 여러가지 변경 및 변화가 가해질 수 있는 것은 자명한 일이다. 이와 같이 변형된 실시예들은 본 발명의 사상 및 범위로부터 개별적으로 이해되어져서는 안되며, 본 발명의 청구범위 안에 속한다고 해야 할 것이다.Although preferred embodiments of the present invention have been described above using specific terms, such terms are only for clarifying the present invention, and the embodiments and described terms of the present invention depart from the spirit and scope of the following claims. It is obvious that various changes and changes can be made without being able to do so. Such modified embodiments should not be individually understood from the spirit and scope of the present invention, but should be said to fall within the scope of the claims of the present invention.

200: 주유소 장치 210: 지표면
220: 기름탱크 221: 유입관
223: 수위센서부 225: 유량센서부
227: 유출관 229: 성분측정센서부
240: 주유기 250: 제어부
200: gas station device 210: ground surface
220: oil tank 221: inlet pipe
223: water level sensor unit 225: flow sensor unit
227: outlet pipe 229: component measurement sensor unit
240: lubricator 250: control unit

Claims (7)

블록체인 네트워크 상에서 운영되는 주유소 장치로서,
주유기, 기름탱크 및 트랜잭션처리부를 포함하며,
상기 주유기는
차량 운전자로부터 주입할 희망주류량을 입력받는 입력부와,
상기 희망주류량에 따른 결제 비용을 결제 처리하는 결제처리부 및
상기 차량에 실제 주유되는 실주류량을 측정하는 유량센서부
를 포함하며,
상기 기름탱크는
속에 든 내용물 수위를 측정하는 수위센서부 및
속에 든 내용품의 성분을 측정하는 성분측정센서부
를 포함하며,
상기 트랜잭션처리부는 상기 주유기에서 주유가 종료되는 경우 상기 운전자가 입력한 희망주류량, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하는 것을 특징으로 하는 주유소 장치.
As a gas station device operating on a blockchain network,
It includes a lubricator, an oil tank and a transaction processing unit,
The lubricator is
An input unit that receives the desired amount of liquor to be injected from the vehicle driver;
A payment processing unit that processes payment for payment according to the desired amount of alcoholic beverages, and
Flow sensor unit that measures the actual amount of liquor supplied to the vehicle
Including,
The oil tank is
A water level sensor unit that measures the level of the contents inside, and
Ingredient measurement sensor unit that measures the components of the contents inside
Including,
The transaction processing unit performs a transaction using the desired amount of alcohol input by the driver, the flow sensor unit, the water level sensor unit, and the actual alcohol level value and component values sensed by the component measurement sensor unit when refueling is terminated at the lubricator. Gas station device, characterized in that to generate.
제1항에 있어서,
상기 주유소 장치를 상기 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 더 구비하고 트랜잭션 생성시 상기 주유소 식별자도 이용하여 트랜잭션을 생성하는 것을 특징으로 하는 주유소 장치.
The method of claim 1,
And a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network, and generating a transaction using the gas station identifier when generating a transaction.
제1항 또는 제2항에 있어서,
상기 트랜잭션처리부에는 상기 주유기를 이용하여 주유하지 않는 시간을 카운트하는 시간측정부를 더 구비하고, 상기 카운트값이 미리 정한 제1일정시간을 초과하는 경우에도 희망주류량과, 상기 주유소 식별자와, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 추가적으로 생성하는 것을 특징으로 하는 주유소 장치.
The method according to claim 1 or 2,
The transaction processing unit further includes a time measuring unit for counting a time when not refueling using the lubricator, and even when the count value exceeds a predetermined first predetermined time, a desired amount of alcohol, the gas station identifier, and a flow sensor A gas station device, characterized in that it additionally generates a transaction by using the real liquor amount, water level value, and component value sensed by the unit, the water level sensor unit, and the component measurement sensor unit.
블록체인 네트워크 상에서 운영되는 주유소 장치로서,
주유기, 기름탱크 및 트랜잭션처리부를 포함하며,
상기 주유소 장치를 상기 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 포함하며,
상기 주유기는
차량 운전자로부터 주입할 희망주류량을 입력받는 입력부와,
상기 희망주류량에 따른 결제 비용을 결제 처리하는 결제처리부 및
상기 차량에 실제 주유되는 실주류량을 측정하는 유량센서부
를 포함하며,
상기 기름탱크는
속에 든 내용물 수위를 측정하는 수위센서부 및
속에 든 내용품의 성분을 측정하는 성분측정센서부
를 포함하며,
상기 트랜잭션처리부는 상기 주유기에서 주유가 종료되는 경우 상기 운전자가 입력한 희망주류량, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하거나, 상기 주유기를 이용하여 주유하지 않는 시간이 제1일정시간을 초과할 경우에도 희망주류량과, 유량센서부, 수위센서부 및 성분측정센서부에서 센싱된 실주류량, 수위값 및 성분값을 이용하여 트랜잭션을 생성하는 것을 특징으로 하는 주유소 장치.
As a gas station device operating on a blockchain network,
It includes a lubricator, an oil tank and a transaction processing unit,
Includes a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network,
The lubricator is
An input unit that receives the desired amount of liquor to be injected from the vehicle driver;
A payment processing unit that processes payment for payment according to the desired amount of alcoholic beverages, and
Flow sensor unit that measures the actual amount of liquor supplied to the vehicle
Including,
The oil tank is
A water level sensor unit that measures the level of the contents inside, and
Ingredient measurement sensor unit that measures the components of the contents inside
Including,
The transaction processing unit performs a transaction using the desired amount of alcohol input by the driver, the flow sensor unit, the water level sensor unit, and the actual alcohol level value and component values sensed by the component measurement sensor unit when refueling is terminated at the lubricator. Even if the generated or not refueling time using the lubricator exceeds the first predetermined time, the desired amount of liquor, the actual liquor amount, water level, and components sensed by the flow sensor unit, the water level sensor unit, and the component measurement sensor unit Gas station device, characterized in that generating a transaction using the value.
제4항에 있어서,
상기 주유소 장치를 상기 블록체인망에 연결되는 타 주유소 장치와 식별하기 위한 주유소 식별자를 더 구비하고 상기 트랜잭션처리부는 트랜잭션 생성시 상기 주유소 식별자도 이용하는 것을 특징으로 하는 주유소 장치.
The method of claim 4,
And a gas station identifier for identifying the gas station device from other gas station devices connected to the blockchain network, and wherein the transaction processing unit also uses the gas station identifier when generating a transaction.
제3항 또는 제5항에 있어서,
상기 블록체인 네트망은 허가(permissioned)형 블록체인 네트워크인 것을 특징으로 하는 주유소 장치.
The method according to claim 3 or 5,
The gas station apparatus, characterized in that the block chain net network is a permissioned block chain network.
제6항에 있어서,
상기 블록체인 네트망은 PoA(Proof of Authority) 방식의 허가형 블록체인 네트워크인 것을 특징으로 하는 주유소 장치.
The method of claim 6,
The gas station device, characterized in that the block chain net network is a permission type block chain network of PoA (Proof of Authority) method.
KR1020190108958A 2019-09-03 2019-09-03 Gas station device using smart contract KR102383830B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190108958A KR102383830B1 (en) 2019-09-03 2019-09-03 Gas station device using smart contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190108958A KR102383830B1 (en) 2019-09-03 2019-09-03 Gas station device using smart contract

Publications (2)

Publication Number Publication Date
KR20210027907A true KR20210027907A (en) 2021-03-11
KR102383830B1 KR102383830B1 (en) 2022-04-06

Family

ID=75143295

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190108958A KR102383830B1 (en) 2019-09-03 2019-09-03 Gas station device using smart contract

Country Status (1)

Country Link
KR (1) KR102383830B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101225518B1 (en) * 2011-07-18 2013-01-23 주식회사 한국포스밴시스템 Apparatus for controlling self-lubricator and self-lubricator therewith
KR20140072776A (en) * 2012-12-04 2014-06-13 박재덕 Dishonest Receipt Check System of Fuel Subsidies
KR20150067752A (en) 2012-07-19 2015-06-18 조주현 An apparatus for inspecting manipulation of a lubricator and the inspecting method thereof
KR101677098B1 (en) * 2015-06-01 2016-11-29 주식회사 유노비젼 INTERGRATION MANAGEMENT SYSTEM OF OIL STATION USING IoT SMART BASED AND METHOD THEREOF
KR20180093542A (en) * 2017-02-14 2018-08-22 신영세미콘(주) System for preventing illegal receipt of fuel subsidy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101225518B1 (en) * 2011-07-18 2013-01-23 주식회사 한국포스밴시스템 Apparatus for controlling self-lubricator and self-lubricator therewith
KR20150067752A (en) 2012-07-19 2015-06-18 조주현 An apparatus for inspecting manipulation of a lubricator and the inspecting method thereof
KR20140072776A (en) * 2012-12-04 2014-06-13 박재덕 Dishonest Receipt Check System of Fuel Subsidies
KR101677098B1 (en) * 2015-06-01 2016-11-29 주식회사 유노비젼 INTERGRATION MANAGEMENT SYSTEM OF OIL STATION USING IoT SMART BASED AND METHOD THEREOF
KR20180093542A (en) * 2017-02-14 2018-08-22 신영세미콘(주) System for preventing illegal receipt of fuel subsidy

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
이현우, 이더리움 스마트컨트랙트를 활용한 신뢰받는 주유소 시스템 구축, 2018.09.30 1부.* *

Also Published As

Publication number Publication date
KR102383830B1 (en) 2022-04-06

Similar Documents

Publication Publication Date Title
US7552865B2 (en) System and method for deep interaction modeling for fraud detection
US20120252556A1 (en) Gaming Machine Systems and Methods for Accepting Various Currencies
KR101585115B1 (en) Dishonest Receipt Check System of Fuel Subsidies
KR102383830B1 (en) Gas station device using smart contract
KR20120017122A (en) Filling service station management system and method
KR101381786B1 (en) The management and control method for Arcade game operation information and Electronic Game Money using IC card
JP2009157572A (en) Service station system
KR101891995B1 (en) System for monitoring petroleum transactions without authentic documentation using measurement apparatus of storage quantity
JP2007075348A (en) Game medium dispensing system, method and program using debit settlement
KR102058582B1 (en) Method and apparatus for monitoring the modulation of a lubricator
KR102009956B1 (en) A method and apparatus for providing gasoline information
KR101891996B1 (en) System for monitoring petroleum transactions without authentic documentation
KR101644009B1 (en) A fuel subsidy verification system or its method
JP6497970B2 (en) Abnormality detection method and abnormality detection device
US20220122175A1 (en) Exchange Rate Management System and Game System
JP6497971B2 (en) Abnormality detection method and abnormality detection device
KR20200059945A (en) Gasoline information monitoring system using block chain and monitoring method using the same
KR20140118233A (en) Fraud detection method and apparatus for card payment
CN114339270B (en) Control method and system for distributing articles in live broadcast, electronic equipment and storage medium
KR102074782B1 (en) Point auto-earning system using payment approval message and app location information contrast
KR20000032628A (en) Oil supply system having premium lottery function and lottery method of premium
KR101390490B1 (en) Control System for Charging using lottery in the Advertizing of Electronic Communication Means
JP2020028470A (en) Game device and game system
KR20160134953A (en) Method and System for Discerning Benefit Fraud of Fuel Price Subsidies
KR101390491B1 (en) System for Preventing Fraudulent Call in Overture Advertizement

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant