CN110597883B - Vehicle leasing data processing method and device based on blockchain and storage medium - Google Patents

Vehicle leasing data processing method and device based on blockchain and storage medium Download PDF

Info

Publication number
CN110597883B
CN110597883B CN201910888536.4A CN201910888536A CN110597883B CN 110597883 B CN110597883 B CN 110597883B CN 201910888536 A CN201910888536 A CN 201910888536A CN 110597883 B CN110597883 B CN 110597883B
Authority
CN
China
Prior art keywords
lease
vehicle
data
time
rental
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910888536.4A
Other languages
Chinese (zh)
Other versions
CN110597883A (en
Inventor
蔡弋戈
秦青
杨晨
王乐庆
李琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910888536.4A priority Critical patent/CN110597883B/en
Publication of CN110597883A publication Critical patent/CN110597883A/en
Application granted granted Critical
Publication of CN110597883B publication Critical patent/CN110597883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • G07F17/0057Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Fuzzy Systems (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a vehicle leasing data processing method, a device, a computer readable storage medium and computer equipment based on a blockchain, wherein the method comprises the following steps: and receiving a lease message reported by the lease vehicle, writing lease data corresponding to the lease message into a blockchain, searching lease data corresponding to the lease vehicle from the blockchain when detecting that the actual lease time exceeds the prestored lease requesting time, acquiring block time corresponding to the lease data, determining a record lease time according to the block time, and obtaining lease timeout data according to the time difference between the record lease time and the lease requesting time. The scheme provided by the application can store the leasing data by using the blockchain, ensure the accuracy of recording the leasing time based on the blocktime, and obtain the accurate leasing timeout data even if the data recorded in the timing system and the server have faults.

Description

Vehicle leasing data processing method and device based on blockchain and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based vehicle rental data processing method, device, computer readable storage medium, and computer equipment.
Background
With the evolving and evolving social lifestyles, more and more items have begun to rent patterns, such as car rentals, house rentals, etc. Vehicle rental refers to separating the asset usage rights of a vehicle from ownership, a lessor having asset ownership rights, a lessee having asset usage rights, and a lessor contracting with the lessee in exchange for a transaction form of usage rights. The user typically records the vehicle usage time in real time by a local server and timing device as the vehicle is rented. In an actual vehicle renting process, due to some supervisor or objective factors, a user may have a phenomenon of renting overtime when renting the vehicle, that is, the actual use renting time exceeds the requested renting time.
In the conventional scheme, detailed data of the rental timeout is generally obtained based on data records of the timing system and the local server, but due to possible faults of the timing system and the local server or invasion of hackers, deviation of the recorded vehicle use time and the actual use time occurs, and errors of the rental timeout data records occur.
Disclosure of Invention
Based on the foregoing, there is a need to provide a blockchain-based vehicle rental data processing method, device, computer-readable storage medium and computer equipment for improving the accuracy of rental timeout data, aiming at the technical problem that the vehicle rental timeout data is inaccurate.
A blockchain-based vehicle rental data processing method, comprising:
receiving a lease message reported by a lease vehicle;
Writing lease data corresponding to the lease message into a blockchain;
searching lease data corresponding to the lease vehicle from the blockchain when the actual lease duration is detected to exceed the prestored lease duration;
Acquiring block time corresponding to the leasing data, and determining and recording leasing duration according to the block time;
and obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
A blockchain-based vehicle rental data processing device, comprising:
The lease message receiving module is used for receiving lease messages reported by lease vehicles;
the lease message writing module is used for writing lease data corresponding to the lease message into the blockchain;
The lease data searching module is used for searching lease data corresponding to the lease vehicle from the blockchain when detecting that the actual lease time exceeds the prestored lease time;
the lease duration determining module is used for obtaining block time corresponding to the lease data and determining and recording lease duration according to the block time;
and the overtime data obtaining module is used for obtaining lease overtime data according to the time difference between the recorded lease duration and the request lease duration.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving a lease message reported by a lease vehicle;
Writing lease data corresponding to the lease message into a blockchain;
searching lease data corresponding to the lease vehicle from the blockchain when the actual lease duration is detected to exceed the prestored lease duration;
Acquiring block time corresponding to the leasing data, and determining and recording leasing duration according to the block time;
and obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
receiving a lease message reported by a lease vehicle;
Writing lease data corresponding to the lease message into a blockchain;
searching lease data corresponding to the lease vehicle from the blockchain when the actual lease duration is detected to exceed the prestored lease duration;
Acquiring block time corresponding to the leasing data, and determining and recording leasing duration according to the block time;
and obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
According to the vehicle leasing data processing method, the device, the computer readable storage medium and the computer equipment based on the blockchain, when the leasing information reported by the leasing vehicle is received, the server is used as a node in the blockchain network, leasing data in the leasing information is written into the blockchain, so that the evidence of the leasing data is realized, when the actual leasing time exceeds the prestored request leasing time, the leasing data corresponding to the leasing vehicle is obtained from the blockchain, the leasing time is determined according to the corresponding blocktime, the accurate and credible blocktime in the blockchain is utilized, the accuracy of the leasing time is ensured, and even if the timing system and the data recorded in the server are in fault, the accurate leasing timeout data can be obtained.
Drawings
FIG. 1 is an application environment diagram of a blockchain-based vehicle rental data processing method in one embodiment;
FIG. 2 is a flow diagram of a method of processing vehicle rental data based on blockchain in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining a rental start time and a rental end time, in one embodiment;
FIG. 4 is a flow chart illustrating steps for feeding back a timeout indication message according to one embodiment;
FIG. 5 is a flowchart illustrating a step of feeding back a timeout indication message according to another embodiment;
FIG. 6 is an application scenario diagram of a blockchain-based vehicle rental data processing method in one embodiment;
FIG. 7 is a flow chart of a method of processing vehicle rental data based on a blockchain in another embodiment;
FIG. 8 is a block diagram of a vehicle rental data processing device based on a blockchain in one embodiment;
FIG. 9 is a block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is an application environment diagram of a blockchain-based vehicle rental data processing method in one embodiment. The vehicle leasing data processing method based on the blockchain is applied to a vehicle leasing system. The vehicle rental system includes a rental vehicle 110 and a vehicle rental data blockchain network 120 including a plurality of nodes 122. Node 122 receives the lease message reported by lease vehicle 110, and node 122 writes lease data corresponding to the lease message into the blockchain; when the node 122 detects that the actual lease time exceeds the prestored lease time, lease data corresponding to the lease vehicle is searched from the blockchain; and obtaining block time corresponding to the leasing data, determining a recorded leasing duration according to the block time, and finally obtaining leasing timeout data according to the time difference between the recorded leasing duration and the requested leasing duration. And feeding back the lease timeout data to a data display device of the leased vehicle or a user terminal corresponding to a user leasing the vehicle. In an embodiment, the node 122 may be a server directly used for managing the rental vehicle, or may be a server connected to a management platform for managing the rental vehicle through a network.
In one embodiment, the vehicle rental system further comprises a user terminal 130, the terminal 130 being connected to the node 122 via a network. When a user needs to rent the vehicle, the vehicle renting request is sent to the node through the user terminal, the node receives the vehicle renting request sent by the user terminal, determines the renting vehicle corresponding to the vehicle renting request, and feeds back unlocking verification information of the renting vehicle to the user terminal, so that the user can open a door of the renting vehicle through the unlocking verification information. In an embodiment, the terminal 130 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. Node 122 may be implemented as a stand-alone server or as a cluster of servers.
In another embodiment, the vehicle rental system further comprises a management platform, the user terminal is connected with the management platform through a network, and the management platform is connected with the rental vehicle through the network. The management platform is used for realizing daily data management of the leasing vehicle, uploading leasing data to be stored to the nodes in the form of leasing information, and storing the leasing data nodes into the blockchain network.
The nodes of the same blockchain network can realize data sharing, the node 122 can receive the lease message reported by the lease vehicle or the lease message reported by the management platform when working normally, take the received lease message as input information, and maintain the shared data in the blockchain network based on the input information. For information interworking within a blockchain network, there may be an information connection between each node in the blockchain network, through which information may be transferred between the nodes. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain network are consistent. For each blockchain node in the blockchain, there is a node identification corresponding thereto, and each blockchain node in the blockchain may store the node identifications of other nodes in the blockchain for subsequent broadcasting of the generated block to other nodes in the blockchain based on the node identifications of the other nodes. Each blockchain node can maintain a node identification list, and the node names and the node identifications are correspondingly stored in the node identification list. The node identification may be an IP (Internet Protocol, protocol interconnecting between networks) address, as well as any other information that can be used to identify the blockchain node. Each node in the same blockchain network stores the same blockchain, and the blockchain network is essentially a decentralised database, and is a series of data blocks which are generated by correlation by using a cryptography method, and each data block contains information of a batch of network transactions and is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The block chain consists of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a father block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
As shown in FIG. 2, in one embodiment, a blockchain-based vehicle rental data processing method is provided. The embodiment is mainly exemplified by the application of the method to the node, i.e. the server, in fig. 1. The vehicle rental data processing method based on the blockchain specifically includes the following steps S202 to S210.
S202, the server receives the lease message reported by the lease vehicle.
Vehicle rental refers to a form of rights transfer in which the asset usage rights of a vehicle are separated from ownership, a lessor has asset ownership rights, a lessee owns asset usage rights, and a lessor makes a lease contract with the lessee in exchange for usage rights. The server is a node in the vehicle leasing data blockchain network, and can directly receive leasing information reported by the leasing vehicle or receive the leasing information sent by the leasing vehicle through the management platform. The leasing message refers to that the leasing vehicle collects vehicle information through the vehicle-mounted internet of things device, and the leasing message can comprise any one or more leasing data of a vehicle identifier, a user boarding record, a boarding time, a user alighting record, an alighting time and positioning data.
S204, the server writes the leasing data corresponding to the leasing information into the blockchain.
The rental data corresponding to the rental message may be specific data information carried in the rental message, such as a vehicle identifier and a user boarding record. As another example, a vehicle identification and a time of boarding the user while boarding the vehicle. As another example, vehicle identification and current vehicle positioning data. But also data information related to the rental message, such as a rental lot number, etc. In an embodiment, the rental data includes a rental number of the user, and various data corresponding to the rental number, such as a user identification, a rental start time, a rental end time, and the like. The server is used as a node in the vehicle leasing data blockchain network, the same blockchain as other nodes is stored in the server, the blockchain is composed of a plurality of blocks, and the node can write leasing data corresponding to leasing information into the block main body of the blockchain to realize leasing information uplink. When the leasing data is written into the blockchain by calling the write chain interface, the block header of the block where the leasing data is located contains the time when the block is out, namely the block time of the block. And after the rental data is written successfully, a returned block hash is obtained, and the block time of the block can be inquired and obtained according to the block hash.
In one embodiment, the process of writing a lease message to a blockchain includes: checking the input information by taking the leasing information as the input data of the blockchain, storing the input information into a memory pool after the checking is completed, and updating a hash tree used for recording the input information; then, updating the update time stamp to the time of receiving the input information, trying different random numbers, and calculating the characteristic value for a plurality of times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
Wherein SHA256 is a eigenvalue algorithm used to calculate eigenvalues; version (version number) is version information of the related block protocol in the block chain; the prev_hash is the block header characteristic value of the parent block of the current block; merkle _root is a characteristic value of input information; ntime is the update time of the update timestamp; the nbits is the current difficulty, is a fixed value in a period of time, and is determined again after exceeding a fixed period of time; x is a random number; TARGET is a eigenvalue threshold that can be determined from nbits. When the random number meeting the above formula is calculated, the input data can be correspondingly stored to generate a block head and a block main body, and the current block is obtained. And then, the node where the blockchain is located sends the newly generated blocks to other nodes in the blockchain network where the newly generated blocks are located according to the node identifications of other nodes in the blockchain network, the other nodes verify the newly generated blocks, and after the verification is completed, the newly generated blocks are added into the blockchain stored in the newly generated blocks, so that the writing of input data is completed.
In one embodiment, as shown in fig. 3, the blockchain-based vehicle rental data processing method further includes step S302.
S302, a vehicle leasing request sent by a user terminal is received, a leasing vehicle is determined, and unlocking verification information of the leasing vehicle is fed back to the user terminal.
The receiving of the rental message reported by the rental vehicle includes steps S304 to S306.
S304, receiving a first lease message reported by the lease vehicle when the pass of the vehicle unlocking verification information is verified, and a second lease message reported by the lease vehicle when the user is detected to get off and the preset vehicle returning condition is met.
S306, recording the lease start time carried by the first lease message and the lease end time carried by the second lease message.
Before allowing the user to rent the vehicle, the server needs to acquire a vehicle renting request of the user so as to determine the rented vehicle according to the vehicle renting request. Specifically, the renting vehicle may be a vehicle that is designated by a user to be rented, the user inputs a vehicle identifier through a user terminal, and then sends a vehicle renting request carrying the vehicle identifier of the vehicle to a server, or the user terminal sends the vehicle renting request to the server, and the server selects a vehicle that is not rented as a renting vehicle of the user nearby according to the vehicle distribution data, and feeds back a request result carrying the vehicle identifier of the selected vehicle to the user terminal. The vehicle identification may specifically refer to a license plate number of a vehicle, a two-dimensional code set on the vehicle, or a vehicle number, etc., where the vehicle identification of each vehicle is unique. And when receiving the vehicle renting request, the server feeds back unlocking verification information of the rented vehicle to the user terminal, so that the terminal opens the door of the rented vehicle based on the unlocking verification information. In an embodiment, when the server receives a vehicle rental request or receives a user boarding record fed back by the rental vehicle, a rental list number is generated according to user identity information carried in the vehicle rental request, where the user identity information may be a registered account number of the user. The vehicle-mounted internet of things equipment in the leasing vehicle can verify whether the unlocking user is a leasing user in the leasing list number according to the unlocking verification information. When the unlocking user is a leasing user, the vehicle-mounted internet of things device controls the opening of the vehicle door, and when the unlocking user is not the leasing user, the vehicle door is not opened. When the vehicle-mounted internet of things device verifies that the vehicle unlocking verification information passes, the vehicle-mounted internet of things device reports a first lease message to the server, and when the fact that a user gets off the vehicle and a preset vehicle returning condition is met is detected, the vehicle-mounted internet of things device reports a second lease message to the server. The preset vehicle returning condition may refer to that the rental vehicle reaches a specified parking place, and the like, and may be specifically set according to an actual requirement of the rental service, which is not limited herein. When receiving a first lease message corresponding to the user starting to drive, namely, the user getting on, the server records the lease start time carried by the first lease message, and when receiving a second lease message corresponding to the user getting off, namely, the user getting off, the server records the lease end time carried by the second lease message.
In one embodiment, as shown in fig. 4, after receiving the first lease message reported by the lease vehicle when verifying that the vehicle unlocking verification information passes, steps S402 to S406 are further included.
S402, extracting a request lease duration corresponding to a vehicle lease request, and determining lease start time corresponding to a first lease message.
S404, the lease duration is updated in real time by taking the lease start time as a time starting point.
S406, feeding back a timeout prompt message when the real-time updated lease time exceeds the request lease time.
In the leasing service, the server needs to acquire a certain amount of resources from the user's resource account according to the leasing time of the user as exchange. When a user sends a vehicle lease request to a server through a user terminal, the server needs to determine the lease duration of the request. In one embodiment, the server determines the longest lease time corresponding to the available resource amount in the resource account according to the resource account information of the user, and determines that the requested lease time is valid data when the lease time requested by the user is less than the longest lease time, or is invalid data. In another embodiment, the server determines, according to the lease duration requested by the user, a required resource amount corresponding to the lease duration, and determines that the requested lease duration is valid data when the required resource amount is smaller than the available resource amount, or is invalid data. When the requested lease duration in the lease request is invalid data, the server feeds back and updates lease duration prompt information to the user terminal. When the requested lease duration in the lease request is effective data, writing the requested lease duration into the data corresponding to the lease list number. The server may extract the requested rental period from the data corresponding to the rental bill number. The rental start time corresponding to the first rental message may be time information of the vehicle-mounted internet of things device, and the server obtains the rental start time by acquiring time data carried in the rental message. The time data of the server itself may be acquired as the rental start time when the server receives the first rental message, or the time of the server itself may be acquired as the rental start time when the server receives the first rental message. Starting timing by taking the lease starting time as a time starting point, updating the lease time in real time, and feeding back a timeout prompt message when the lease time updated in real time exceeds the lease time request. The overtime prompt message can be independently fed back to the user terminal, can be independently fed back to the message prompt device of the leasing vehicle, and can be simultaneously fed back to the user terminal and the message prompt device of the leasing vehicle. In an embodiment, the server determines whether the rental vehicle is in operation or not through the collected information reported by the vehicle-mounted internet of things device, so as to determine whether the user is in the vehicle, where the collected information may be data collected by a sound collection device or a camera collection device in the rental vehicle, or vehicle operation data collected by a vehicle ECU, for example, the vehicle is running or the vehicle is stationary. When the user is in the car, the server feeds back the overtime prompt message to the message prompt device of the leased car, and when the user is not in the car, the server feeds back the overtime prompt message to the user terminal.
In one embodiment, after feeding back the timeout hint message when the real-time updated lease duration exceeds the request lease duration, the method further comprises:
And sending a lease status detection message to the lease vehicle. And receiving a lease state detection result fed back by the lease vehicle according to the preset frequency data. And when any one of the rental state detection results is that the vehicle is not returned, writing the rental state detection results into the blockchain.
The preset frequency data refers to a detection frequency set by the server, and the frequency data can be specifically adjusted according to actual service requirements. For example, if the resource allocation rule is set according to the resource allocation rule, and if the resource allocation rule is set to allocate by an hour and the resource allocation rule is calculated by an hour less than an hour, the corresponding frequency data may be 1 hour. The server sends a lease state detection message to the lease vehicle according to the preset frequency data, or the server sends the lease state detection message carrying the preset frequency data to the lease vehicle, so that the lease vehicle feeds back the lease state detection result to the server according to the preset frequency. And when any one of the rental state detection results is detected to be that the vehicle is not returned, writing the rental state detection result into the blockchain. The writing process of the rental status detection result is the same as the process of the rental data.
In one embodiment, as shown in fig. 5, after receiving the rental message reported by the rental vehicle, steps S502 to S5006 are further included.
S502, determining the actual lease duration according to the lease start time and the lease end time corresponding to the lease message.
S504, extracting the request lease duration carried by the vehicle lease request.
S506, feeding back a timeout prompt message when detecting that the actual lease time exceeds the prestored lease time.
After the rental user returns the rental car, the server may get the rental start time and the rental end time. The rental start time and the rental end time may be the time carried in the rental message reported by the rental vehicle, or may be the time of the server itself in the blockchain. And obtaining the actual lease duration by calculating the time difference between the lease start time and the lease end time. And feeding back a timeout prompt message when the actual lease time is detected to exceed the prestored lease time. Specifically, the timeout indication message may be fed back to the user terminal described in the rental lot correspondence data.
S206, searching lease data corresponding to the lease vehicle from the blockchain when detecting that the actual lease duration exceeds the prestored lease duration.
When the actual lease duration exceeds the prestored lease duration, the situation that the available resource amount of the lease user is insufficient may exist, at this time, resources corresponding to the lease timeout part need to be allocated to the user resource account, in order to ensure the accuracy of data, lease data of the lease user are stored on the blockchain, the searched lease data refer to lease information reported by the lease vehicle used by the lease user by the server in the lease process of the lease user, and the lease data are written into the blockchain. Because of the non-tamper-resistance of the data in the blockchain, it can be ensured that rental data of the rental user is authentic. In an embodiment, the rental data includes a rental number of the user, and various data corresponding to the rental number, such as a user identification, a rental start time, a rental end time, and the like. In an embodiment, the searching for rental data corresponding to the rental vehicle from the blockchain may be searching for a target block storing the vehicle identifier from the blockchain according to the vehicle identifier of the rental vehicle, and acquiring the written rental data in the target block. The block header of the block where the rental data is located includes a block time.
S208, obtaining the block time corresponding to the leasing data, and determining the record leasing duration according to the block time.
And respectively extracting the block time in the block head of each block according to the block where the lease start information and the lease end information in the lease data, and obtaining the recorded lease duration according to the time difference of the two block times. Recording the lease duration refers to determining the lease duration according to the block time stored in the block chain, and compared with the actual lease duration recorded by the server, the lease duration is higher in reliability. On the one hand, the data in the blockchain is not tamper-resistant and is not easy to be attacked by malicious attacks, and on the other hand, the blocks where the data stored in the blockchain are located have block time, and for the rental start time and the rental end time, the reliability of recording the rental duration can be further ensured through comparison with time data.
S210, obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
And the server obtains the lease timeout data by calculating the time difference between the record lease time and the request lease time. In an embodiment, the server may also send rental timeout data to the user terminal to alert the user to a specific timeout condition. In one embodiment, a billing smart contract is further deployed in the blockchain, the server invokes the billing smart contract in the blockchain, and when the server generates lease timeout data, the server triggers a resource allocation logic in the billing smart contract to allocate resources corresponding to the lease timeout data from the user resource account to an account designated by the server.
In one embodiment, the vehicle rental data processing method further includes:
And receiving a data verification request, and acquiring the requested leasing data from the blockchain according to verification information in the data verification request.
And verifying the obtained lease data and lease data carried by the data verification request according to the data content and the recording time respectively, and feeding back a verification result to a sending end of the data verification request.
When the user has objection to the leasing data, a data verification request can be sent to an associated platform or a server of the leasing vehicle, and when the server receives the data verification request of the user, verification information of the data verification request is extracted, wherein the verification information can comprise a leasing vehicle identifier, a leasing bill number or a user identity identifier and the like. In an embodiment, the verification information has a corresponding relation with information stored in the blockchain, and lease data corresponding to the verification information can be found from the blockchain according to the verification information. For example, according to the rental number, the rental data corresponding to the rental number is found from the blockchain. At least one item of verification information needs to be selected on a page corresponding to the data verification request of the user terminal, so that the leasing data can be conveniently searched. In the embodiment, while the rental data corresponding to the rental message is written into the blockchain, the rental message is fed back to the user terminal, but when network failure or malicious tampering of the data exists, the data sent to the user terminal may deviate from the actual situation, and the user finds that the deviation exists based on the data of the deviation and the resources transferred according to the recorded rental time, so that the user wants to verify the rental data. The lease data carried by the data verification request refers to lease data recorded by the user terminal, which can be lease data which is issued by the server and is the same as lease information, or lease data obtained by the user terminal based on a time recording device of the terminal. The server respectively verifies the lease data obtained from the blockchain and the lease data carried by the data verification request according to the data content and the recording time, wherein the data content can be various data corresponding to the lease single number, the recording time can be lease start time, lease end time and the like, and the verification result is fed back to a sending end of the data verification request, and the sending end of the data verification request can be a user terminal.
In one embodiment, after receiving the rental message reported by the rental vehicle, the method further includes: and extracting the positioning data of the leased vehicle from the leasing message, and writing the positioning data into the blockchain.
The renting vehicle can detect the beginning or ending of renting through the vehicle-mounted internet of things equipment, report the renting information carrying the information of the beginning or ending of renting to the server, and also can report the renting information carrying the vehicle positioning data to the server in real time or at fixed time, the server extracts the positioning data of the renting vehicle from the renting information reported in real time or at fixed time, and the positioning data is written into the blockchain. In the application process, track information formed by the positioning data of the rental vehicles can be checked on the rental system by acquiring the positioning data of the rental vehicles in real time or periodically, and the mileage can be calculated according to the track data. In addition, when the contracted returning time is reached but the user does not return, the corresponding leasing vehicle can be searched according to the positioning data of the leasing vehicle. In an embodiment, when the mileage is greater than the preset mileage during the vehicle renting process, the user may additionally obtain a corresponding resource amount according to the renting requirement, and the mileage on the vehicle may be modified. The vehicle positioning data are acquired, then uploaded to the blockchain, track information formed by the vehicle positioning data is checked according to the positioning data, the mileage is calculated according to the track information, and the verification is carried out on the blockchain, so that the true reliability of the data is ensured.
In one embodiment, when the rental car is overtime and the user does not return the rental car, the server determines the current position information of the rental car according to the positioning data in the rental message reported by the rental car or the positioning data written in the blockchain, so that the management personnel of the rental car manage the rental car and the user renting the rental car according to the positioning data.
The rental vehicle is not returned when the user rents over time, and the positioning data of the rental vehicle is not changed within a period of time. When the location data of the rental car is no longer changed, the rental car is characterized as being stationary, i.e., the user is not currently using the rental car, but the user does not return the car according to a return request, such as not returning the car to a designated return location, and so on. At this time, the server may perform online or offline management according to the positioning data, including prompting the user to return the rental vehicle or directly recycling the rental vehicle according to the location represented by the positioning data.
For example, the server obtains the user terminal identifier according to the user lease request, and sends prompt information to the terminal corresponding to the user terminal identifier, so as to prompt the user to return the lease vehicle. The prompt information includes a return place of the nearest rental vehicle, a path to the return place, and the like. The prompt message can also carry read feedback information, and when the user reads the prompt information through the user terminal, the server receives the read receipt automatically fed back by the user terminal, so that staff can know the information receiving condition of the user through the read receipt.
For another example, the server may further send the rental information of the rental vehicle to a corresponding staff, where the staff contacts the user according to the user contact information in the rental information, so as to prompt the user to return the rental vehicle according to the return requirement. For example, after the server sends the prompt message to the user terminal, the server may send a command to the terminal corresponding to the staff to make the staff get in touch with the user, where the contact manner includes voice call, video call, etc., and the read receipt fed back by the user terminal is not received within a set time, for example, two hours. The staff may be customer service staff or vehicle recycling management staff, and the vehicle recycling management staff may be a person closest to the rental vehicle determined by the server from among a plurality of vehicle recycling management staff through distance analysis.
For another example, the server may send the rental information of the rental vehicle to a vehicle recycling manager, and the vehicle recycling manager may recycle the rental vehicle according to the rental information. If the customer service staff or the vehicle recycling manager contacts the user and then agrees with the user to return time, the server records the agreed return time, and when the agreed return time is detected, but the user does not return the leased vehicle to the designated position, the vehicle recycling manager returns the vehicle to the position indicated by the latest positioning data based on the latest positioning data issued by the server.
According to the vehicle leasing data processing method based on the blockchain, when the leasing information reported by the leasing vehicle is received, the server is used as a node in the blockchain network, leasing data in the leasing information is written into the blockchain, so that the evidence of the leasing data is realized, when the actual leasing time exceeds the pre-stored request leasing time, the leasing data corresponding to the leasing vehicle is obtained from the blockchain, the leasing time is determined according to the corresponding blocktime, the accurate and credible blocktime in the blockchain is utilized, the accuracy of the leasing time is ensured, and even if the timing system and the data recorded in the server are in fault, the accurate leasing timeout data can be obtained.
In one embodiment, taking the application scenario of fig. 6 as an example, the blockchain-based vehicle rental data processing method of the present application is described.
When a user rents a car, the car to be rented can be started in a fingerprint unlocking mode, the Internet of things equipment on the rented car can judge that the user gets on the car, the car utilization time of the user is recorded, and then the car utilization time is uploaded to a server so as to store a certificate by a blockchain. When the vehicle is charged, the vehicle renting time of the user, namely the total time used by the vehicle renting, can be determined according to the vehicle using time and the current time, then the vehicle renting cost is calculated through the vehicle renting time and the vehicle renting unit price, and then the fee deduction is carried out in the balance of the user account or other fund accounts of the renting system. In addition, when uploading the time of using the car, the user identity information, the user credit information and the vehicle information corresponding to the lease sheet number can be uploaded to the blockchain. Judging whether the contracted vehicle returning time is reached or not by comparing the actual lease time with the request lease time according to the user account balance or the longest lease time allowed by funds in other fund accounts, and if the contracted vehicle returning time is reached but the user does not return, periodically uploading the vehicle returning time (comprising the vehicle using time and the current time of the user) of the user to the blockchain for storage according to the time frequency in the charging rule. When the charge dispute occurs, the renting time of the user can be searched from the blockchain through the user identity information or the renting list number, the total charge is calculated according to the renting time, and then the arrearage information is calculated according to the total charge and the paid charge, so that whether the charge owed by the user is accurate or not can be determined. In addition, under the condition that the lease time-out exists, the arrearage information of the user can be uploaded to the blockchain at the same time, so that when the expense dispute occurs, the calculated arrearage information and the stored arrearage information are compared, and whether the arrearage of the user is accurate or not can be determined. During the rental process, the user charges a fee additionally when the mileage is greater than the preset mileage, and the mileage on the vehicle can be modified. In one embodiment, vehicle positioning data may also be periodically acquired and then uploaded to the blockchain so that the lessor may view the track information formed from the vehicle positioning information on the leasing system and calculate the mileage based on the track information. In addition, when the contracted returning time is reached but the user does not return, the lessor can also find the corresponding vehicle according to the vehicle positioning information. Because the time of the uplink and the current time adopt the time on the Internet of things equipment, the time can be modified, and therefore the time of the renting car is different from the actual time of the car. By writing rental data into the blockchain at the beginning and end of rental, accurate and feasible rental time can be obtained by utilizing accurate and reliable blocktime in the blockchain, and the problem can be solved by forceful verification even when a fee dispute caused by the rental timeout time occurs.
In one embodiment, as shown in FIG. 7, a blockchain-based vehicle rental data processing method of the present application is illustrated by one of the most specific embodiments. The method includes the following steps S702 to S730.
S702, receiving a vehicle leasing request sent by a user terminal, determining a leasing vehicle, and feeding back unlocking verification information of the leasing vehicle to the user terminal.
S704, when a first lease message reported by the lease vehicle when the pass of the vehicle unlocking verification information is verified is received, first lease data corresponding to the first lease message is written into the blockchain.
S706, extracting a request lease duration corresponding to the vehicle lease request, and recording lease start time corresponding to the first lease message.
S708, the lease duration is updated in real time by taking the lease start time as a time starting point.
S710, sending a lease status detection message to the lease vehicle, and receiving a lease status detection result fed back by the lease vehicle according to the preset frequency data.
S712, when any one of the rental state detection results is that the vehicle is not returned, the rental state detection results are written into the blockchain.
S714, when the real-time updated lease duration exceeds the request lease duration, feeding back a first timeout prompting message.
S716, when receiving a second lease message reported by the lease vehicle when detecting that the user gets off and meeting the preset vehicle returning condition, writing second lease data corresponding to the second lease message into the blockchain.
S718, recording lease ending time corresponding to the second lease message.
S720, determining the actual lease duration according to the lease start time and the lease end time.
S722, when the fact that the actual lease duration exceeds the prestored lease duration is detected, feeding back a second overtime prompt message, and searching lease data corresponding to the lease vehicles from the blockchain.
S724, obtaining the block time corresponding to the leasing data, and determining the record leasing duration according to the block time.
S726, obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
S728, receiving a data verification request, and acquiring leasing data corresponding to the verification information from the blockchain according to the verification information in the data verification request.
And S730, verifying the obtained lease data and lease data carried by the data verification request according to the data content and the recording time, and feeding back a verification result to a sending end of the data verification request.
FIG. 7 is a flow chart of a method of renting vehicle data in one embodiment. It should be understood that, although the steps in the flowchart of fig. 7 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 7 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, or the order in which the sub-steps or stages are performed is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 8, a blockchain-based vehicle rental data processing apparatus 800 is provided that includes a rental message receiving module 802, a rental message writing module 804, a rental data lookup module 806, a rental time period determining module 808, and a timeout data obtaining module 810.
And a lease message receiving module 802, configured to receive a lease message reported by a lease vehicle.
The lease message writing module 804 is configured to write lease data corresponding to the lease message into the blockchain.
The rental data searching module 806 is configured to search rental data corresponding to the rental vehicle from the blockchain when the actual rental time period is detected to exceed the prestored requested rental time period.
The lease duration determining module 808 is configured to obtain a block time corresponding to the lease data, and determine a record lease duration according to the block time.
And the timeout data obtaining module 810 is configured to obtain rental timeout data according to a time difference between the recorded rental time and the requested rental time.
In one embodiment, the vehicle rental data processing device based on the blockchain further comprises a vehicle rental request processing module, wherein the vehicle rental request processing module is used for receiving a vehicle rental request sent by the user terminal, determining a rented vehicle, and feeding back unlocking verification information of the rented vehicle to the user terminal. The rental message receiving module 802 is further configured to receive a first rental message reported by the rental vehicle when the verification information of unlocking the vehicle passes, and a second rental message reported by the rental vehicle when the rental vehicle detects that the user gets off the vehicle and meets a preset vehicle returning condition, and record a rental start time carried by the first rental message and a rental end time carried by the second rental message.
In one embodiment, the vehicle rental data processing device based on the blockchain further comprises a timeout prompt message feedback module, wherein the timeout prompt message feedback module is used for determining the actual rental time according to the rental start time and the rental end time, extracting the requested rental time carried by the vehicle rental request, and feeding back the timeout prompt message when the detected actual rental time exceeds the prestored requested rental time.
In one embodiment, the timeout indication message feedback module is further configured to extract a requested rental duration corresponding to the vehicle rental request, determine a rental start time corresponding to the first rental message, update the rental duration in real time with the rental start time as a time start point, and feedback the timeout indication message when the real-time updated rental duration exceeds the requested rental duration.
In one embodiment, the blockchain-based vehicle rental data processing device further includes a rental status detection module for sending a rental status detection message to the rental vehicle; receiving a lease state detection result fed back by the lease vehicle according to preset frequency data; and when any one of the rental state detection results is that the vehicle is not returned, writing the rental state detection results into the blockchain.
In one embodiment, the vehicle leasing data processing device based on the blockchain further comprises a data verification module, wherein the data verification module is used for receiving a data verification request and acquiring leasing data corresponding to the verification information from the blockchain according to the verification information in the data verification request; and verifying the obtained lease data and lease data carried by the data verification request according to the data content and the recording time respectively, and feeding back a verification result to a sending end of the data verification request.
In one embodiment, the blockchain-based vehicle rental data processing device further includes a location data inventory module for extracting location data of the rental vehicle from the rental message and writing the location data to the blockchain.
According to the vehicle leasing data processing device based on the blockchain, when the leasing information reported by the leasing vehicle is received, the server is used as a node in the blockchain network, leasing data in the leasing information is written into the blockchain, so that the evidence of the leasing data is realized, when the actual leasing time exceeds the pre-stored request leasing time, the leasing data corresponding to the leasing vehicle is obtained from the blockchain, the leasing time is determined according to the corresponding blocktime, the accurate and credible blocktime in the blockchain is utilized, the accuracy of the leasing time is ensured, and even if the timing system and the data recorded in the server have faults, the accurate leasing time-out data can be obtained.
FIG. 9 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be specifically the server 122 of fig. 1. As shown in fig. 9, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a blockchain-based vehicle rental data processing method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a blockchain-based vehicle rental data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the blockchain-based vehicle rental data processing apparatus provided by the present application can be implemented in the form of a computer program that can run on a computer device as shown in fig. 9. The memory of the computer device may store various program modules that make up the blockchain-based vehicle rental data processing apparatus, such as rental message receiving module 802, rental message writing module 804, rental data lookup module 806, rental duration determination module 808, and timeout data obtaining module 810, shown in fig. 8. The computer program of each program module causes the processor to execute the steps in the blockchain-based vehicle rental data processing method of each embodiment of the present application described in the present specification.
For example, the computer device shown in fig. 9 may perform receiving a rental message reported by a rental vehicle through a rental message receiving module 802 in the blockchain-based vehicle rental data processing apparatus shown in fig. 8. The computer device may perform writing rental data corresponding to the rental message to the blockchain through rental message writing module 804. The computer device may perform searching for rental data corresponding to the rental vehicle from the blockchain when the actual rental time period is detected to exceed the pre-stored requested rental time period, via the rental data lookup module 806. The computer device may determine, by the rental period determination module 808, recording a rental period according to the block time corresponding to the rental data. The computer device may obtain rental timeout data by executing the timeout data obtaining module 810 according to the time difference between the recorded rental time and the requested rental time.
In one embodiment, a computer device is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the blockchain-based vehicle rental data processing method described above. The steps of the blockchain-based vehicle rental data processing method herein may be the steps of the blockchain-based vehicle rental data processing method of the various embodiments described above.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the blockchain-based vehicle rental data processing method described above. The steps of the blockchain-based vehicle rental data processing method herein may be the steps of the blockchain-based vehicle rental data processing method of the various embodiments described above.
Those skilled in the art will appreciate that the processes implementing all or part of the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a non-volatile computer readable storage medium, and the program may include the processes of the embodiments of the methods as above when executed. Any reference to memory, storage, database, or other medium rented by embodiments of the application can include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (14)

1. A blockchain-based vehicle rental data processing method, comprising:
Receiving a vehicle leasing request sent by a user terminal, determining a leasing vehicle, and feeding back unlocking verification information of the leasing vehicle to the user terminal so that the user terminal opens a door of the leasing vehicle based on the unlocking verification information; the vehicle-mounted internet of things device in the leasing vehicle is used for verifying whether an unlocking user is a leasing user in a leasing list number according to the unlocking verification information, when the unlocking user is the leasing user, the vehicle-mounted internet of things device is used for controlling to open a vehicle door, and when the unlocking user is not the leasing user, the vehicle door is not opened;
Receiving a first lease message reported by the lease vehicle when the vehicle unlocking verification information passes verification, and a second lease message reported by the lease vehicle when the lease vehicle detects that a user gets off and a preset vehicle returning condition is met;
Recording the lease starting time carried by the first lease message and the lease ending time carried by the second lease message;
Writing lease data corresponding to the first lease message and the second lease message into a blockchain;
searching lease data corresponding to the lease vehicle from the blockchain when the actual lease duration is detected to exceed the prestored lease duration;
Acquiring block time corresponding to the leasing data, and determining and recording leasing duration according to the block time;
and obtaining lease timeout data according to the time difference between the recorded lease duration and the request lease duration.
2. The method according to claim 1, wherein the method further comprises:
Determining the actual lease duration according to the lease start time and the lease end time;
extracting the request lease duration carried by the vehicle lease request;
when the detected actual lease duration exceeds the prestored request lease duration, the method further comprises the following steps:
and feeding back a timeout prompt message.
3. The method of claim 1, further comprising, after the receiving the first rental message reported by the rental vehicle upon verifying that the vehicle unlock verification information passed:
Extracting a request lease duration corresponding to the vehicle lease request, and determining lease start time corresponding to the first lease message;
The lease starting time is taken as a time starting point, and lease duration is updated in real time;
And feeding back a timeout prompt message when the real-time updated lease time exceeds the request lease time.
4. The method of claim 3, further comprising, after feeding back a timeout hint message when the real-time updated rental period exceeds the requested rental period:
Sending a lease status detection message to the lease vehicle;
Receiving a lease state detection result fed back by the lease vehicle according to preset frequency data;
and when any one of the rental state detection results is that the vehicle is not returned, writing the rental state detection result into the blockchain.
5. The method of claim 1, further comprising, after obtaining rental timeout data from the time difference between the recorded rental time and the requested rental time:
Receiving a data verification request, and acquiring leasing data corresponding to verification information from the blockchain according to the verification information in the data verification request;
And respectively verifying the obtained lease data and lease data carried by the data verification request according to the data content and the recording time, and feeding back a verification result to a sending end of the data verification request.
6. The method according to claim 1, wherein the method further comprises:
Extracting positioning data of the leased vehicle from the leased message;
The positioning data is written to the blockchain.
7. A blockchain-based vehicle rental data processing device, comprising:
The vehicle lease request processing module is used for receiving a vehicle lease request sent by a user terminal, determining a lease vehicle, and feeding back unlocking verification information of the lease vehicle to the user terminal so that the user terminal opens a door of the lease vehicle based on the unlocking verification information; the vehicle-mounted internet of things device in the leasing vehicle is used for verifying whether an unlocking user is a leasing user in a leasing list number according to the unlocking verification information, when the unlocking user is the leasing user, the vehicle-mounted internet of things device is used for controlling to open a vehicle door, and when the unlocking user is not the leasing user, the vehicle door is not opened;
The system comprises a lease message receiving module, a lease message sending module and a lease message sending module, wherein the lease message receiving module is used for receiving a first lease message reported by a lease vehicle when the vehicle unlocking verification information is verified to pass and a second lease message reported by the lease vehicle when the lease vehicle detects that a user gets off and a preset vehicle returning condition is met, and recording lease starting time carried by the first lease message and lease ending time carried by the second lease message;
The lease message writing module is used for writing lease data corresponding to the first lease message and the second lease message into a blockchain;
The lease data searching module is used for searching lease data corresponding to the lease vehicle from the blockchain when detecting that the actual lease time exceeds the prestored lease time;
the lease duration determining module is used for obtaining block time corresponding to the lease data and determining and recording lease duration according to the block time;
and the overtime data obtaining module is used for obtaining lease overtime data according to the time difference between the recorded lease duration and the request lease duration.
8. The apparatus of claim 7, further comprising a timeout hint message feedback module;
The overtime prompt message feedback module is used for determining the actual lease duration according to the lease start time and the lease end time; and extracting the request lease duration carried by the vehicle lease request, and feeding back a timeout prompt message when detecting that the actual lease duration exceeds the prestored request lease duration.
9. The apparatus of claim 7, wherein the timeout hint message feedback module is further configured to extract a requested rental duration corresponding to the vehicle rental request and determine a rental start time corresponding to the first rental message; the lease starting time is taken as a time starting point, and lease duration is updated in real time; and feeding back a timeout prompt message when the real-time updated lease time exceeds the request lease time.
10. The apparatus of claim 9, further comprising a rental status detection module;
The lease status detection module is used for sending lease status detection information to the lease vehicle; receiving a lease state detection result fed back by the lease vehicle according to preset frequency data; and when any one of the rental state detection results is that the vehicle is not returned, writing the rental state detection results into the blockchain.
11. The apparatus of claim 7, wherein the apparatus further comprises a data verification module;
The data verification module is used for receiving a data verification request and acquiring lease data corresponding to verification information from the blockchain according to the verification information in the data verification request; and respectively verifying the obtained lease data and lease data carried by the data verification request according to the data content and the recording time, and feeding back a verification result to a sending end of the data verification request.
12. The apparatus of claim 7, further comprising a positioning data certification module;
the positioning data certification module is used for extracting the positioning data of the leased vehicle from the leasing message; the positioning data is written to the blockchain.
13. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
14. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 6.
CN201910888536.4A 2019-09-19 2019-09-19 Vehicle leasing data processing method and device based on blockchain and storage medium Active CN110597883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910888536.4A CN110597883B (en) 2019-09-19 2019-09-19 Vehicle leasing data processing method and device based on blockchain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910888536.4A CN110597883B (en) 2019-09-19 2019-09-19 Vehicle leasing data processing method and device based on blockchain and storage medium

Publications (2)

Publication Number Publication Date
CN110597883A CN110597883A (en) 2019-12-20
CN110597883B true CN110597883B (en) 2024-05-07

Family

ID=68861510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910888536.4A Active CN110597883B (en) 2019-09-19 2019-09-19 Vehicle leasing data processing method and device based on blockchain and storage medium

Country Status (1)

Country Link
CN (1) CN110597883B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112598466B (en) * 2020-12-23 2023-12-26 南京知麦信息科技有限公司 Agricultural machinery self-service payment renting method based on alliance chain
CN114666328A (en) * 2020-12-23 2022-06-24 京东科技信息技术有限公司 Block chain building method and device, and equipment leasing method and device
CN112927051A (en) * 2021-03-29 2021-06-08 中国建设银行股份有限公司 Rental contract processing method and device
CN115808039A (en) * 2021-09-14 2023-03-17 海信集团控股股份有限公司 Refrigerator, refrigerator control method, device, equipment and medium
CN114401272A (en) * 2022-01-17 2022-04-26 杭州字节方舟科技有限公司 Intelligent contract processing method, block chain link point server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948813A (en) * 2019-02-28 2019-06-28 深圳市轱辘汽车维修技术有限公司 A kind of method, apparatus and server that the maintenance of equipment based on block chain is shared
CN110009388A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 Equipment leasing method, apparatus, equipment and storage medium
CN110069918A (en) * 2019-04-11 2019-07-30 苏州同济区块链研究院有限公司 A kind of efficient double factor cross-domain authentication method based on block chain technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009388A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 Equipment leasing method, apparatus, equipment and storage medium
CN109948813A (en) * 2019-02-28 2019-06-28 深圳市轱辘汽车维修技术有限公司 A kind of method, apparatus and server that the maintenance of equipment based on block chain is shared
CN110069918A (en) * 2019-04-11 2019-07-30 苏州同济区块链研究院有限公司 A kind of efficient double factor cross-domain authentication method based on block chain technology

Also Published As

Publication number Publication date
CN110597883A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110597883B (en) Vehicle leasing data processing method and device based on blockchain and storage medium
EP3719758B1 (en) Parking charging method and system
CN111402578B (en) Shared vehicle monitoring method and device based on track monitoring and computer equipment
AU2018323233A1 (en) Resource transfer method, fund payment method and apparatus, and electronic device
CN110597837B (en) Service data processing method, device, storage medium and computer equipment
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
WO2020040937A2 (en) Blockchain-based service rental method, apparatus, and system, and electronic device
EP3719759A1 (en) Method and device for free-flow tolling, and electronic device
CN110543788A (en) Data storage method, data storage device, computer-readable storage medium and computer equipment
CN109544335B (en) Transaction data processing method, device, equipment and storage medium based on blockchain
CN110503781A (en) Vehicle leasing business data processing method and device based on block chain
CN111162909B (en) Seal control method and device and storage medium
WO2018184520A1 (en) Service data processing method, device, server and storage medium
CN110648244A (en) Block chain-based vehicle insurance scheme generation method and device and driving data processing system
CN109409552A (en) Reserve access method, system, computer equipment and storage medium
CN111899100A (en) Service control method, device and equipment and computer storage medium
CN110084470A (en) The anti-person's of surveying counterfeiting method, device, terminal and medium based on recognition of face
CN110598474A (en) Data acquisition method, system, device and storage medium based on block chain
CN115952220A (en) Bill processing method and device based on block chain, electronic equipment and medium
CN112104671B (en) Interface authorization monitoring method and device, computer equipment and storage medium
CN110807630B (en) Payment method and device based on face recognition, computer equipment and storage medium
CN102968865B (en) The authentication method of a kind of mobile payment and system
CN110457971A (en) Repeat the detection method and device of information of identification code
CN110599332A (en) Block chain-based user intention determination method, device, equipment and storage medium
CN109191901A (en) Parking stall reserving method, device, system, readable storage medium storing program for executing and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant