A kind of parking stall based on block chain
Technical field
The invention belongs to block chain field, in particular to a kind of parking stall based on block chain.
Background technique
Existing Intelligent parking lot system, such as a kind of parking system that patent CN102402865A illustrates, including set
The induction module that is placed on each parking stall, for guiding vehicle to reach the guide module in vacancy and for analyzing signal and reception and registration
The central processing module of instruction allows driver to easily find empty parking stall under the guide of indexing plate, does not need to exist again
Pitch of the laps in parking lot back and forth looks for vacancy, alleviates burden to the driving of driver, while but also the order in parking lot is not random.
Summary of the invention
The present invention provides a kind of intelligent parking spaces based on block chain, can be reasonable according to the user experience of driver
Selection parking stall, to realize intelligent parking, it is ensured that parking efficiency.
The block chain is generated by one group of believable information technoloy equipment, for receiving and storing the parking space number of parking stall node
According to, the lease number formulary evidence of lease side's node and the vehicle data of vehicle node;
The parking stall node includes the gateway node being deployed in outside parking stall and carries out parking space number according to the biography of acquisition
Feel node;Gateway node receives the data of sensing node and forwards it on specified information technoloy equipment, and information technoloy equipment is to the data
It is stored in the form of block chain;
The sensing node includes:Red green indicator light and the timer being mounted on the limiting lock on parking stall, are mounted on and stop
The pressure sensor and acquiring unit and communication unit at parking stall edge;
The acquiring unit is for calculating parking stall width degreeWherein, l1、w1It is that acquiring unit obtains vehicle
The vehicle commander of the vehicle under node and vehicle width, l2、w2It is the length and width on the parking stall that acquiring unit obtains under the node of parking stall
Degree;
The acquiring unit is also used to calculate occupancyWherein, t is red green instruction in one day of timer record
The lamp red light bright time, as the pressure value p > p that pressure sensor measures0When namely parking stall on when vehicle is parked, red green finger
Show that lamp sends out a warning, otherwise gives a green light;
The acquiring unit is also used to computational security s=n, wherein n is near the parking stall that acquiring unit is got
The quantity n of camera within the scope of 100m;
Acquiring unit calculates popularity β=ω+s on parking stall according to the occupancy ω and safety s,;
The parking stall node is that block chain is that the parking stall addition configured with sensing node generates, under the node of parking stall
Block block head store the first page table, block body store the parking stall parking record, first page table includes root
The parking contract of charge, the user experience index I=beta/alpha are signed according to the user experience index on parking stall, i.e. user experience refers to
Number is inversely proportional with parking stall width degree α, directly proportional to the popularity β on parking stall;
Lease side's node is added by the owner that block chain is the parking stall configured with sensing node and is generated, lease
The block head of block under Fang Jiedian stores the second page table, and block body stores the transaction data of lease side, the second page table packet
The contract containing taxi;
The vehicle node is added by the vehicle that block chain is delivered cash pledge and is generated, the area of the block under vehicle node
Build stores third page table, and block body stores the parking record of vehicle, and the third page table includes to use contract;
When lease side applies into chain, block chain sets up corresponding parking contract according to the user experience index on parking stall,
And store parking contract and parking space information to block head, while by the transaction data record on parking stall to block body, it will
After block is written in data, block chain broadcasts other nodes of this block to block chain, other nodes are to lease side's node
Under block carry out distribution record;
When vehicle parking, block chain provides neighbouring parking space information for vehicle driver, and vehicle driver is according to itself
Demand selectes parking stall, and the communication unit for being chosen parking stall issues parking request, and block chain carries out title examination to vehicle node,
When the intracorporal cash pledge data of the block under this vehicle node are normal, block chain contains the communication unit sending on selected parking stall
The private key of instruction is opened a sluice gate, communication unit carries out the limiting lock that parking stall is opened in pairing by existing public key, and vehicle leaves parking
When position, the block intracorporal down time of vehicle node is obtained, according to the charge of the parking contract on corresponding parking stall block head
Standard asks for expense, and vehicle driver is carried out by the public key pairing sent on exclusive payment private key and block chain to block chain
Reimbursement of expense updates cash pledge data after completing expense deduction in the block body under vehicle node, while in block chain network
Node other than this vehicle node carries out data broadcasting, ensure that this time the legal of payment has by the common recognition mechanism of block chain
Effect, to complete this parking service transaction.
The beneficial effects of the invention are as follows:Based on the intelligent parking space of block chain, user experience inspection is carried out to each parking stall
It surveys, allows driver reasonably to select parking stall, realize intelligent parking, ensure that parking efficiency.
Detailed description of the invention
Fig. 1 shows the figure of the intelligent parking space E-R based on block chain;
Fig. 2 shows parking stall block chain structure schematic diagrams.
Specific embodiment
With reference to the accompanying drawings, the function that the structure of this system is described in detail and is realized.
As shown in Figure 1, vehicle, parking stall and lease side respectively contain multinomial data.The parking stall node includes deployment
Gateway node outside parking stall is with progress parking space number according to the sensing node of acquisition;The number of gateway node reception sensing node
According to and forward it on specified information technoloy equipment, information technoloy equipment stores the data in the form of block chain;
The sensing node includes:Red green indicator light and the timer being mounted on the limiting lock on parking stall, are mounted on and stop
The pressure sensor and acquiring unit and communication unit at parking stall edge;
The acquiring unit is for calculating parking stall width degreeWherein, l1、w1It is that acquiring unit obtains vehicle
The vehicle commander of the vehicle under node and vehicle width, l2、w2It is the length and width on the parking stall that acquiring unit obtains under the node of parking stall
Degree;
The acquiring unit is also used to calculate occupancyWherein, t is red green instruction in one day of timer record
The lamp red light bright time, as the pressure value p > p that pressure sensor measures0When namely parking stall on when vehicle is parked, red green finger
Show that lamp sends out a warning, otherwise gives a green light;
The acquiring unit is also used to computational security s=n, wherein n is near the parking stall that acquiring unit is got
The quantity n of camera within the scope of 100m;
Acquiring unit calculates popularity β=ω+s on parking stall according to the occupancy ω and safety s,;
As shown in Fig. 2, it is that the parking stall addition configured with sensing node generates that the parking stall node, which is block chain, stop
The block head of block under the node of parking stall stores the first page table, and block body stores the parking record on the parking stall, the first page
According to the parking contract of the user experience index on parking stall signing charge, the user experience index I=beta/alpha, i.e., table includes
User experience index is inversely proportional with parking stall width degree α, directly proportional to the popularity β on parking stall;
Similar, lease side's node is added by the owner that block chain is the parking stall configured with sensing node and is produced
It is raw, block head the second page table of storage of the block under lease side's node, the transaction data of block body storage lease side, described second
Page table includes to hire out contract;
The vehicle node is added by the vehicle that block chain is delivered cash pledge and is generated, the area of the block under vehicle node
Build stores third page table, and block body stores the parking record of vehicle, and the third page table includes to use contract;
When lease side applies into chain, block chain sets up corresponding parking contract according to the user experience index on parking stall,
And store parking contract and parking space information to block head, while by the transaction data record on parking stall to block body, it will
After block is written in data, block chain broadcasts other nodes of this block to block chain, other nodes are to lease side's node
Under block carry out distribution record;
When vehicle parking, block chain provides neighbouring parking space information for vehicle driver, and vehicle driver is according to itself
Demand selectes parking stall, and the communication unit for being chosen parking stall issues parking request, and block chain carries out title examination to vehicle node,
When the intracorporal cash pledge data of the block under this vehicle node are normal, block chain contains the communication unit sending on selected parking stall
The private key of instruction is opened a sluice gate, communication unit carries out the limiting lock that parking stall is opened in pairing by existing public key, and vehicle leaves parking
When position, the block intracorporal down time of vehicle node is obtained, according to the charge of the parking contract on corresponding parking stall block head
Standard asks for expense, and vehicle driver is carried out by the public key pairing sent on exclusive payment private key and block chain to block chain
Reimbursement of expense updates cash pledge data after completing expense deduction in the block body under vehicle node, while in block chain network
Node other than this vehicle node carries out data broadcasting, ensure that this time the legal of payment has by the common recognition mechanism of block chain
Effect, to complete this parking service transaction.
One skilled in the art would recognize that without departing substantially from the spirit and scope of the invention as generally describing,
Various variations and/or modification can be carried out to invention shown in each specific embodiment.Therefore, in terms of all
For, embodiment here is considered as illustrative and and non-limiting.Equally, the present invention includes any feature
Combination, the combination of any feature especially in Patent right requirement, even if the combination of this feature or feature is not in patent
It is explicitely stated in claim or each embodiment here.