Parking stall based on block chain
Technical Field
The invention belongs to the field of block chains, and particularly relates to a parking space based on a block chain.
Background
An existing intelligent parking lot system, for example, a parking lot system described in patent CN102402865A, includes a sensing module disposed on each parking lot, a guiding module for guiding a vehicle to reach a vacant position, and a central processing module for analyzing signals and transmitting instructions, so that a driver can easily find an empty parking lot under the guidance of a guiding board, and does not need to find a vacant position in a round trip in the parking lot, thereby reducing the burden on the driver in driving, and simultaneously making the order of the parking lot not disordered.
Disclosure of Invention
The invention provides an intelligent parking space based on a block chain, which can reasonably select the parking space according to the user experience of a driver so as to realize intelligent parking and ensure the parking efficiency.
The block chain is generated by a group of credible IT equipment and is used for receiving and storing parking space data of the parking space node, leasing party data of the leasing party node and vehicle data of the vehicle node;
the parking space nodes comprise gateway nodes deployed outside the parking spaces and sensing nodes for acquiring parking space data; the gateway node receives data of the sensing node and forwards the data to designated IT equipment, and the IT equipment stores the data in a block chain form;
the sensing node includes: the parking space monitoring system comprises a traffic indicator light and a timer which are arranged on a limit lock of a parking space, a pressure sensor arranged at the edge of the parking space, an acquisition unit and a communication unit;
the acquisition unit is used for calculating the width of the parking space
Wherein l
1、w
1The acquisition unit acquires the length and width of the vehicle under the node of the vehicle
2、w
2The method comprises the steps that an acquisition unit acquires the length and the width of a parking space under a parking space node;
the acquisition unit is further configured to calculate an occupancy rate
Wherein t is the time of red light of the red-green indicating lamp in one day recorded by the timer, and when the pressure value p measured by the pressure sensor is more than p
0When the vehicle is parked on the parking space, the red and green indicating lamp lights the red light, otherwise, the green light is lighted;
the acquiring unit is further used for calculating the security s-n, wherein n is the number n of the cameras within the range of 100m near the parking space acquired by the acquiring unit;
the obtaining unit calculates the popularity beta of the parking space as omega + s according to the occupancy rate omega and the security s;
the parking space node is generated by adding a block chain to a parking space configured with a sensing node, a block head of a block below the parking space node stores a first page table, a block body stores parking records of the parking space, the first page table comprises a parking contract signed and charged according to a user experience index of the parking space, and the user experience index I is beta/alpha, namely the user experience index is inversely proportional to the width alpha of the parking space and is proportional to the popularity beta of the parking space;
the leasing party node adds and generates a block head of a block under the leasing party node for an owner of a parking space configured with a sensing node through a block chain, the block head stores a second page table, the block body stores transaction data of the leasing party, and the second page table contains a leasing contract;
the vehicle node is generated by adding a block chain to a vehicle which has delivered a deposit, a block head of a block below the vehicle node stores a third page table, a block body stores a parking record of the vehicle, and the third page table contains a usage contract;
when a leasing party applies for entering a chain, a block chain sets a corresponding parking contract according to a user experience index of a parking space, stores the parking contract and parking space information into a block head, records transaction data of the parking space into a block body, and broadcasts the block to other nodes of the block chain after the data is written into the block, and the other nodes distribute and record the blocks under the nodes of the leasing party;
when a vehicle parks, a block chain provides parking space information nearby for a vehicle driver, the vehicle driver selects a parking space according to the self requirement, a communication unit of the selected parking space sends a parking request, the block chain carries out qualification examination on a vehicle node, when deposit data in a block under the vehicle node is normal, the block chain sends a private key containing a brake opening instruction to the communication unit of the selected parking space, the communication unit carries out pairing opening on a limit lock of the parking space through an existing public key, when the vehicle leaves the parking space, the parking time in the block of the vehicle node is obtained, the charge is requested according to the charge standard of a parking contract at the head of the corresponding parking space block, the vehicle driver carries out charge payment by sending a special payment private key to the block chain and pairing with the public key on the block chain, and the deposit data is updated in the block under the vehicle node after the charge is deducted, and simultaneously, data broadcasting is carried out on nodes except the vehicle node in the block chain network, and the validity of the payment is ensured through a consensus mechanism of the block chain, so that the parking service transaction is completed.
The invention has the beneficial effects that: based on the intelligent parking stall of block chain, carry out user experience to every parking stall and detect for the driver can be reasonable select the parking stall, has realized intelligent parking, has guaranteed parking efficiency.
Drawings
FIG. 1 illustrates a block chain based intelligent parking space E-R diagram;
fig. 2 shows a schematic view of a parking space block chain structure.
Detailed Description
The structure of the present system and the functions performed are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the vehicle, the parking space, and the rental party each contain a plurality of items of data. The parking space nodes comprise gateway nodes deployed outside the parking spaces and sensing nodes for acquiring parking space data; the gateway node receives data of the sensing node and forwards the data to designated IT equipment, and the IT equipment stores the data in a block chain form;
the sensing node includes: the parking space monitoring system comprises a traffic indicator light and a timer which are arranged on a limit lock of a parking space, a pressure sensor arranged at the edge of the parking space, an acquisition unit and a communication unit;
the acquisition unit is used for calculating the width of the parking space
Wherein l
1、w
1The acquisition unit acquires the length and width of the vehicle under the node of the vehicle
2、w
2The method comprises the steps that an acquisition unit acquires the length and the width of a parking space under a parking space node;
the acquisition unit is further configured to calculate an occupancy rate
Wherein t is the time of red light of the red-green indicating lamp in one day recorded by the timer, and when the pressure value p measured by the pressure sensor is more than p
0When the vehicle is parked on the parking space, the red and green indicating lamp lights the red light, otherwise, the green light is lighted;
the acquiring unit is further used for calculating the security s-n, wherein n is the number n of the cameras within the range of 100m near the parking space acquired by the acquiring unit;
the obtaining unit calculates the popularity beta of the parking space as omega + s according to the occupancy rate omega and the security s;
as shown in fig. 2, the parking space node is generated by adding a block chain to a parking space configured with a sensing node, a block head of a block below the parking space node stores a first page table, a block body stores parking records of the parking space, the first page table contains a parking contract for charging according to a user experience index of the parking space, the user experience index I is β/α, that is, the user experience index is inversely proportional to the width α of the parking space and directly proportional to the popularity β of the parking space;
similarly, the leasing party node adds and generates the owner of the parking space configured with the sensing node through a block chain, a block head of a block under the leasing party node stores a second page table, and a block body stores transaction data of the leasing party, wherein the second page table comprises a leasing contract;
the vehicle node is generated by adding a block chain to a vehicle which has delivered a deposit, a block head of a block below the vehicle node stores a third page table, a block body stores a parking record of the vehicle, and the third page table contains a usage contract;
when a leasing party applies for entering a chain, a block chain sets a corresponding parking contract according to a user experience index of a parking space, stores the parking contract and parking space information into a block head, records transaction data of the parking space into a block body, and broadcasts the block to other nodes of the block chain after the data is written into the block, and the other nodes distribute and record the blocks under the nodes of the leasing party;
when a vehicle parks, a block chain provides parking space information nearby for a vehicle driver, the vehicle driver selects a parking space according to the self requirement, a communication unit of the selected parking space sends a parking request, the block chain carries out qualification examination on a vehicle node, when deposit data in a block under the vehicle node is normal, the block chain sends a private key containing a brake opening instruction to the communication unit of the selected parking space, the communication unit carries out pairing opening on a limit lock of the parking space through an existing public key, when the vehicle leaves the parking space, the parking time in the block of the vehicle node is obtained, the charge is requested according to the charge standard of a parking contract at the head of the corresponding parking space block, the vehicle driver carries out charge payment by sending a special payment private key to the block chain and pairing with the public key on the block chain, and the deposit data is updated in the block under the vehicle node after the charge is deducted, and simultaneously, data broadcasting is carried out on nodes except the vehicle node in the block chain network, and the validity of the payment is ensured through a consensus mechanism of the block chain, so that the parking service transaction is completed.
It will be appreciated by persons skilled in the art that numerous variations and/or modifications may be made to the invention as shown in the specific embodiments without departing from the spirit or scope of the invention as broadly described. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive. Likewise, the invention encompasses any combination of features, in particular of features in the patent claims, even if this feature or this combination of features is not explicitly specified in the patent claims or in the individual embodiments herein.