WO2020119295A1 - Method and device for paying service fee and electronic device - Google Patents

Method and device for paying service fee and electronic device Download PDF

Info

Publication number
WO2020119295A1
WO2020119295A1 PCT/CN2019/113882 CN2019113882W WO2020119295A1 WO 2020119295 A1 WO2020119295 A1 WO 2020119295A1 CN 2019113882 W CN2019113882 W CN 2019113882W WO 2020119295 A1 WO2020119295 A1 WO 2020119295A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
node
service
blockchain
amount
Prior art date
Application number
PCT/CN2019/113882
Other languages
French (fr)
Chinese (zh)
Inventor
吴军
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020119295A1 publication Critical patent/WO2020119295A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • G06Q20/38215Use of certificates or encrypted proofs of transaction rights
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Definitions

  • One or more embodiments of this specification relate to the field of blockchain technology, and in particular, to a service fee payment method and device, and electronic equipment.
  • Vehicles need to use corresponding services in various scenarios such as parking lots, charging stations, toll stations, gas stations, and so on.
  • there are corresponding service personnel in each service scenario and the driving user on the vehicle communicates with the service personnel and completes the payment.
  • one or more embodiments of this specification provide a service fee payment method and apparatus, and electronic equipment.
  • a service fee payment method is proposed, which is applied to a vehicle-side device; the method includes:
  • a service fee payment method is proposed, which is applied to a service system; the method includes:
  • a service fee payment device which is applied to vehicle-side equipment; the device includes:
  • the receiving unit receives the amount of service fees sent by the service system
  • the coordination unit through the corresponding first node of the vehicle-side device on the blockchain, cooperates with the corresponding second node of the service system on the blockchain to complete the asset transfer operation to transfer the matching to the service system An asset certificate describing the amount of service fees.
  • a service fee payment device which is applied to a service system; the device includes:
  • the sending unit sends the service fee amount to the corresponding vehicle-side equipment for the vehicles in the service area;
  • the coordination unit through the corresponding second node of the service system on the blockchain, cooperates with the first node of the vehicle side device on the blockchain to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
  • an electronic device including:
  • Memory for storing processor executable instructions
  • the processor executes the executable instruction to implement the method described in the first aspect above.
  • an electronic device including:
  • Memory for storing processor executable instructions
  • the processor executes the executable instruction to implement the method described in the second aspect above.
  • FIG. 1 is a flowchart of a service fee payment method provided by an exemplary embodiment.
  • FIG. 2 is a flowchart of another service fee payment method provided by an exemplary embodiment.
  • FIG. 3 is a schematic diagram of using a charging service at a charging station provided by an exemplary embodiment.
  • FIG. 4 is a schematic diagram of configuring a blockchain account for a user device according to an exemplary embodiment.
  • FIG. 5 is a schematic diagram of device authorization provided by an exemplary embodiment.
  • FIG. 6 is a schematic diagram of an interaction between a vehicle-side device and a service system to realize automatic payment based on a blockchain provided by an exemplary embodiment.
  • FIG. 7 is a schematic structural diagram of an apparatus provided by an exemplary embodiment.
  • FIG. 8 is a block diagram of an apparatus provided by an exemplary embodiment.
  • FIG. 9 is a schematic structural diagram of another device provided by an exemplary embodiment.
  • FIG. 10 is a block diagram of another apparatus provided by an exemplary embodiment.
  • the steps of the corresponding method are not necessarily performed in the order shown and described in this specification.
  • the method may include more or fewer steps than described in this specification.
  • the single step described in this specification may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in this specification may also be combined into a single step in other embodiments. description.
  • FIG. 1 is a flowchart of a service fee payment method provided by an exemplary embodiment. As shown in FIG. 1, this method is applied to the vehicle-side device, and may include the following steps:
  • Step 102 Receive the service fee amount sent by the service system.
  • the vehicle-side device may include any electronic device corresponding to the vehicle, which is not limited in this specification.
  • the vehicle-side device may include a pre-installed device on the vehicle.
  • the pre-installed device may include a vehicle's central control device.
  • the vehicle-side device may include a rear-mounted device on the vehicle, for example, the rear-mounted device may include a driving recorder on the vehicle.
  • the vehicle-side device may include a user device used by a driving user (driver or passenger) of the vehicle, for example, the user device may include a mobile phone, a tablet device, a notebook computer, and a wearable device (such as a smart watch, smart glasses, etc.) Wait.
  • the vehicle-side device may acquire the detection data of the vehicle sensor; when the detection data indicates that the vehicle is driving into the service area corresponding to the service system, the vehicle-side device may send a notification message to the service system to Instruct the service system to start a billing process and obtain the service fee amount.
  • the vehicle sensor may be pre-installed on the vehicle or may be installed on the vehicle afterwards, which is not limited in this specification.
  • the vehicle sensor and the vehicle-side device can be connected to the ECU (Electronic Control Unit) on the vehicle, so that the vehicle-side device can determine whether the vehicle has entered the service area based on the detection data of the vehicle sensor; in this scenario, The ECU may draw conclusions about whether the vehicle has entered the service area based on the detection data, and then inform the vehicle-side device of the conclusion, or the ECU may send the detection data to the vehicle-side device for determination by the vehicle-side device.
  • the vehicle sensor and the vehicle-side device may be separately connected without going through the ECU, and the vehicle-side device determines whether the vehicle has entered the service area based on the detection data.
  • the vehicle sensor includes a distance measuring sensor
  • the separation distance between the vehicle and the inner boundary of the service area may be determined according to the detection data; wherein, when the separation distance is less than a preset distance, the The vehicle enters the service area.
  • the service area may be a parking space at the charging pile, and the inner boundary of the service area is the boundary near the charging pile, and the corresponding separation distance is the distance between the vehicle and the charging pile.
  • the ranging sensor can be implemented based on any type of ranging technology, for example, UWB (Ultra-Wide Band), ultrasonic ranging distance, laser ranging technology, etc., this manual does not limit this .
  • the service system may be provided with a communication terminal at the service area, and the communication terminal may establish a communication connection with the vehicle-side device, so that the vehicle-side device may send a notification message to the communication terminal based on the communication connection.
  • the communication connection may be established based on near-field communication technology.
  • the near-field communication technology may include Bluetooth communication technology, NFC communication technology, etc. This specification does not limit this.
  • the service system can directly start charging; for example, in the parking lot scene of on-street parking spaces, a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee.
  • a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee.
  • the charging process it only indicates that the service system can start charging at any time, but the service system can determine whether to start charging according to the actual situation; for example, in a charging scenario, the service system can determine that the charging plug has been connected to the vehicle Charging is started when the charging port is connected; for another example, in the fueling scenario, the service system can start charging when it is determined that the fuel gun has been inserted into the fueling port on the vehicle.
  • the vehicle-side device may verify the reasonableness of the service charge amount based on the sending moment of the notification message and the receiving moment of the service charge amount ; For example, the vehicle-side device can determine the corresponding service duration according to the sending time and receiving time, and calculate the corresponding fee value in combination with the unit price of the service, when the difference between the fee value and the above service fee amount is not greater than the preset value , It can be determined that the amount of service fees is reasonable, and when the difference is greater than the preset value, it can be determined that the amount of service fees is unreasonable, so as to terminate or avoid triggering the asset transfer operation, and the driving user and the relevant service personnel to check and Settlement.
  • Step 104 through the corresponding first node of the vehicle side device on the blockchain, cooperate with the corresponding second node of the service system on the blockchain to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
  • the vehicle-side device may generate an asset transfer transaction based on the service fee amount, the payment confirmation information generated by the first node, and the payment confirmation information generated by the second node; then, the vehicle-side device
  • the asset transfer transaction can be submitted to the blockchain through the first node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and the attribution
  • the asset certificate in the service system increases the service fee amount.
  • the payment confirmation information contains information about the confirmation of the payment by the vehicle-side device, such as the signature information of the vehicle-side device on the payment amount (equal to the amount of the service fee), etc.; the payment confirmation information contains the relevant information of the service system to confirm the payment, such as The service system's signature information on the amount of collection (equal to the amount of service charges), etc.
  • the vehicle-side device may generate payment confirmation information through the first node to provide to the second node, so that the second node may determine the service fee amount, the payment confirmation information, and the Generate the asset transfer transaction by the receipt confirmation information generated by the second node, and the asset transfer transaction is submitted to the blockchain by the second node; wherein, after the asset transfer transaction is completed, it belongs to the vehicle
  • the asset certificate of the side device reduces the amount of the service fee, and the asset certificate attributed to the service system increases the amount of the service fee.
  • the vehicle-side device may submit a first transaction to the blockchain through the first node, the first transaction includes payment confirmation information generated by the first node, and the first transaction statement To call a smart contract in the blockchain; wherein the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is determined by the second
  • the node generates and submits to the blockchain through a second transaction.
  • the vehicle-side device submits payment confirmation information through the first node, and the service system submits the payment confirmation information through the second node, so that the vehicle-side device as the payer and the service system as the payee perform some operations, And eventually coordinated to complete the asset transfer.
  • each blockchain node in the blockchain maintains a blockchain ledger, the content of each blockchain ledger is unified, and a full amount of blockchain transaction data is recorded; for example, in the blockchain ledger
  • the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system may be recorded.
  • the remaining credit limit is the remaining value of the credit limit corresponding to the vehicle-side device; where the credit limit is related to the credit status of the user corresponding to the vehicle-side device, for example, the better the credit status, the higher the corresponding credit limit.
  • the asset transfer operation can be used to: when the remaining credit limit is not less than the service fee amount, deduct the service fee amount from the remaining credit limit recorded in the blockchain ledger, so that The account balance recorded in the blockchain ledger increases the service fee amount.
  • the remaining credit limit is sufficient to pay the service fee amount
  • the user's remaining credit limit can be deducted first, so especially when the user has not converted the off-chain assets into a dedicated asset certificate on the blockchain, it can help the user quickly Complete the payment.
  • FIG. 2 is a flowchart of another service fee payment method provided by an exemplary embodiment. As shown in FIG. 2, this method is applied to a service system and may include the following steps:
  • Step 202 For the vehicle in the service area, send the service fee amount to the corresponding vehicle-side device.
  • the vehicle-side device may include any electronic device corresponding to the vehicle, which is not limited in this specification.
  • the vehicle-side device may include a pre-installed device on the vehicle.
  • the pre-installed device may include a vehicle's central control device.
  • the vehicle-side device may include a rear-mounted device on the vehicle, for example, the rear-mounted device may include a driving recorder on the vehicle.
  • the vehicle-side device may include a user device used by a driving user (driver or passenger) of the vehicle, for example, the user device may include a mobile phone, a tablet device, a notebook computer, and a wearable device (such as a smart watch, smart glasses, etc.) Wait.
  • the vehicle sensor may be pre-installed on the vehicle or may be installed on the vehicle afterwards, which is not limited in this specification.
  • the vehicle sensor and the vehicle-side device can be respectively connected to the ECU on the vehicle, so that the vehicle-side device can determine whether the vehicle has entered the service area based on the detection data of the vehicle sensor; in this scenario, the ECU can derive the vehicle based on the detection data After the conclusion of whether the vehicle has entered the service area, inform the vehicle-side device of the conclusion, or the ECU can send the detection data to the vehicle-side device for judgment by the vehicle-side device.
  • the vehicle sensor and the vehicle-side device may be separately connected without going through the ECU, and the vehicle-side device determines whether the vehicle has entered the service area based on the detection data.
  • the service system may be provided with a communication terminal at the service area, and the communication terminal may establish a communication connection with the vehicle-side device, so that the vehicle-side device may send a notification message to the communication terminal based on the communication connection.
  • the communication connection may be established based on near-field communication technology.
  • the near-field communication technology may include Bluetooth communication technology, NFC communication technology, etc. This specification does not limit this.
  • a sensor may be provided at the service area so that the sensor can be used to detect the vehicle in the service area; if the service system determines that the vehicle corresponding to the vehicle-side device is driving based on the detection data returned by the sensor For the service area, then the service system can start a billing process to calculate the service fee amount.
  • the sensors at the service area may include a distance measuring sensor, a camera, an infrared sensor, etc., which is not limited in this specification.
  • the above-mentioned vehicle sensors may be provided on the vehicle, and the above-mentioned sensors may also be provided in the service area, so that the vehicle-side equipment and the service system can implement the detection schemes described in the above-mentioned embodiments, respectively, to determine Whether the vehicle is driving into the service area, and the service system can determine whether to start the charging process according to the notification message sent by the vehicle-side device or the detection result obtained by the sensor at the service area.
  • the service system can directly start charging; for example, in the parking lot scene of on-street parking spaces, a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee.
  • a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee.
  • the charging process it only indicates that the service system can start charging at any time, but the service system can determine whether to start charging according to the actual situation; for example, in a charging scenario, the service system can determine that the charging plug has been connected to the vehicle Charging is started when the charging port is connected; for another example, in the fueling scenario, the service system can start charging when it is determined that the fuel gun has been inserted into the fueling port on the vehicle.
  • Step 204 through the corresponding second node of the service system on the blockchain, cooperate with the first node on the blockchain of the vehicle-side device to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
  • the service system can generate payment confirmation information through the second node to provide to the first node, so that the first node can determine the payment fee, the payment confirmation information and the The payment confirmation information generated by the first node generates an asset transfer transaction, and the asset transfer transaction is submitted to the blockchain by the first node; wherein, when the asset transfer transaction is completed, it belongs to the vehicle
  • the asset certificate of the side device reduces the amount of the service fee, and the asset certificate attributed to the service system increases the amount of the service fee.
  • the payment confirmation information contains information about the confirmation of the payment by the vehicle-side device, such as the signature information of the vehicle-side device on the payment amount (equal to the amount of the service fee), etc.; the payment confirmation information contains the relevant information of the service system to confirm the payment, such as The service system's signature information on the amount of collection (equal to the amount of service charges), etc.
  • the service system may generate an asset transfer transaction based on the service fee amount, the payment confirmation information generated by the first node, and the payment confirmation information generated by the second node; then, the service system may use The second node submits the asset transfer transaction to the blockchain; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to the The asset certificate of the service system increases the amount of the service fee.
  • the service system may submit a second transaction to the blockchain through the second node, the second transaction includes payment confirmation information generated by the second node, and the second transaction statement To call a smart contract in the blockchain; wherein the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is provided by the first node Generate and submit to the blockchain through the first transaction.
  • the vehicle-side device submits payment confirmation information through the first node
  • the service system submits the payment confirmation information through the second node, so that the vehicle-side device as the payer and the service system as the payee perform some operations, And eventually coordinated to complete the asset transfer.
  • each blockchain node in the blockchain maintains a blockchain ledger, the content of each blockchain ledger is unified, and a full amount of blockchain transaction data is recorded; for example, in the blockchain ledger
  • the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system may be recorded.
  • the remaining credit limit is the remaining value of the credit limit corresponding to the vehicle-side device; where the credit limit is related to the credit status of the user corresponding to the vehicle-side device, for example, the better the credit status, the higher the corresponding credit limit.
  • the asset transfer operation can be used to: when the remaining credit limit is not less than the service fee amount, deduct the service fee amount from the remaining credit limit recorded in the blockchain ledger, so that The account balance recorded in the blockchain ledger increases the service fee amount.
  • the remaining credit limit is sufficient to pay the service fee amount
  • the user's remaining credit limit can be deducted first, so especially when the user has not converted the off-chain assets into a dedicated asset certificate on the blockchain, it can help the user quickly Complete the payment.
  • the transfer described in this specification refers to a piece of data that a user creates through a client of the blockchain and needs to be finally released to the distributed database of the blockchain.
  • the narrow sense of the transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain.
  • the generalized transaction refers to a piece of business data with business intent published by the user to the blockchain; for example, the operator can build an alliance chain based on actual business needs, relying on the alliance chain to deploy some other types not related to value transfer Online business (for example, rental business, vehicle scheduling business, insurance claims business, credit service, medical service, etc.), and in this type of alliance chain, the transaction can be a business with business intent issued by the user in the alliance chain Message or business request.
  • FIG. 3 is a schematic diagram of using a charging service at a charging station provided by an exemplary embodiment.
  • the charging station is equipped with charging pile 1, charging pile 2, ... charging pile n, etc. These charging piles are all controlled by the service system.
  • An associated communication terminal is provided inside or outside each charging pile. The communication terminal can be used for communication between the charging pile and the service system on the one hand, and communication between the charging pile and the vehicle-side equipment on the other hand.
  • automatic payment after charging can be realized based on the blockchain.
  • the payment operation is actually the transfer of assets or asset credentials from the account corresponding to the vehicle-side device to the account corresponding to the service system; for example, the payment operation based on the blockchain should be transferred from the blockchain account corresponding to the device-side device to the service system
  • the corresponding blockchain account transfers assets or asset credentials. This requires configuring a blockchain account for the vehicle-side device and ensuring that there are assets or asset credentials that can be transferred in the blockchain account.
  • FIG. 4 is a schematic diagram of configuring a blockchain account for a user device according to an exemplary embodiment.
  • the vehicle-side device is a user device used by a driving user, for example, the user device may be a mobile phone, etc.
  • the relevant interaction process may include the following steps:
  • Step 401 The user equipment generates a public and private key pair.
  • the user equipment may generate a corresponding public and private key pair based on the key generation technology in the related technology, which will not be repeated here.
  • step 402 the user equipment sends the generated public and private key pair to a CA (Certificate Authority) and receives the digital certificate returned by the CA.
  • CA Certificate Authority
  • Step 403 the user equipment sends the off-chain account and the digital certificate to the blockchain node.
  • the off-chain account refers to an account that is logged on the user's device and is off-blockchain, such as an account owned by a driving user at a payment institution, which is different from the block-chain account owned on the block chain. .
  • Step 404 the blockchain node associates the off-chain account provided by the user equipment with the blockchain account.
  • the blockchain node can confirm the off-chain account based on the digital certificate and generate a blockchain account based on the public key in the digital certificate, thereby associating the off-chain account with the blockchain account, which is equivalent Yu created a corresponding blockchain account for the driving user, so that the driving user can complete the automatic payment operation based on the blockchain based on the blockchain account.
  • Step 405 the blockchain node returns the information of the blockchain account to the user device.
  • Step 406 The user equipment sends the exchange amount to the blockchain node.
  • the rider user can set the exchange amount through the user device to convert the off-chain assets (such as currency) held by the rider user in the off-chain account into a token (token) in the blockchain account ), the token is used in the transfer process in the blockchain.
  • off-chain assets such as currency
  • token token
  • Step 407 the blockchain node instructs the relevant off-chain object to deduct the off-chain funds in the off-chain account, and allocates a corresponding amount of tokens to the blockchain account.
  • step 408 the blockchain node returns the token distribution result to the user equipment.
  • the blockchain node may send a fund deduction instruction to the off-chain object, so that the off-chain object deducts the corresponding amount from the off-chain account corresponding to the driving user. Funds; and, the blockchain node can allocate the corresponding amount of tokens to the corresponding blockchain account of the driving user, which is equivalent to converting the off-chain funds into tokens.
  • the driving user When the driving user carries the above user equipment into the vehicle, he can interact with the service system through the user equipment, so as to realize the payment scheme of this specification. Or, for pre-installed on-vehicle terminals on the vehicle, the rider can log in with an account on the on-board terminal, and configure the blockchain account and exchange a specified number of tokens based on the interactive process shown in Figure 4, and then The vehicle-mounted terminal interacts with the service system to implement the payment scheme of this specification, which will not be repeated here.
  • FIG. 5 is a schematic diagram of device authorization provided by an exemplary embodiment.
  • the interactive process for the user equipment to authorize the driving recorder may include the following steps:
  • Step 501 Establish a communication connection between the user equipment and the driving recorder.
  • a communication connection based on BLE may be established between the user equipment and the driving recorder; or, a communication connection of other protocols may be used, which is not limited in this specification.
  • the user device and the driving recorder are paired and bound after the connection is established, such as setting the user device as a BLE master device and the driving recorder as a BLE slave device, so as to facilitate subsequent processes Can achieve fast pairing connection.
  • Step 502 the user equipment sends the blockchain account and the digital certificate to the driving recorder.
  • Step 503 the driving recorder registers at the blockchain node.
  • Step 504 the blockchain node associates the off-chain account, the blockchain account with the device ID.
  • the driving recorder sends its own device ID, the blockchain account and the digital certificate provided by the user equipment to the blockchain node, and the blockchain node can determine the user based on the digital certificate and the blockchain account:
  • the device wants to authorize the electronic device corresponding to the device ID, and thus associates the corresponding off-chain account and blockchain account with the device ID.
  • Step 505 the blockchain node returns the registration result to the driving recorder, and the forming recorder can send a binding success message to the user equipment.
  • FIG. 6 is a schematic diagram of an interaction between a vehicle-side device and a service system to realize automatic payment based on a blockchain provided by an exemplary embodiment. As shown in Figure 6, the interaction process may include the following steps:
  • Step 601 the vehicle-side device detects the separation distance.
  • the vehicle-side device may include the above-mentioned user equipment, in-vehicle device, or device such as a driving recorder, which is not limited in this specification.
  • the vehicle is equipped with a distance measuring sensor, so that when the vehicle enters a parking space corresponding to a charging pile, the distance sensor can be used to detect the distance between the vehicle and the charging pile, and the detection data Transmission to vehicle side equipment.
  • Step 602 When the separation distance is not greater than the preset distance, the vehicle-side device sends a notification message to the service system.
  • the vehicle-side device when the separation distance is not greater than the preset distance, it indicates that the vehicle has entered the parking space corresponding to the charging pile and is ready for charging.
  • the vehicle-side device can establish a connection such as BLE with the service system, so that the vehicle-side device can send a notification message to the service system to notify itself that it is ready to start charging.
  • Step 603 the service system starts the charging process according to the received notification message.
  • the charging process after the charging process starts, it indicates that the service system has started the right to charge the vehicle, and determines whether charging has started or terminated according to the actual situation.
  • Step 604 when charging starts, the service system starts charging.
  • an automatic interface may be provided at the charging pile, so that after receiving the notification message, the service system may send a trigger instruction to the corresponding charging pile, so that the automatic interface at the charging pile can be automatically connected to the charging port of the vehicle.
  • the driver or the service personnel can manually dock the charging interface at the charging pile with the charging port on the vehicle to start charging.
  • the charging pile can detect whether charging has started, and notify the service system after confirming the start of charging, so that the service system can start charging.
  • a start button is provided at the charging pile, so that after the driver or service personnel docks the charging interface on the charging pile with the charging port on the vehicle, the trigger button is triggered to make the charging pile on the one hand Start to supply power to the vehicle, and on the other hand inform the service system to enable the service system to start charging.
  • Step 605 when charging is terminated, the service system calculates the charging fee.
  • the charging pile can detect whether the charging has been terminated, and notify the service system after confirming the termination of the charging, so that the service system terminates the charging and calculates the charging fee.
  • a termination button is provided at the charging pile, so that the driver or service personnel can trigger the termination button to cause the charging pile to terminate the power supply to the vehicle on the one hand, and notify the service system on the other hand to cause the service system to terminate the meter Charge and calculate the charge.
  • the service system may calculate the corresponding charging fee according to the charging duration of the vehicle (calculated based on the charging start time and charging end time) and the predefined charging unit price.
  • the service system can also calculate based on the power consumption, etc., and this specification does not limit this.
  • Step 606 After receiving the charging fee sent by the service system, the vehicle-side device verifies the charging fee.
  • the device on the vehicle side can start timing after sending out the notification message, and terminate the timing when the charging fee is received, accordingly calculate the corresponding charging duration, and calculate the corresponding estimated in conjunction with the predefined charging unit price Charging costs.
  • the vehicle-side device may determine that the fee is abnormal, thereby terminating the automatic payment process and reminding the driving user to manually complete the payment.
  • the service system can also send a start notification (which can include the charging start time) and a termination notification (which can include the charging end time) to the vehicle-side device at the beginning of charging and at the end of charging, making the charging time calculated by the vehicle-side device longer For precision.
  • a start notification which can include the charging start time
  • a termination notification which can include the charging end time
  • Step 607 After determining that the charging fee is correct, the vehicle side device and the service system exchange accounts.
  • the vehicle-side device may inform the service system of the corresponding blockchain account 1 and obtain the corresponding blockchain account 2 of the service system, so that the blockchain account 1 and the blockchain account 2 Implement automatic payment based on blockchain.
  • Step 608a the vehicle-side device submits a payment transaction to the blockchain.
  • the vehicle-side device is configured as a blockchain node, or the vehicle-side device has a corresponding blockchain node; the vehicle-side device submits a payment transaction to the blockchain through the blockchain node.
  • the payment transaction may include the address of the blockchain account 1, the address of the blockchain account 2, the payment amount of the vehicle-side device (equal to the above payment fee), the private key signature of the vehicle-side device, etc., indicating that the vehicle-side device confirms from The blockchain account 1 transfers the token corresponding to the payment amount to the blockchain account 2.
  • Step 608b the service system submits the payment transaction to the blockchain.
  • the service system is configured as a blockchain node, or there is a corresponding blockchain node in the service system; the service system submits a payment transaction to the blockchain through the blockchain node.
  • the payment transaction can include the address of the blockchain account 1, the address of the blockchain account 2, the amount of payment received by the service system (equal to the above payment fee), the private key signature of the service system, etc., indicating that the service system confirms the slave zone
  • the blockchain account 1 transfers the token corresponding to the payment amount to the blockchain account 2.
  • step 609 the blockchain node performs token transfer and returns the transfer notification to the vehicle-side device and service system.
  • the blockchain node can determine the vehicle-side device and the vehicle-based device based on the native function of the blockchain or the extension function provided by the smart contract.
  • the relevant content of the above payment transaction, collection transaction and token transfer will be recorded in the blockchain, and each blockchain node will be maintained in the corresponding blockchain ledger, so that the relevant content It cannot be tampered with, and both the driving user and the service system can query and verify the contents of the blockchain ledger at any time to ensure that payment operations are performed automatically, accurately, and fairly.
  • the device includes a processor 702, an internal bus 704, a network interface 706, a memory 708, and a non-volatile memory 710. Of course, it may include hardware required for other services.
  • the processor 702 reads the corresponding computer program from the non-volatile memory 710 into the memory 708 and then runs it to form a service fee payment device at a logical level.
  • one or more embodiments of this specification do not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each
  • the logic unit may also be a hardware or logic device.
  • the service fee payment device is applied to the vehicle-side device; the device may include:
  • the receiving unit 801 receives the service fee amount sent by the service system
  • the coordination unit 802 through the corresponding first node of the vehicle side device on the blockchain, cooperates with the corresponding second node of the service system on the blockchain to complete the asset transfer operation, so as to transfer the matching to the service system An asset certificate of the amount of the service fee.
  • collaboration unit 802 is specifically used to:
  • collaboration unit 802 is specifically used to:
  • the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  • collaboration unit 802 is specifically used to:
  • Submit a first transaction to the blockchain through the first node the first transaction includes payment confirmation information generated by the first node, and the first transaction declares to call the intelligence in the blockchain contract;
  • the smart contract is used to perform the asset transfer operation according to the payment confirmation information and collection confirmation information, and the collection confirmation information is generated by the second node and submitted to the area through a second transaction Blockchain.
  • Optional also includes:
  • the obtaining unit 803 obtains the detection data of the vehicle sensor
  • the sending unit 804 when the detection data indicates that the vehicle is driving into the service area corresponding to the service system, sends a notification message to the service system to instruct the service system to start a billing process and obtain the service fee amount.
  • the vehicle sensor includes a distance measuring sensor, and the detection data includes a separation distance between the vehicle and an inner boundary of the service area; wherein, when the separation distance is less than a preset distance, it indicates that The vehicle enters the service area.
  • Optional also includes:
  • the verification unit 805 verifies the rationality of the service fee amount based on the sending time of the notification message and the receiving moment of the service fee amount;
  • the vehicle-side equipment includes any of the following: pre-installed equipment on the vehicle, post-installed equipment on the vehicle, and user equipment used by a rider of the vehicle.
  • the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used when the remaining credit limit is not less than the When the amount of service fees is deducted, the remaining credit limit recorded in the blockchain ledger is deducted from the amount of service fees, and the account balance recorded in the blockchain ledger is increased by the amount of service fees.
  • the device includes a processor 902, an internal bus 904, a network interface 906, a memory 908, and a non-volatile memory 910. Of course, it may include hardware required for other services.
  • the processor 902 reads the corresponding computer program from the non-volatile memory 910 into the memory 908 and then runs it to form a service fee payment device at a logical level.
  • one or more embodiments of this specification do not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each
  • the logic unit may also be a hardware or logic device.
  • the service fee payment device is applied to the service system; the device may include:
  • the sending unit 1001 sends the service fee amount to the corresponding vehicle-side device for the vehicles in the service area;
  • the coordination unit 1002 through the corresponding second node of the service system on the blockchain, cooperates with the first node of the vehicle-side device on the blockchain to complete the asset transfer operation to transfer the matching to the service system An asset certificate of the amount of the service fee.
  • collaboration unit 1002 is specifically used to:
  • the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  • collaboration unit 1002 is specifically used to:
  • collaboration unit 1002 is specifically used to:
  • Submit a second transaction to the blockchain through the second node the second transaction includes the payment confirmation information generated by the second node, and the second transaction declares to call the blockchain Smart contract
  • the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is generated by the first node and submitted to the block through a first transaction chain.
  • the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used when the remaining credit limit is not less than the When the amount of service fees is deducted, the remaining credit limit recorded in the blockchain ledger is deducted from the amount of service fees, and the account balance recorded in the blockchain ledger is increased by the amount of service fees.
  • Optional also includes:
  • the starting unit 1003 starts the charging process to calculate the amount of the service fee according to the notification message sent by the vehicle-side device, wherein the notification message is sent by the vehicle-side device when it is determined that the corresponding vehicle enters the service area Or, when the sensor at the service area detects that the vehicle corresponding to the vehicle-side device is driving into the service area, a charging process is started to calculate the amount of the service fee.
  • the system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
  • the computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash random access memory
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • first, second, third, etc. may use the terms first, second, third, etc. to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination”.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and device for paying a service fee and an electronic device. When applied to a vehicle side device, the method comprises: receiving a service fee amount sent by a service system (102); by means of a first node corresponding to the vehicle side device in a blockchain, collaborating with a second node corresponding to the service system in the blockchain to complete an asset transfer operation so as to transfer an asset certificate matching the service fee amount to the service system (104).

Description

服务费用的支付方法及装置、电子设备Service fee payment method and device, and electronic equipment 技术领域Technical field
本说明书一个或多个实施例涉及区块链技术领域,尤其涉及一种服务费用的支付方法及装置、电子设备。One or more embodiments of this specification relate to the field of blockchain technology, and in particular, to a service fee payment method and device, and electronic equipment.
背景技术Background technique
车辆需要在停车场、充电站、收费站、加油站等各个场景下使用相应的服务。在相关技术中,各个服务场景下存在相应的服务人员,由车辆上的驾乘用户与服务人员进行沟通并完成付费。Vehicles need to use corresponding services in various scenarios such as parking lots, charging stations, toll stations, gas stations, and so on. In the related art, there are corresponding service personnel in each service scenario, and the driving user on the vehicle communicates with the service personnel and completes the payment.
发明内容Summary of the invention
有鉴于此,本说明书一个或多个实施例提供一种服务费用的支付方法及装置、电子设备。In view of this, one or more embodiments of this specification provide a service fee payment method and apparatus, and electronic equipment.
为实现上述目的,本说明书一个或多个实施例提供技术方案如下:To achieve the above purpose, one or more embodiments of this specification provide technical solutions as follows:
根据本说明书一个或多个实施例的第一方面,提出了一种服务费用的支付方法,应用于车辆侧设备;所述方法包括:According to a first aspect of one or more embodiments of this specification, a service fee payment method is proposed, which is applied to a vehicle-side device; the method includes:
接收所述服务系统发送的服务费用数额;Receiving the amount of service fees sent by the service system;
通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。Through the corresponding first node of the vehicle-side device on the blockchain, cooperate with the corresponding second node of the service system on the blockchain to complete the asset transfer operation to transfer to the service system matching the service fee The amount of the asset certificate.
根据本说明书一个或多个实施例的第二方面,提出了一种服务费用的支付方法,应用于服务系统;所述方法包括:According to a second aspect of one or more embodiments of this specification, a service fee payment method is proposed, which is applied to a service system; the method includes:
针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费用数额;For the vehicles in the service area, send the service fee amount to the corresponding vehicle-side equipment;
通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。Through the corresponding second node of the service system on the blockchain, cooperate with the first node of the vehicle side device on the blockchain to complete the asset transfer operation to transfer to the service system to match the service fee The amount of the asset certificate.
根据本说明书一个或多个实施例的第三方面,提出了一种服务费用的支付装置,应 用于车辆侧设备;所述装置包括:According to a third aspect of one or more embodiments of this specification, a service fee payment device is proposed, which is applied to vehicle-side equipment; the device includes:
接收单元,接收服务系统发送的服务费用数额;The receiving unit receives the amount of service fees sent by the service system;
协同单元,通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit, through the corresponding first node of the vehicle-side device on the blockchain, cooperates with the corresponding second node of the service system on the blockchain to complete the asset transfer operation to transfer the matching to the service system An asset certificate describing the amount of service fees.
根据本说明书一个或多个实施例的第四方面,提出了一种服务费用的支付装置服务费用的支付装置,应用于服务系统;所述装置包括:According to a fourth aspect of one or more embodiments of this specification, a service fee payment device is proposed, which is applied to a service system; the device includes:
发送单元,针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费用数额;The sending unit sends the service fee amount to the corresponding vehicle-side equipment for the vehicles in the service area;
协同单元,通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit, through the corresponding second node of the service system on the blockchain, cooperates with the first node of the vehicle side device on the blockchain to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
根据本说明书一个或多个实施例的第五方面,提出了一种电子设备,包括:According to a fifth aspect of one or more embodiments of this specification, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
其中,所述处理器通过运行所述可执行指令以实现如上述第一方面所述的方法。Wherein, the processor executes the executable instruction to implement the method described in the first aspect above.
根据本说明书一个或多个实施例的第六方面,提出了一种电子设备,包括:According to a sixth aspect of one or more embodiments of this specification, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
其中,所述处理器通过运行所述可执行指令以实现如上述第二方面所述的方法。Wherein, the processor executes the executable instruction to implement the method described in the second aspect above.
附图说明BRIEF DESCRIPTION
图1是一示例性实施例提供的一种服务费用的支付方法的流程图。FIG. 1 is a flowchart of a service fee payment method provided by an exemplary embodiment.
图2是一示例性实施例提供的另一种服务费用的支付方法的流程图。FIG. 2 is a flowchart of another service fee payment method provided by an exemplary embodiment.
图3是一示例性实施例提供的一种在充电站使用充电服务的示意图。FIG. 3 is a schematic diagram of using a charging service at a charging station provided by an exemplary embodiment.
图4是一示例性实施例提供的一种为用户设备配置区块链账户的示意图。FIG. 4 is a schematic diagram of configuring a blockchain account for a user device according to an exemplary embodiment.
图5是一示例性实施例提供的一种设备授权的示意图。FIG. 5 is a schematic diagram of device authorization provided by an exemplary embodiment.
图6是一示例性实施例提供的一种车辆侧设备与服务系统之间基于区块链实现自动付费的交互示意图。FIG. 6 is a schematic diagram of an interaction between a vehicle-side device and a service system to realize automatic payment based on a blockchain provided by an exemplary embodiment.
图7是一示例性实施例提供的一种设备的结构示意图。7 is a schematic structural diagram of an apparatus provided by an exemplary embodiment.
图8是一示例性实施例提供的一种装置的框图。FIG. 8 is a block diagram of an apparatus provided by an exemplary embodiment.
图9是一示例性实施例提供的另一种设备的结构示意图。FIG. 9 is a schematic structural diagram of another device provided by an exemplary embodiment.
图10是一示例性实施例提供的另一种装置的框图。FIG. 10 is a block diagram of another apparatus provided by an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail here, examples of which are shown in the drawings. When referring to the drawings below, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, the single step described in this specification may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in this specification may also be combined into a single step in other embodiments. description.
图1是一示例性实施例提供的一种服务费用的支付方法的流程图。如图1所示,该方法应用于车辆侧设备,可以包括以下步骤:FIG. 1 is a flowchart of a service fee payment method provided by an exemplary embodiment. As shown in FIG. 1, this method is applied to the vehicle-side device, and may include the following steps:
步骤102,接收服务系统发送的服务费用数额。Step 102: Receive the service fee amount sent by the service system.
在一实施例中,车辆侧设备可以包括与车辆对应的任意电子设备,本说明书并不对此进行限制。例如,车辆侧设备可以包括车辆上的预安装设备,譬如该预安装设备可以包括车辆的中控设备等。再例如,车辆侧设备可以包括车辆上的后安装设备,譬如该后安装设备可以包括车辆上的行车记录仪等。又例如,车辆侧设备可以包括车辆的驾乘用户(驾驶员或乘客)使用的用户设备,譬如该用户设备可以包括手机、平板设备、笔记本电脑、可穿戴设备(如智能手表、智能眼镜等)等。In an embodiment, the vehicle-side device may include any electronic device corresponding to the vehicle, which is not limited in this specification. For example, the vehicle-side device may include a pre-installed device on the vehicle. For example, the pre-installed device may include a vehicle's central control device. For another example, the vehicle-side device may include a rear-mounted device on the vehicle, for example, the rear-mounted device may include a driving recorder on the vehicle. For another example, the vehicle-side device may include a user device used by a driving user (driver or passenger) of the vehicle, for example, the user device may include a mobile phone, a tablet device, a notebook computer, and a wearable device (such as a smart watch, smart glasses, etc.) Wait.
在一实施例中,车辆侧设备可以获取车辆传感器的检测数据;当所述检测数据表明 车辆驶入所述服务系统对应的服务区域时,车辆侧设备可以向所述服务系统发送通知消息,以指示所述服务系统启动计费流程并得到所述服务费用数额。In an embodiment, the vehicle-side device may acquire the detection data of the vehicle sensor; when the detection data indicates that the vehicle is driving into the service area corresponding to the service system, the vehicle-side device may send a notification message to the service system to Instruct the service system to start a billing process and obtain the service fee amount.
在一实施例中,车辆传感器可以预安装于车辆上,也可以后安装于车辆上,本说明书并不对此进行限制。车辆传感器、车辆侧设备可以分别接入车辆上的ECU(Electronic Control Unit,电子控制单元),使得车辆侧设备可以基于车辆传感器的检测数据而确定车辆是否已驶入服务区域;在该场景下,可以由ECU根据检测数据得出车辆是否已驶入服务区域的结论后,将结论告知车辆侧设备,或者ECU可以将检测数据发送至车辆侧设备、由车辆侧设备进行判断。或者,车辆传感器与车辆侧设备可以不经过ECU而实现单独连接,并由车辆侧设备根据检测数据确定车辆是否已驶入服务区域。In an embodiment, the vehicle sensor may be pre-installed on the vehicle or may be installed on the vehicle afterwards, which is not limited in this specification. The vehicle sensor and the vehicle-side device can be connected to the ECU (Electronic Control Unit) on the vehicle, so that the vehicle-side device can determine whether the vehicle has entered the service area based on the detection data of the vehicle sensor; in this scenario, The ECU may draw conclusions about whether the vehicle has entered the service area based on the detection data, and then inform the vehicle-side device of the conclusion, or the ECU may send the detection data to the vehicle-side device for determination by the vehicle-side device. Alternatively, the vehicle sensor and the vehicle-side device may be separately connected without going through the ECU, and the vehicle-side device determines whether the vehicle has entered the service area based on the detection data.
在一实施例中,通过采用不同类型的车辆传感器,可以基于不同的判断逻辑来确定车辆是否已驶入服务区域,本说明书并不对此进行限制。例如,当车辆传感器包括测距传感器时,可以根据所述检测数据确定所述车辆与所述服务区域的内侧边界之间的间隔距离;其中,当所述间隔距离小于预设距离时,确定所述车辆驶入所述服务区域。较为具体地,比如当车辆需要充电时,服务区域可以为充电桩处的停车位,而服务区域的内侧边界为靠近充电桩处的边界,相应的间隔距离即车辆与充电桩之间的距离。其中,测距传感器可以基于任意类型的测距技术而实现,例如,UWB(Ultra-Wide Band,超宽带)测距技术、超声波测距距离、激光测距技术等,本说明书并不对此进行限制。In an embodiment, by using different types of vehicle sensors, it is possible to determine whether the vehicle has entered the service area based on different judgment logic, which is not limited in this specification. For example, when the vehicle sensor includes a distance measuring sensor, the separation distance between the vehicle and the inner boundary of the service area may be determined according to the detection data; wherein, when the separation distance is less than a preset distance, the The vehicle enters the service area. More specifically, for example, when the vehicle needs to be charged, the service area may be a parking space at the charging pile, and the inner boundary of the service area is the boundary near the charging pile, and the corresponding separation distance is the distance between the vehicle and the charging pile. Among them, the ranging sensor can be implemented based on any type of ranging technology, for example, UWB (Ultra-Wide Band), ultrasonic ranging distance, laser ranging technology, etc., this manual does not limit this .
在一实施例中,服务系统可以在服务区域处设有通信终端,该通信终端可与车辆侧设备之间建立通讯连接,使得车辆侧设备可以基于该通讯连接向通信终端发送通知消息。其中,该通讯连接可以基于近场通讯技术而建立,比如该近场通讯技术可以包括蓝牙通讯技术、NFC通讯技术等,本说明书并不对此进行限制。In an embodiment, the service system may be provided with a communication terminal at the service area, and the communication terminal may establish a communication connection with the vehicle-side device, so that the vehicle-side device may send a notification message to the communication terminal based on the communication connection. The communication connection may be established based on near-field communication technology. For example, the near-field communication technology may include Bluetooth communication technology, NFC communication technology, etc. This specification does not limit this.
在一实施例中,当计费流程启动后,服务系统可以直接启动计费;例如,在路边停车位的停车场景下,车辆驶入停车位后可以发出通知消息,使得服务系统立即启动计费。或者,当计费流程启动后,只是表明服务系统可以随时启动计费,但服务系统可以根据实际情况确定是否启动计费;例如,在充电场景下,服务系统可以在确定充电插头已经与车辆上的充电口连接的情况下启动计费;再例如,在加油场景下,服务系统可以在确定加油枪已经插入车辆上的加油口的情况下启动计费。In one embodiment, after the charging process is started, the service system can directly start charging; for example, in the parking lot scene of on-street parking spaces, a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee. Or, when the charging process is started, it only indicates that the service system can start charging at any time, but the service system can determine whether to start charging according to the actual situation; for example, in a charging scenario, the service system can determine that the charging plug has been connected to the vehicle Charging is started when the charging port is connected; for another example, in the fueling scenario, the service system can start charging when it is determined that the fuel gun has been inserted into the fueling port on the vehicle.
在一实施例中,对于诸如停车场景、充电场景等计时收费的场景,车辆侧设备可以根据所述通知消息的发送时刻和所述服务费用数额的接收时刻,验证所述服务费用数额的合理性;例如,车辆侧设备可以根据发送时刻和接收时刻确定出相应的服务时长,并 结合服务单价计算出相应费用数值,当该费用数值与上述的服务费用数额之间的差额不大于预设数值时,可以判定服务费用数额合理,而当差额大于预设数值时,可以判定所述服务费用数额不合理,从而终止或避免触发所述资产转移操作,并由驾乘用户与相关服务人员进行核对与结算。In an embodiment, for scenes such as parking lot scenes, charging scenes, and so on, the vehicle-side device may verify the reasonableness of the service charge amount based on the sending moment of the notification message and the receiving moment of the service charge amount ; For example, the vehicle-side device can determine the corresponding service duration according to the sending time and receiving time, and calculate the corresponding fee value in combination with the unit price of the service, when the difference between the fee value and the above service fee amount is not greater than the preset value , It can be determined that the amount of service fees is reasonable, and when the difference is greater than the preset value, it can be determined that the amount of service fees is unreasonable, so as to terminate or avoid triggering the asset transfer operation, and the driving user and the relevant service personnel to check and Settlement.
步骤104,通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。 Step 104, through the corresponding first node of the vehicle side device on the blockchain, cooperate with the corresponding second node of the service system on the blockchain to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
在一实施例中,通过第一节点与第二节点之间配合实现资产凭证的转移,实现了对车辆所享服务的自动扣费,不仅无需驾乘用户或服务人员主动参与、简化操作,而且处理过程是基于实际数据而自动完成,可以避免人为因素的影响,确保高效、准确地完成扣费。In one embodiment, through the cooperation between the first node and the second node to realize the transfer of asset credentials, automatic deduction of services enjoyed by the vehicle is realized, which not only does not require the active participation of the driving user or service personnel, and simplifies the operation, but also The processing process is automatically completed based on actual data, which can avoid the influence of human factors and ensure that the deduction is completed efficiently and accurately.
在一实施例中,车辆侧设备可以根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;然后,车辆侧设备可以通过所述第一节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。其中,付款确认信息中包含车辆侧设备确认付款的相关信息,比如车辆侧设备对付款额(等于服务费用数额)的签名信息等;收款确认信息中包含服务系统确认收款的相关信息,比如服务系统对收款额(等于服务费用数额)的签名信息等。In an embodiment, the vehicle-side device may generate an asset transfer transaction based on the service fee amount, the payment confirmation information generated by the first node, and the payment confirmation information generated by the second node; then, the vehicle-side device The asset transfer transaction can be submitted to the blockchain through the first node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and the attribution The asset certificate in the service system increases the service fee amount. Among them, the payment confirmation information contains information about the confirmation of the payment by the vehicle-side device, such as the signature information of the vehicle-side device on the payment amount (equal to the amount of the service fee), etc.; the payment confirmation information contains the relevant information of the service system to confirm the payment, such as The service system's signature information on the amount of collection (equal to the amount of service charges), etc.
在一实施例中,车辆侧设备可以通过所述第一节点生成付款确认信息,以提供至所述第二节点,使得所述第二节点根据所述服务费用数额、所述付款确认信息和所述第二节点生成的收款确认信息而生成资产转移交易,且所述资产转移交易被所述第二节点提交至区块链;其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。In an embodiment, the vehicle-side device may generate payment confirmation information through the first node to provide to the second node, so that the second node may determine the service fee amount, the payment confirmation information, and the Generate the asset transfer transaction by the receipt confirmation information generated by the second node, and the asset transfer transaction is submitted to the blockchain by the second node; wherein, after the asset transfer transaction is completed, it belongs to the vehicle The asset certificate of the side device reduces the amount of the service fee, and the asset certificate attributed to the service system increases the amount of the service fee.
在一实施例中,车辆侧设备可以通过所述第一节点向区块链中提交第一交易,所述第一交易包含所述第一节点生成的付款确认信息,且所述第一交易声明了调用所述区块链中的智能合约;其中,所述智能合约被用于根据所述付款确认信息和收款确认信息执行所述资产转移操作,所述收款确认信息由所述第二节点生成并通过第二交易提交至所述区块链。换言之,由车辆侧设备通过该第一节点提交付款确认信息、服务系统通过第二节点提交收款确认信息,从而由作为付款方的车辆侧设备、作为收款方的服务系统分 别执行部分操作,并最终协同完成资产转移。In an embodiment, the vehicle-side device may submit a first transaction to the blockchain through the first node, the first transaction includes payment confirmation information generated by the first node, and the first transaction statement To call a smart contract in the blockchain; wherein the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is determined by the second The node generates and submits to the blockchain through a second transaction. In other words, the vehicle-side device submits payment confirmation information through the first node, and the service system submits the payment confirmation information through the second node, so that the vehicle-side device as the payer and the service system as the payee perform some operations, And eventually coordinated to complete the asset transfer.
在一实施例中,区块链中的各个区块链节点分别维护有区块链账本,各个区块链账本的内容统一、记录有全量的区块链交易数据;例如,区块链账本中可以记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额。剩余信用额度即为车辆侧设备对应的信用额度的剩余值;其中,该信用额度与车辆侧设备对应的用户的信用状况相关,比如信用状况越好时对应的信用额度越高。那么,所述资产转移操作可以用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。换言之,当剩余信用额度足够支付服务费用数额时,可以优先扣除用户的剩余信用额度,那么尤其是当用户尚未将链外资产兑换为区块链上专用的资产凭证的情况下,可以帮助用户快速完成支付。In an embodiment, each blockchain node in the blockchain maintains a blockchain ledger, the content of each blockchain ledger is unified, and a full amount of blockchain transaction data is recorded; for example, in the blockchain ledger The remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system may be recorded. The remaining credit limit is the remaining value of the credit limit corresponding to the vehicle-side device; where the credit limit is related to the credit status of the user corresponding to the vehicle-side device, for example, the better the credit status, the higher the corresponding credit limit. Then, the asset transfer operation can be used to: when the remaining credit limit is not less than the service fee amount, deduct the service fee amount from the remaining credit limit recorded in the blockchain ledger, so that The account balance recorded in the blockchain ledger increases the service fee amount. In other words, when the remaining credit limit is sufficient to pay the service fee amount, the user's remaining credit limit can be deducted first, so especially when the user has not converted the off-chain assets into a dedicated asset certificate on the blockchain, it can help the user quickly Complete the payment.
图2是一示例性实施例提供的另一种服务费用的支付方法的流程图。如图2所示,该方法应用于服务系统,可以包括以下步骤:FIG. 2 is a flowchart of another service fee payment method provided by an exemplary embodiment. As shown in FIG. 2, this method is applied to a service system and may include the following steps:
步骤202,针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费用数额。Step 202: For the vehicle in the service area, send the service fee amount to the corresponding vehicle-side device.
在一实施例中,车辆侧设备可以包括与车辆对应的任意电子设备,本说明书并不对此进行限制。例如,车辆侧设备可以包括车辆上的预安装设备,譬如该预安装设备可以包括车辆的中控设备等。再例如,车辆侧设备可以包括车辆上的后安装设备,譬如该后安装设备可以包括车辆上的行车记录仪等。又例如,车辆侧设备可以包括车辆的驾乘用户(驾驶员或乘客)使用的用户设备,譬如该用户设备可以包括手机、平板设备、笔记本电脑、可穿戴设备(如智能手表、智能眼镜等)等。In an embodiment, the vehicle-side device may include any electronic device corresponding to the vehicle, which is not limited in this specification. For example, the vehicle-side device may include a pre-installed device on the vehicle. For example, the pre-installed device may include a vehicle's central control device. For another example, the vehicle-side device may include a rear-mounted device on the vehicle, for example, the rear-mounted device may include a driving recorder on the vehicle. For another example, the vehicle-side device may include a user device used by a driving user (driver or passenger) of the vehicle, for example, the user device may include a mobile phone, a tablet device, a notebook computer, and a wearable device (such as a smart watch, smart glasses, etc.) Wait.
在一实施例中,车辆传感器可以预安装于车辆上,也可以后安装于车辆上,本说明书并不对此进行限制。车辆传感器、车辆侧设备可以分别接入车辆上的ECU,使得车辆侧设备可以基于车辆传感器的检测数据而确定车辆是否已驶入服务区域;在该场景下,可以由ECU根据检测数据得出车辆是否已驶入服务区域的结论后,将结论告知车辆侧设备,或者ECU可以将检测数据发送至车辆侧设备、由车辆侧设备进行判断。或者,车辆传感器与车辆侧设备可以不经过ECU而实现单独连接,并由车辆侧设备根据检测数据确定车辆是否已驶入服务区域。In an embodiment, the vehicle sensor may be pre-installed on the vehicle or may be installed on the vehicle afterwards, which is not limited in this specification. The vehicle sensor and the vehicle-side device can be respectively connected to the ECU on the vehicle, so that the vehicle-side device can determine whether the vehicle has entered the service area based on the detection data of the vehicle sensor; in this scenario, the ECU can derive the vehicle based on the detection data After the conclusion of whether the vehicle has entered the service area, inform the vehicle-side device of the conclusion, or the ECU can send the detection data to the vehicle-side device for judgment by the vehicle-side device. Alternatively, the vehicle sensor and the vehicle-side device may be separately connected without going through the ECU, and the vehicle-side device determines whether the vehicle has entered the service area based on the detection data.
在一实施例中,服务系统可以在服务区域处设有通信终端,该通信终端可与车辆侧设备之间建立通讯连接,使得车辆侧设备可以基于该通讯连接向通信终端发送通知消息。 其中,该通讯连接可以基于近场通讯技术而建立,比如该近场通讯技术可以包括蓝牙通讯技术、NFC通讯技术等,本说明书并不对此进行限制。In an embodiment, the service system may be provided with a communication terminal at the service area, and the communication terminal may establish a communication connection with the vehicle-side device, so that the vehicle-side device may send a notification message to the communication terminal based on the communication connection. The communication connection may be established based on near-field communication technology. For example, the near-field communication technology may include Bluetooth communication technology, NFC communication technology, etc. This specification does not limit this.
在一实施例中,服务区域处可以设有传感器,使得该传感器可以用于检测服务区域内的车辆;如果服务系统基于该传感器传回的检测数据,确定所述车辆侧设备对应的车辆驶入所述服务区域,那么服务系统可以启动计费流程,以计算所述服务费用数额。例如,服务区域处的传感器可以包括测距传感器、摄像头、红外传感器等,本说明书并不对此进行限制。In an embodiment, a sensor may be provided at the service area so that the sensor can be used to detect the vehicle in the service area; if the service system determines that the vehicle corresponding to the vehicle-side device is driving based on the detection data returned by the sensor For the service area, then the service system can start a billing process to calculate the service fee amount. For example, the sensors at the service area may include a distance measuring sensor, a camera, an infrared sensor, etc., which is not limited in this specification.
在一实施例中,车辆上可以设有上述的车辆传感器,而服务区域也可以同时设有上述的传感器,使得车辆侧设备、服务系统可以分别实施上述实施例中所述的检测方案,以确定车辆是否驶入服务区域,而服务系统可以根据车辆侧设备发送的通知消息或者服务区域处的传感器得出的检测结果,确定是否启动计费流程。In one embodiment, the above-mentioned vehicle sensors may be provided on the vehicle, and the above-mentioned sensors may also be provided in the service area, so that the vehicle-side equipment and the service system can implement the detection schemes described in the above-mentioned embodiments, respectively, to determine Whether the vehicle is driving into the service area, and the service system can determine whether to start the charging process according to the notification message sent by the vehicle-side device or the detection result obtained by the sensor at the service area.
在一实施例中,当计费流程启动后,服务系统可以直接启动计费;例如,在路边停车位的停车场景下,车辆驶入停车位后可以发出通知消息,使得服务系统立即启动计费。或者,当计费流程启动后,只是表明服务系统可以随时启动计费,但服务系统可以根据实际情况确定是否启动计费;例如,在充电场景下,服务系统可以在确定充电插头已经与车辆上的充电口连接的情况下启动计费;再例如,在加油场景下,服务系统可以在确定加油枪已经插入车辆上的加油口的情况下启动计费。In one embodiment, after the charging process is started, the service system can directly start charging; for example, in the parking lot scene of on-street parking spaces, a notification message can be sent after the vehicle enters the parking space, so that the service system immediately starts accounting fee. Or, when the charging process is started, it only indicates that the service system can start charging at any time, but the service system can determine whether to start charging according to the actual situation; for example, in a charging scenario, the service system can determine that the charging plug has been connected to the vehicle Charging is started when the charging port is connected; for another example, in the fueling scenario, the service system can start charging when it is determined that the fuel gun has been inserted into the fueling port on the vehicle.
步骤204,通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。 Step 204, through the corresponding second node of the service system on the blockchain, cooperate with the first node on the blockchain of the vehicle-side device to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
在一实施例中,通过第一节点与第二节点之间配合实现资产凭证的转移,实现了对车辆所享服务的自动扣费,不仅无需驾乘用户或服务人员主动参与、简化操作,而且处理过程是基于实际数据而自动完成,可以避免人为因素的影响,确保高效、准确地完成扣费。In one embodiment, through the cooperation between the first node and the second node to realize the transfer of asset credentials, automatic deduction of services enjoyed by the vehicle is realized, which not only does not require the active participation of the driving user or service personnel, and simplifies the operation, but also The processing process is automatically completed based on actual data, which can avoid the influence of human factors and ensure that the deduction is completed efficiently and accurately.
在一实施例中,服务系统可以通过所述第二节点生成收款确认信息,以提供至所述第一节点,使得所述第一节点根据所述服务费用数额、所述收款确认信息和所述第一节点生成的付款确认信息而生成资产转移交易,且所述资产转移交易被所述第一节点提交至区块链;其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。其中,付 款确认信息中包含车辆侧设备确认付款的相关信息,比如车辆侧设备对付款额(等于服务费用数额)的签名信息等;收款确认信息中包含服务系统确认收款的相关信息,比如服务系统对收款额(等于服务费用数额)的签名信息等。In an embodiment, the service system can generate payment confirmation information through the second node to provide to the first node, so that the first node can determine the payment fee, the payment confirmation information and the The payment confirmation information generated by the first node generates an asset transfer transaction, and the asset transfer transaction is submitted to the blockchain by the first node; wherein, when the asset transfer transaction is completed, it belongs to the vehicle The asset certificate of the side device reduces the amount of the service fee, and the asset certificate attributed to the service system increases the amount of the service fee. Among them, the payment confirmation information contains information about the confirmation of the payment by the vehicle-side device, such as the signature information of the vehicle-side device on the payment amount (equal to the amount of the service fee), etc.; the payment confirmation information contains the relevant information of the service system to confirm the payment, such as The service system's signature information on the amount of collection (equal to the amount of service charges), etc.
在一实施例中,服务系统可以根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;然后,服务系统可以通过所述第二节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。In an embodiment, the service system may generate an asset transfer transaction based on the service fee amount, the payment confirmation information generated by the first node, and the payment confirmation information generated by the second node; then, the service system may use The second node submits the asset transfer transaction to the blockchain; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to the The asset certificate of the service system increases the amount of the service fee.
在一实施例中,服务系统可以通过所述第二节点向区块链中提交第二交易,所述第二交易包含所述第二节点生成的收款确认信息,且所述第二交易声明了调用所述区块链中的智能合约;其中,所述智能合约被用于根据所述收款确认信息和付款确认信息执行所述资产转移操作,所述付款确认信息由所述第一节点生成并通过第一交易提交至所述区块链。换言之,由车辆侧设备通过该第一节点提交付款确认信息、服务系统通过第二节点提交收款确认信息,从而由作为付款方的车辆侧设备、作为收款方的服务系统分别执行部分操作,并最终协同完成资产转移。In an embodiment, the service system may submit a second transaction to the blockchain through the second node, the second transaction includes payment confirmation information generated by the second node, and the second transaction statement To call a smart contract in the blockchain; wherein the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is provided by the first node Generate and submit to the blockchain through the first transaction. In other words, the vehicle-side device submits payment confirmation information through the first node, and the service system submits the payment confirmation information through the second node, so that the vehicle-side device as the payer and the service system as the payee perform some operations, And eventually coordinated to complete the asset transfer.
在一实施例中,区块链中的各个区块链节点分别维护有区块链账本,各个区块链账本的内容统一、记录有全量的区块链交易数据;例如,区块链账本中可以记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额。剩余信用额度即为车辆侧设备对应的信用额度的剩余值;其中,该信用额度与车辆侧设备对应的用户的信用状况相关,比如信用状况越好时对应的信用额度越高。那么,所述资产转移操作可以用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。换言之,当剩余信用额度足够支付服务费用数额时,可以优先扣除用户的剩余信用额度,那么尤其是当用户尚未将链外资产兑换为区块链上专用的资产凭证的情况下,可以帮助用户快速完成支付。In an embodiment, each blockchain node in the blockchain maintains a blockchain ledger, the content of each blockchain ledger is unified, and a full amount of blockchain transaction data is recorded; for example, in the blockchain ledger The remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system may be recorded. The remaining credit limit is the remaining value of the credit limit corresponding to the vehicle-side device; where the credit limit is related to the credit status of the user corresponding to the vehicle-side device, for example, the better the credit status, the higher the corresponding credit limit. Then, the asset transfer operation can be used to: when the remaining credit limit is not less than the service fee amount, deduct the service fee amount from the remaining credit limit recorded in the blockchain ledger, so that The account balance recorded in the blockchain ledger increases the service fee amount. In other words, when the remaining credit limit is sufficient to pay the service fee amount, the user's remaining credit limit can be deducted first, so especially when the user has not converted the off-chain assets into a dedicated asset certificate on the blockchain, it can help the user quickly Complete the payment.
需要说明的是:在本说明书中所描述的交易(transfer),是指用户通过区块链的客户端创建,并需要最终发布至区块链的分布式数据库中的一笔数据。其中,区块链中的交易,存在狭义的交易以及广义的交易之分。狭义的交易是指用户向区块链发布的一笔价值转移;例如,在传统的比特币区块链网络中,交易可以是用户在区块链中发起的一笔转账。而广义的交易是指用户向区块链发布的一笔具有业务意图的业务数据;例如, 运营方可以基于实际的业务需求搭建一个联盟链,依托于联盟链部署一些与价值转移无关的其它类型的在线业务(比如,租房业务、车辆调度业务、保险理赔业务、信用服务、医疗服务等),而在这类联盟链中,交易可以是用户在联盟链中发布的一笔具有业务意图的业务消息或者业务请求。It should be noted that the transfer described in this specification refers to a piece of data that a user creates through a client of the blockchain and needs to be finally released to the distributed database of the blockchain. Among them, there are transactions in the narrow sense and transactions in the broad sense in the blockchain. The narrow sense of the transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain. The generalized transaction refers to a piece of business data with business intent published by the user to the blockchain; for example, the operator can build an alliance chain based on actual business needs, relying on the alliance chain to deploy some other types not related to value transfer Online business (for example, rental business, vehicle scheduling business, insurance claims business, credit service, medical service, etc.), and in this type of alliance chain, the transaction can be a business with business intent issued by the user in the alliance chain Message or business request.
为了便于理解,以车辆在充电站使用充电服务为例,对本说明书一个或多个实施例的技术方案进行说明。图3是一示例性实施例提供的一种在充电站使用充电服务的示意图。如图3所示,充电站设有充电桩1、充电桩2……充电桩n等,这些充电桩均受控于服务系统。在每一充电桩内部或外部设有相关联的通信终端,该通信终端一方面可供充电桩与服务系统进行通信,另一方面可供充电桩与车辆上的车辆侧设备进行通信。For ease of understanding, the technical solutions of one or more embodiments of this specification will be described by taking the charging service of a vehicle at a charging station as an example. FIG. 3 is a schematic diagram of using a charging service at a charging station provided by an exemplary embodiment. As shown in Figure 3, the charging station is equipped with charging pile 1, charging pile 2, ... charging pile n, etc. These charging piles are all controlled by the service system. An associated communication terminal is provided inside or outside each charging pile. The communication terminal can be used for communication between the charging pile and the service system on the one hand, and communication between the charging pile and the vehicle-side equipment on the other hand.
在一实施例中,通过由车辆侧设备与服务系统之间进行配合,可以基于区块链实现充电后的自动付费。付费操作实际上是从车辆侧设备对应的账户向服务系统对应的账户进行资产或资产凭证的转移;例如,基于区块链实现的付费操作应当由设备侧设备对应的区块链账户向服务系统对应的区块链账户进行资产或资产凭证的转移,这就需要为车辆侧设备配置区块链账户,并确保区块链账户中存在能够转移的资产或资产凭证。In an embodiment, through cooperation between the vehicle-side device and the service system, automatic payment after charging can be realized based on the blockchain. The payment operation is actually the transfer of assets or asset credentials from the account corresponding to the vehicle-side device to the account corresponding to the service system; for example, the payment operation based on the blockchain should be transferred from the blockchain account corresponding to the device-side device to the service system The corresponding blockchain account transfers assets or asset credentials. This requires configuring a blockchain account for the vehicle-side device and ensuring that there are assets or asset credentials that can be transferred in the blockchain account.
例如,图4是一示例性实施例提供的一种为用户设备配置区块链账户的示意图。如图4所示,假定车辆侧设备为驾乘用户使用的用户设备,譬如该用户设备可以为手机等,相关交互过程可以包括以下步骤:For example, FIG. 4 is a schematic diagram of configuring a blockchain account for a user device according to an exemplary embodiment. As shown in FIG. 4, it is assumed that the vehicle-side device is a user device used by a driving user, for example, the user device may be a mobile phone, etc. The relevant interaction process may include the following steps:
步骤401,用户设备生成公私钥对。Step 401: The user equipment generates a public and private key pair.
在一实施例中,用户设备可以基于相关技术中的密钥生成技术,生成相应的公私钥对,此处不再赘述。In an embodiment, the user equipment may generate a corresponding public and private key pair based on the key generation technology in the related technology, which will not be repeated here.
步骤402,用户设备将生成的公私钥对发送至CA(Certificate Authority,证书颁发机构),并接收CA返回的数字证书。In step 402, the user equipment sends the generated public and private key pair to a CA (Certificate Authority) and receives the digital certificate returned by the CA.
步骤403,用户设备将链外账户与数字证书发送至区块链节点。Step 403, the user equipment sends the off-chain account and the digital certificate to the blockchain node.
在一实施例中,链外账户是指用户设备上登录的、区块链外的账户,比如驾乘用户在某支付机构处拥有的账户,区别于在区块链上拥有的区块链账户。In one embodiment, the off-chain account refers to an account that is logged on the user's device and is off-blockchain, such as an account owned by a driving user at a payment institution, which is different from the block-chain account owned on the block chain. .
步骤404,区块链节点将用户设备提供的链外账户与区块链账户相关联。Step 404, the blockchain node associates the off-chain account provided by the user equipment with the blockchain account.
在一实施例中,区块链节点可以基于数字证书对链外账户予以确认,并基于数字证书中的公钥生成区块链账户,从而将链外账户与该区块链账户相关联,相当于为驾乘用 户创建了相应的区块链账户,使得驾乘用户可以基于该区块链账户完成基于区块链的自动付费操作。In one embodiment, the blockchain node can confirm the off-chain account based on the digital certificate and generate a blockchain account based on the public key in the digital certificate, thereby associating the off-chain account with the blockchain account, which is equivalent Yu created a corresponding blockchain account for the driving user, so that the driving user can complete the automatic payment operation based on the blockchain based on the blockchain account.
步骤405,区块链节点将区块链账户的信息返回至用户设备。Step 405, the blockchain node returns the information of the blockchain account to the user device.
步骤406,用户设备向区块链节点发送兑换金额。Step 406: The user equipment sends the exchange amount to the blockchain node.
在一实施例中,驾乘用户可以通过用户设备设置兑换金额,以将驾乘用户在链外账户中持有的链外资产(如货币)被兑换为区块链账户中的token(代币),该token被用于区块链中的转账过程。In one embodiment, the rider user can set the exchange amount through the user device to convert the off-chain assets (such as currency) held by the rider user in the off-chain account into a token (token) in the blockchain account ), the token is used in the transfer process in the blockchain.
步骤407,区块链节点指示相关链外对象扣除链外账户中的链外资金,并向区块链账户中分配相应数额的token。Step 407, the blockchain node instructs the relevant off-chain object to deduct the off-chain funds in the off-chain account, and allocates a corresponding amount of tokens to the blockchain account.
步骤408,区块链节点向用户设备返回token分配结果。In step 408, the blockchain node returns the token distribution result to the user equipment.
在一实施例中,根据驾乘用户指示的兑换金额,区块链节点可以向链外对象发送资金扣除指令,以使得链外对象从驾乘用户对应的链外账户中扣除相应数额的链外资金;以及,区块链节点可以向驾乘用户对应的区块链账户中分配相应数额的token,从而相当于将链外资金兑换为token。In an embodiment, according to the exchange amount indicated by the driving user, the blockchain node may send a fund deduction instruction to the off-chain object, so that the off-chain object deducts the corresponding amount from the off-chain account corresponding to the driving user. Funds; and, the blockchain node can allocate the corresponding amount of tokens to the corresponding blockchain account of the driving user, which is equivalent to converting the off-chain funds into tokens.
当驾乘用户携带上述用户设备进入车辆后,可以通过该用户设备与服务系统进行交互,从而实现本说明书的支付方案。或者,对于车辆上预安装的车载终端等,驾乘用户可以在车载终端上进行账号登录,并基于如图4所示的交互过程实现对区块链账户的配置以及兑换指定数量的token,然后由车载终端与服务系统进行交互实现本说明书的支付方案,此处不再赘述。When the driving user carries the above user equipment into the vehicle, he can interact with the service system through the user equipment, so as to realize the payment scheme of this specification. Or, for pre-installed on-vehicle terminals on the vehicle, the rider can log in with an account on the on-board terminal, and configure the blockchain account and exchange a specified number of tokens based on the interactive process shown in Figure 4, and then The vehicle-mounted terminal interacts with the service system to implement the payment scheme of this specification, which will not be repeated here.
而对于车辆上的部分类型的车辆侧设备,比如行车记录仪等,可以由用户设备对行车记录仪进行授权,以使得行车记录仪能够脱离用户设备而与服务系统进行交互实现本说明书的支付方案。图5是一示例性实施例提供的一种设备授权的示意图。如图5所示,用户设备向行车记录仪进行授权的交互过程可以包括以下步骤:For some types of vehicle-side equipment on the vehicle, such as a driving recorder, the driving recorder can be authorized by the user equipment, so that the driving recorder can be separated from the user equipment and interact with the service system to realize the payment scheme of this specification . FIG. 5 is a schematic diagram of device authorization provided by an exemplary embodiment. As shown in FIG. 5, the interactive process for the user equipment to authorize the driving recorder may include the following steps:
步骤501,在用户设备与行车记录仪之间建立通讯连接。Step 501: Establish a communication connection between the user equipment and the driving recorder.
在一实施例中,用户设备与行车记录仪之间可以建立基于BLE的通讯连接;或者,还可以采用其他协议的通讯连接,本说明书并不对此进行限制。以BLE通讯连接为例,用户设备与行车记录仪之间进行在建立连接后进行配对绑定,比如将用户设备设置为BLE主设备、将行车记录仪设置为BLE从设备,以便于在后续过程中能够实现快速的 配对连接。In an embodiment, a communication connection based on BLE may be established between the user equipment and the driving recorder; or, a communication connection of other protocols may be used, which is not limited in this specification. Taking the BLE communication connection as an example, the user device and the driving recorder are paired and bound after the connection is established, such as setting the user device as a BLE master device and the driving recorder as a BLE slave device, so as to facilitate subsequent processes Can achieve fast pairing connection.
步骤502,用户设备将区块链账户与数字证书发送至行车记录仪。Step 502, the user equipment sends the blockchain account and the digital certificate to the driving recorder.
步骤503,行车记录仪在区块链节点处进行注册。Step 503, the driving recorder registers at the blockchain node.
步骤504,区块链节点将链外账户、区块链账户与设备ID相关联。Step 504, the blockchain node associates the off-chain account, the blockchain account with the device ID.
在一实施例中,行车记录仪将自身的设备ID与用户设备提供的区块链账户、数字证书发送至区块链节点,而区块链节点根据数字证书、区块链账户可以确定:用户设备希望向设备ID对应的电子设备进行授权,因而将相应的链外账户、区块链账户与该设备ID相关联。In one embodiment, the driving recorder sends its own device ID, the blockchain account and the digital certificate provided by the user equipment to the blockchain node, and the blockchain node can determine the user based on the digital certificate and the blockchain account: The device wants to authorize the electronic device corresponding to the device ID, and thus associates the corresponding off-chain account and blockchain account with the device ID.
步骤505,区块链节点向行车记录仪返回注册结果,而形成记录仪可以向用户设备发送绑定成功消息。Step 505, the blockchain node returns the registration result to the driving recorder, and the forming recorder can send a binding success message to the user equipment.
图6是一示例性实施例提供的一种车辆侧设备与服务系统之间基于区块链实现自动付费的交互示意图。如图6所示,交互过程可以包括以下步骤:FIG. 6 is a schematic diagram of an interaction between a vehicle-side device and a service system to realize automatic payment based on a blockchain provided by an exemplary embodiment. As shown in Figure 6, the interaction process may include the following steps:
步骤601,车辆侧设备检测间隔距离。Step 601, the vehicle-side device detects the separation distance.
在一实施例中,车辆侧设备可以包括上述的用户设备、车载设备或诸如行车记录仪等设备,本说明书并不对此进行限制。In an embodiment, the vehicle-side device may include the above-mentioned user equipment, in-vehicle device, or device such as a driving recorder, which is not limited in this specification.
在一实施例中,车辆上配置有测距传感器,使得车辆在驶入某一充电桩对应的停车位时,可以通过该测距传感器检测车辆与充电桩之间的间隔距离,并将检测数据传输至车辆侧设备。In one embodiment, the vehicle is equipped with a distance measuring sensor, so that when the vehicle enters a parking space corresponding to a charging pile, the distance sensor can be used to detect the distance between the vehicle and the charging pile, and the detection data Transmission to vehicle side equipment.
步骤602,当间隔距离不大于预设距离时,车辆侧设备向服务系统发送通知消息。Step 602: When the separation distance is not greater than the preset distance, the vehicle-side device sends a notification message to the service system.
在一实施例中,当间隔距离不大于预设距离时,表明车辆已经驶入充电桩对应的停车位,做好了充电准备。车辆侧设备可以与服务系统之间建立诸如BLE连接,使得车辆侧设备可以向服务系统发送通知消息,以告知其自身已经准备就绪,可以开始充电。In an embodiment, when the separation distance is not greater than the preset distance, it indicates that the vehicle has entered the parking space corresponding to the charging pile and is ready for charging. The vehicle-side device can establish a connection such as BLE with the service system, so that the vehicle-side device can send a notification message to the service system to notify itself that it is ready to start charging.
步骤603,服务系统根据收到的通知消息,启动计费流程。Step 603, the service system starts the charging process according to the received notification message.
在一实施例中,计费流程启动后,表明服务系统启动了对车辆进行计费的权限,并根据实际情况确定充电是否已经开始或终止。In an embodiment, after the charging process starts, it indicates that the service system has started the right to charge the vehicle, and determines whether charging has started or terminated according to the actual situation.
步骤604,当充电开始后,服务系统启动计费。Step 604, when charging starts, the service system starts charging.
在一实施例中,充电桩处可以设有自动化接口,使得服务系统收到通知消息后, 可以向相应的充电桩发送触发指令,使得充电桩处的自动化接口可以自动接入车辆的充电口。In an embodiment, an automatic interface may be provided at the charging pile, so that after receiving the notification message, the service system may send a trigger instruction to the corresponding charging pile, so that the automatic interface at the charging pile can be automatically connected to the charging port of the vehicle.
在一实施例中,可由驾乘人员或服务人员手动将充电桩处的充电接口与车辆上的充电口进行对接,从而启动充电。In one embodiment, the driver or the service personnel can manually dock the charging interface at the charging pile with the charging port on the vehicle to start charging.
在一实施例中,充电桩可以检测到充电是否已经开始,并在确认充电开始后告知服务系统,使得服务系统可以启动计费。在另一实施例中,充电桩处设有启动按键,使得驾乘人员或服务人员在将充电桩上的充电接口与车辆上的充电口对接后,通过触发该启动按键,使得充电桩一方面开始向车辆供电,另一方面告知服务系统、使得服务系统启动计费。In one embodiment, the charging pile can detect whether charging has started, and notify the service system after confirming the start of charging, so that the service system can start charging. In another embodiment, a start button is provided at the charging pile, so that after the driver or service personnel docks the charging interface on the charging pile with the charging port on the vehicle, the trigger button is triggered to make the charging pile on the one hand Start to supply power to the vehicle, and on the other hand inform the service system to enable the service system to start charging.
步骤605,当充电终止后,服务系统计算充电费用。Step 605, when charging is terminated, the service system calculates the charging fee.
在一实施例中,充电桩可以检测到充电是否已经终止,并在确认充电终止后告知服务系统,使得服务系统终止计费并计算充电费用。在另一实施例中,充电桩处设有终止按键,使得驾乘人员或服务人员通过触发该终止按键,使得充电桩一方面终止向车辆供电,另一方面告知服务系统、使得服务系统终止计费并计算充电费用。In one embodiment, the charging pile can detect whether the charging has been terminated, and notify the service system after confirming the termination of the charging, so that the service system terminates the charging and calculates the charging fee. In another embodiment, a termination button is provided at the charging pile, so that the driver or service personnel can trigger the termination button to cause the charging pile to terminate the power supply to the vehicle on the one hand, and notify the service system on the other hand to cause the service system to terminate the meter Charge and calculate the charge.
在一实施例中,服务系统可以按照车辆的充电时长(根据充电开始时刻与充电终止时刻计算得到)与预定义的充电单价,计算出相应的充电费用。当然,服务系统还可以根据消耗的电量等进行计算,本说明书并不对此进行限制。In an embodiment, the service system may calculate the corresponding charging fee according to the charging duration of the vehicle (calculated based on the charging start time and charging end time) and the predefined charging unit price. Of course, the service system can also calculate based on the power consumption, etc., and this specification does not limit this.
步骤606,车辆侧设备收到服务系统发送的充电费用后,对充电费用进行验证。Step 606: After receiving the charging fee sent by the service system, the vehicle-side device verifies the charging fee.
在一实施例中,在车辆侧设备可以在发出通知消息后开始计时、在收到充电费用时终止计时,依此计算出相应的充电时长,并结合预定义的充电单价计算出相应的预估充电费用。相应地,如果服务系统发送的充电费用比预估充电费用更高,且差值大于预设数值,车辆侧设备可以判定费用非正常,从而终止自动付费流程,并提醒驾乘用户人工完成付费。In an embodiment, the device on the vehicle side can start timing after sending out the notification message, and terminate the timing when the charging fee is received, accordingly calculate the corresponding charging duration, and calculate the corresponding estimated in conjunction with the predefined charging unit price Charging costs. Correspondingly, if the charging fee sent by the service system is higher than the estimated charging fee, and the difference is greater than the preset value, the vehicle-side device may determine that the fee is abnormal, thereby terminating the automatic payment process and reminding the driving user to manually complete the payment.
当然,服务系统在充电开始时、充电终止时,还可以分别向车辆侧设备发送开始通知(可以包含充电开始时刻)、终止通知(可以包含充电终止时刻),使得车辆侧设备计算的充电时长更为精准。Of course, the service system can also send a start notification (which can include the charging start time) and a termination notification (which can include the charging end time) to the vehicle-side device at the beginning of charging and at the end of charging, making the charging time calculated by the vehicle-side device longer For precision.
步骤607,在确定充电费用无误后,车辆侧设备与服务系统之间交换账户。Step 607: After determining that the charging fee is correct, the vehicle side device and the service system exchange accounts.
在一实施例中,车辆侧设备可以将自身对应的区块链账户1告知服务系统,并 获得服务系统对应的区块链账户2,以使得在该区块链账户1与区块链账户2之间实施基于区块链的自动付款。In an embodiment, the vehicle-side device may inform the service system of the corresponding blockchain account 1 and obtain the corresponding blockchain account 2 of the service system, so that the blockchain account 1 and the blockchain account 2 Implement automatic payment based on blockchain.
步骤608a,车辆侧设备向区块链提交付款交易。Step 608a, the vehicle-side device submits a payment transaction to the blockchain.
在一实施例中,车辆侧设备被配置为区块链节点,或者车辆侧设备存在对应的区块链节点;车辆侧设备通过区块链节点向区块链中提交付款交易。付款交易中可以包括区块链账户1的地址、区块链账户2的地址、车辆侧设备的付款额(等于上述的付款费用)、车辆侧设备的私钥签名等,表明车辆侧设备确认从区块链账户1向区块链账户2转入对应于付款额的token。In one embodiment, the vehicle-side device is configured as a blockchain node, or the vehicle-side device has a corresponding blockchain node; the vehicle-side device submits a payment transaction to the blockchain through the blockchain node. The payment transaction may include the address of the blockchain account 1, the address of the blockchain account 2, the payment amount of the vehicle-side device (equal to the above payment fee), the private key signature of the vehicle-side device, etc., indicating that the vehicle-side device confirms from The blockchain account 1 transfers the token corresponding to the payment amount to the blockchain account 2.
步骤608b,服务系统向区块链提交收款交易。Step 608b, the service system submits the payment transaction to the blockchain.
在一实施例中,服务系统被配置为区块链节点,或者服务系统存在对应的区块链节点;服务系统通过区块链节点向区块链中提交收款交易。收款交易中可以包括区块链账户1的地址、区块链账户2的地址、服务系统的收款额(等于上述的付款费用)、服务系统的私钥签名等,表明服务系统确认从区块链账户1向区块链账户2转入对应于付款额的token。In one embodiment, the service system is configured as a blockchain node, or there is a corresponding blockchain node in the service system; the service system submits a payment transaction to the blockchain through the blockchain node. The payment transaction can include the address of the blockchain account 1, the address of the blockchain account 2, the amount of payment received by the service system (equal to the above payment fee), the private key signature of the service system, etc., indicating that the service system confirms the slave zone The blockchain account 1 transfers the token corresponding to the payment amount to the blockchain account 2.
步骤609,区块链节点执行token转移,并向车辆侧设备、服务系统返回转账通知。In step 609, the blockchain node performs token transfer and returns the transfer notification to the vehicle-side device and service system.
在一实施例中,根据车辆侧设备、服务系统分别提交的付款交易、收款交易,使得区块链节点基于区块链的原生功能或基于智能合约提供的扩展功能,可以确定车辆侧设备与服务系统之间的付款事件,并且基于车辆侧设备、服务系统分别提供的签名确认,因而可使区块链账户1减少相应数量的token、区块链账户2增加相应数量的token,以完成相应的token转移操作。In one embodiment, according to the payment transaction and collection transaction submitted by the vehicle-side device and the service system, the blockchain node can determine the vehicle-side device and the vehicle-based device based on the native function of the blockchain or the extension function provided by the smart contract. A payment event between service systems, and based on the signature confirmation provided by the vehicle-side device and the service system, respectively, the blockchain account 1 can be reduced by a corresponding number of tokens, and the blockchain account 2 can be increased by a corresponding number of tokens to complete the corresponding Token transfer operation.
在一实施例中,上述付款交易、收款交易以及token转移的相关内容均会被记录于区块链中,并被各个区块链节点分别维护于相应的区块链账本中,使得相关内容无法被篡改,并且无论是驾乘用户或服务系统均可以随时对区块链账本中的内容进行查询和验证,确保付款操作自动、准确、公平地执行。In one embodiment, the relevant content of the above payment transaction, collection transaction and token transfer will be recorded in the blockchain, and each blockchain node will be maintained in the corresponding blockchain ledger, so that the relevant content It cannot be tampered with, and both the driving user and the service system can query and verify the contents of the blockchain ledger at any time to ensure that payment operations are performed automatically, accurately, and fairly.
图7是一示例性实施例提供的一种设备的示意结构图。请参考图7,在硬件层面,该设备包括处理器702、内部总线704、网络接口706、内存708以及非易失性存储器710,当然还可能包括其他业务所需要的硬件。处理器702从非易失性存储器710中读取对应的计算机程序到内存708中然后运行,在逻辑层面上形成服务费用的支付装置。 当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。7 is a schematic structural diagram of a device provided by an exemplary embodiment. Please refer to FIG. 7. At the hardware level, the device includes a processor 702, an internal bus 704, a network interface 706, a memory 708, and a non-volatile memory 710. Of course, it may include hardware required for other services. The processor 702 reads the corresponding computer program from the non-volatile memory 710 into the memory 708 and then runs it to form a service fee payment device at a logical level. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each The logic unit may also be a hardware or logic device.
请参考图8,在软件实施方式中,该服务费用的支付装置应用于车辆侧设备;所述装置可以包括:Please refer to FIG. 8, in the software implementation, the service fee payment device is applied to the vehicle-side device; the device may include:
接收单元801,接收服务系统发送的服务费用数额;The receiving unit 801 receives the service fee amount sent by the service system;
协同单元802,通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit 802, through the corresponding first node of the vehicle side device on the blockchain, cooperates with the corresponding second node of the service system on the blockchain to complete the asset transfer operation, so as to transfer the matching to the service system An asset certificate of the amount of the service fee.
可选的,所述协同单元802具体用于:Optionally, the collaboration unit 802 is specifically used to:
根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction based on the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
通过所述第一节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the first node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
可选的,所述协同单元802具体用于:Optionally, the collaboration unit 802 is specifically used to:
通过所述第一节点生成付款确认信息,以提供至所述第二节点,使得所述第二节点根据所述服务费用数额、所述付款确认信息和所述第二节点生成的收款确认信息而生成资产转移交易,且所述资产转移交易被所述第二节点提交至区块链;Generating payment confirmation information through the first node to provide to the second node, so that the second node generates payment confirmation information generated by the second node according to the service fee amount, the payment confirmation information and the second node An asset transfer transaction is generated, and the asset transfer transaction is submitted to the blockchain by the second node;
其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
可选的,所述协同单元802具体用于:Optionally, the collaboration unit 802 is specifically used to:
通过所述第一节点向区块链中提交第一交易,所述第一交易包含所述第一节点生成的付款确认信息,且所述第一交易声明了调用所述区块链中的智能合约;Submit a first transaction to the blockchain through the first node, the first transaction includes payment confirmation information generated by the first node, and the first transaction declares to call the intelligence in the blockchain contract;
其中,所述智能合约被用于根据所述付款确认信息和收款确认信息执行所述资产转移操作,所述收款确认信息由所述第二节点生成并通过第二交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the payment confirmation information and collection confirmation information, and the collection confirmation information is generated by the second node and submitted to the area through a second transaction Blockchain.
可选的,还包括:Optional, also includes:
获取单元803,获取车辆传感器的检测数据;The obtaining unit 803 obtains the detection data of the vehicle sensor;
发送单元804,当所述检测数据表明车辆驶入所述服务系统对应的服务区域时,向所述服务系统发送通知消息,以指示所述服务系统启动计费流程并得到所述服务费用数额。The sending unit 804, when the detection data indicates that the vehicle is driving into the service area corresponding to the service system, sends a notification message to the service system to instruct the service system to start a billing process and obtain the service fee amount.
可选的,所述车辆传感器包括测距传感器,所述检测数据包括所述车辆与所述服务区域的内侧边界之间的间隔距离;其中,当所述间隔距离小于预设距离时,表明所述车辆驶入所述服务区域。Optionally, the vehicle sensor includes a distance measuring sensor, and the detection data includes a separation distance between the vehicle and an inner boundary of the service area; wherein, when the separation distance is less than a preset distance, it indicates that The vehicle enters the service area.
可选的,还包括:Optional, also includes:
验证单元805,根据所述通知消息的发送时刻和所述服务费用数额的接收时刻,验证所述服务费用数额的合理性;The verification unit 805 verifies the rationality of the service fee amount based on the sending time of the notification message and the receiving moment of the service fee amount;
处理单元806,当所述服务费用数额不合理时,终止或避免触发所述资产转移操作。The processing unit 806, when the amount of the service fee is unreasonable, terminates or avoids triggering the asset transfer operation.
可选的,所述车辆侧设备包括下述任一:所述车辆上的预安装设备、所述车辆上的后安装设备、所述车辆的驾乘用户使用的用户设备。Optionally, the vehicle-side equipment includes any of the following: pre-installed equipment on the vehicle, post-installed equipment on the vehicle, and user equipment used by a rider of the vehicle.
可选的,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。Optionally, the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used when the remaining credit limit is not less than the When the amount of service fees is deducted, the remaining credit limit recorded in the blockchain ledger is deducted from the amount of service fees, and the account balance recorded in the blockchain ledger is increased by the amount of service fees.
图9是一示例性实施例提供的一种设备的示意结构图。请参考图9,在硬件层面,该设备包括处理器902、内部总线904、网络接口906、内存908以及非易失性存储器910,当然还可能包括其他业务所需要的硬件。处理器902从非易失性存储器910中读取对应的计算机程序到内存908中然后运行,在逻辑层面上形成服务费用的支付装置。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。9 is a schematic structural diagram of a device provided by an exemplary embodiment. Please refer to FIG. 9. At the hardware level, the device includes a processor 902, an internal bus 904, a network interface 906, a memory 908, and a non-volatile memory 910. Of course, it may include hardware required for other services. The processor 902 reads the corresponding computer program from the non-volatile memory 910 into the memory 908 and then runs it to form a service fee payment device at a logical level. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each The logic unit may also be a hardware or logic device.
请参考图10,在软件实施方式中,该服务费用的支付装置应用于服务系统;所述装置可以包括:Referring to FIG. 10, in the software implementation, the service fee payment device is applied to the service system; the device may include:
发送单元1001,针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费 用数额;The sending unit 1001 sends the service fee amount to the corresponding vehicle-side device for the vehicles in the service area;
协同单元1002,通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit 1002, through the corresponding second node of the service system on the blockchain, cooperates with the first node of the vehicle-side device on the blockchain to complete the asset transfer operation to transfer the matching to the service system An asset certificate of the amount of the service fee.
可选的,所述协同单元1002具体用于:Optionally, the collaboration unit 1002 is specifically used to:
通过所述第二节点生成收款确认信息,以提供至所述第一节点,使得所述第一节点根据所述服务费用数额、所述收款确认信息和所述第一节点生成的付款确认信息而生成资产转移交易,且所述资产转移交易被所述第一节点提交至区块链;Generating payment confirmation information through the second node to provide to the first node, so that the first node generates the payment confirmation based on the service fee amount, the payment confirmation information and the payment confirmation generated by the first node Information to generate an asset transfer transaction, and the asset transfer transaction is submitted to the blockchain by the first node;
其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
可选的,所述协同单元1002具体用于:Optionally, the collaboration unit 1002 is specifically used to:
根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction based on the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
通过所述第二节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the second node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
可选的,所述协同单元1002具体用于:Optionally, the collaboration unit 1002 is specifically used to:
通过所述第二节点向区块链中提交第二交易,所述第二交易包含所述第二节点生成的收款确认信息,且所述第二交易声明了调用所述区块链中的智能合约;Submit a second transaction to the blockchain through the second node, the second transaction includes the payment confirmation information generated by the second node, and the second transaction declares to call the blockchain Smart contract
其中,所述智能合约被用于根据所述收款确认信息和付款确认信息执行所述资产转移操作,所述付款确认信息由所述第一节点生成并通过第一交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the payment confirmation information and payment confirmation information, and the payment confirmation information is generated by the first node and submitted to the block through a first transaction chain.
可选的,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。Optionally, the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used when the remaining credit limit is not less than the When the amount of service fees is deducted, the remaining credit limit recorded in the blockchain ledger is deducted from the amount of service fees, and the account balance recorded in the blockchain ledger is increased by the amount of service fees.
可选的,还包括:Optional, also includes:
启动单元1003,根据所述车辆侧设备发送的通知消息,启动计费流程以计算所述服务费用数额,其中所述通知消息由所述车辆侧设备在确定相应车辆驶入所述服务区 域时发出;或者,当所述服务区域处的传感器检测到所述车辆侧设备对应的车辆驶入所述服务区域时,启动计费流程以计算所述服务费用数额。The starting unit 1003 starts the charging process to calculate the amount of the service fee according to the notification message sent by the vehicle-side device, wherein the notification message is sent by the vehicle-side device when it is determined that the corresponding vehicle enters the service area Or, when the sensor at the service area detects that the vehicle corresponding to the vehicle-side device is driving into the service area, a charging process is started to calculate the amount of the service fee.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, commodity, or equipment that includes the element.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特 定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only, and is not intended to limit one or more embodiments of this specification. The singular forms "a", "said" and "the" used in one or more embodiments of the present specification and the appended claims are also intended to include the majority forms unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although one or more embodiments in this specification may use the terms first, second, third, etc. to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination".
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. Anything within the spirit and principle of one or more embodiments of this specification, Any modifications, equivalent replacements, improvements, etc., should be included within the scope of protection of one or more embodiments of this specification.

Claims (32)

  1. 一种服务费用的支付方法,应用于车辆侧设备;所述方法包括:A service fee payment method is applied to vehicle-side equipment; the method includes:
    接收服务系统发送的服务费用数额;Receive the amount of service fees sent by the service system;
    通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。Through the corresponding first node of the vehicle-side device on the blockchain, cooperate with the corresponding second node of the service system on the blockchain to complete the asset transfer operation to transfer to the service system matching the service fee The amount of the asset certificate.
  2. 根据权利要求1所述的方法,所述通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,包括:According to the method of claim 1, the first node corresponding to the blockchain on the vehicle side device, in cooperation with the corresponding second node on the blockchain to complete the asset transfer operation of the service system, includes:
    根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction based on the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
    通过所述第一节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the first node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
  3. 根据权利要求1所述的方法,所述通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,包括:The method according to claim 1, wherein the first node corresponding to the blockchain on the vehicle-side device in cooperation with the service system to complete the asset transfer operation on the second node corresponding to the blockchain includes:
    通过所述第一节点生成付款确认信息,以提供至所述第二节点,使得所述第二节点根据所述服务费用数额、所述付款确认信息和所述第二节点生成的收款确认信息而生成资产转移交易,且所述资产转移交易被所述第二节点提交至区块链;Generating payment confirmation information through the first node to provide to the second node, so that the second node generates payment confirmation information generated by the second node according to the service fee amount, the payment confirmation information and the second node An asset transfer transaction is generated, and the asset transfer transaction is submitted to the blockchain by the second node;
    其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  4. 根据权利要求1所述的方法,所述通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,包括:According to the method of claim 1, the first node corresponding to the blockchain on the vehicle side device, in cooperation with the corresponding second node on the blockchain to complete the asset transfer operation of the service system, includes:
    通过所述第一节点向区块链中提交第一交易,所述第一交易包含所述第一节点生成的付款确认信息,且所述第一交易声明了调用所述区块链中的智能合约;Submit a first transaction to the blockchain through the first node, the first transaction includes payment confirmation information generated by the first node, and the first transaction declares to call the intelligence in the blockchain contract;
    其中,所述智能合约被用于根据所述付款确认信息和收款确认信息执行所述资产转移操作,所述收款确认信息由所述第二节点生成并通过第二交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the payment confirmation information and collection confirmation information, and the collection confirmation information is generated by the second node and submitted to the area through a second transaction Blockchain.
  5. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    获取车辆传感器的检测数据;Obtain the detection data of vehicle sensors;
    当所述检测数据表明车辆驶入所述服务系统对应的服务区域时,向所述服务系统发送通知消息,以指示所述服务系统启动计费流程并得到所述服务费用数额。When the detection data indicates that the vehicle is driving into the service area corresponding to the service system, a notification message is sent to the service system to instruct the service system to start a billing process and obtain the service fee amount.
  6. 根据权利要求5所述的方法,所述车辆传感器包括测距传感器,所述检测数据 包括所述车辆与所述服务区域的内侧边界之间的间隔距离;其中,当所述间隔距离小于预设距离时,表明所述车辆驶入所述服务区域。The method according to claim 5, wherein the vehicle sensor includes a distance measuring sensor, and the detection data includes a separation distance between the vehicle and an inner boundary of the service area; wherein, when the separation distance is less than a preset The distance indicates that the vehicle is driving into the service area.
  7. 根据权利要求5所述的方法,还包括:The method of claim 5, further comprising:
    根据所述通知消息的发送时刻和所述服务费用数额的接收时刻,验证所述服务费用数额的合理性;Verify the reasonableness of the service fee amount according to the sending moment of the notification message and the receiving moment of the service fee amount;
    当所述服务费用数额不合理时,终止或避免触发所述资产转移操作。When the amount of the service fee is unreasonable, terminate or avoid triggering the asset transfer operation.
  8. 根据权利要求1所述的方法,所述车辆侧设备包括下述任一:所述车辆上的预安装设备、所述车辆上的后安装设备、所述车辆的驾乘用户使用的用户设备。According to the method of claim 1, the vehicle-side device includes any one of the following: a pre-installed device on the vehicle, a rear-mounted device on the vehicle, and user equipment used by a rider of the vehicle.
  9. 根据权利要求1所述的方法,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。According to the method of claim 1, the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used to: when the remaining credit limit When it is not less than the amount of the service fee, deduct the amount of the service fee from the remaining credit limit recorded on the blockchain ledger, and increase the amount of the service fee from the account balance recorded on the blockchain ledger .
  10. 一种服务费用的支付方法,应用于服务系统;所述方法包括:A service fee payment method applied to a service system; the method includes:
    针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费用数额;For the vehicles in the service area, send the service fee amount to the corresponding vehicle-side equipment;
    通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。Through the corresponding second node of the service system on the blockchain, cooperate with the first node of the vehicle side device on the blockchain to complete the asset transfer operation to transfer to the service system to match the service fee The amount of the asset certificate.
  11. 根据权利要求10所述的方法,所述通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,包括:The method according to claim 10, wherein the second node corresponding to the blockchain through the service system, in cooperation with the vehicle-side device to complete the asset transfer operation on the first node corresponding to the blockchain, includes:
    通过所述第二节点生成收款确认信息,以提供至所述第一节点,使得所述第一节点根据所述服务费用数额、所述收款确认信息和所述第一节点生成的付款确认信息而生成资产转移交易,且所述资产转移交易被所述第一节点提交至区块链;Generating payment confirmation information through the second node to provide to the first node, so that the first node generates the payment confirmation based on the service fee amount, the payment confirmation information and the payment confirmation generated by the first node Information to generate an asset transfer transaction, and the asset transfer transaction is submitted to the blockchain by the first node;
    其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  12. 根据权利要求10所述的方法,所述通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,包括:The method according to claim 10, wherein the second node corresponding to the blockchain through the service system, in cooperation with the vehicle-side device to complete the asset transfer operation on the first node corresponding to the blockchain, includes:
    根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction based on the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
    通过所述第二节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the second node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
  13. 根据权利要求10所述的方法,所述通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,包括:The method according to claim 10, wherein the second node corresponding to the blockchain through the service system, in cooperation with the vehicle-side device to complete the asset transfer operation on the first node corresponding to the blockchain, includes:
    通过所述第二节点向区块链中提交第二交易,所述第二交易包含所述第二节点生成的收款确认信息,且所述第二交易声明了调用所述区块链中的智能合约;Submit a second transaction to the blockchain through the second node, the second transaction includes the payment confirmation information generated by the second node, and the second transaction declares to call the blockchain Smart contract
    其中,所述智能合约被用于根据所述收款确认信息和付款确认信息执行所述资产转移操作,所述付款确认信息由所述第一节点生成并通过第一交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the collection confirmation information and payment confirmation information, and the payment confirmation information is generated by the first node and submitted to the block through a first transaction chain.
  14. 根据权利要求10所述的方法,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。The method according to claim 10, the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used to: when the remaining credit limit When it is not less than the amount of the service fee, deduct the amount of the service fee from the remaining credit limit recorded on the blockchain ledger, and increase the amount of the service fee from the account balance recorded on the blockchain ledger .
  15. 根据权利要求10所述的方法,还包括:The method of claim 10, further comprising:
    根据所述车辆侧设备发送的通知消息,启动计费流程以计算所述服务费用数额;其中,所述通知消息由所述车辆侧设备在确定相应车辆驶入所述服务区域时发出;According to the notification message sent by the vehicle-side device, start a charging process to calculate the amount of the service fee; wherein, the notification message is issued by the vehicle-side device when it is determined that the corresponding vehicle is driving into the service area;
    或者,当所述服务区域处的传感器检测到所述车辆侧设备对应的车辆驶入所述服务区域时,启动计费流程以计算所述服务费用数额。Or, when a sensor at the service area detects that a vehicle corresponding to the vehicle-side device is driving into the service area, a charging process is started to calculate the service fee amount.
  16. 一种服务费用的支付装置,应用于车辆侧设备;所述装置包括:A service fee payment device applied to vehicle-side equipment; the device includes:
    接收单元,接收服务系统发送的服务费用数额;The receiving unit receives the amount of service fees sent by the service system;
    协同单元,通过所述车辆侧设备在区块链上对应的第一节点,协同所述服务系统在区块链上对应的第二节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit, through the corresponding first node of the vehicle-side device on the blockchain, cooperates with the corresponding second node of the service system on the blockchain to complete the asset transfer operation to transfer the matching to the service system An asset certificate describing the amount of service fees.
  17. 根据权利要求16所述的装置,所述协同单元具体用于:The apparatus according to claim 16, the coordination unit is specifically configured to:
    根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction according to the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
    通过所述第一节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the first node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
  18. 根据权利要求16所述的装置,所述协同单元具体用于:The apparatus according to claim 16, the coordination unit is specifically configured to:
    通过所述第一节点生成付款确认信息,以提供至所述第二节点,使得所述第二节点根据所述服务费用数额、所述付款确认信息和所述第二节点生成的收款确认信息而生成资产转移交易,且所述资产转移交易被所述第二节点提交至区块链;Generating payment confirmation information through the first node to provide to the second node, so that the second node generates payment confirmation information generated by the second node according to the service fee amount, the payment confirmation information and the second node An asset transfer transaction is generated, and the asset transfer transaction is submitted to the blockchain by the second node;
    其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服 务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  19. 根据权利要求16所述的装置,所述协同单元具体用于:The apparatus according to claim 16, the coordination unit is specifically configured to:
    通过所述第一节点向区块链中提交第一交易,所述第一交易包含所述第一节点生成的付款确认信息,且所述第一交易声明了调用所述区块链中的智能合约;Submit a first transaction to the blockchain through the first node, the first transaction includes payment confirmation information generated by the first node, and the first transaction declares to call the intelligence in the blockchain contract;
    其中,所述智能合约被用于根据所述付款确认信息和收款确认信息执行所述资产转移操作,所述收款确认信息由所述第二节点生成并通过第二交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the payment confirmation information and collection confirmation information, and the collection confirmation information is generated by the second node and submitted to the area through a second transaction Blockchain.
  20. 根据权利要求16所述的装置,还包括:The apparatus according to claim 16, further comprising:
    获取单元,获取车辆传感器的检测数据;The acquisition unit acquires the detection data of vehicle sensors;
    发送单元,当所述检测数据表明车辆驶入所述服务系统对应的服务区域时,向所述服务系统发送通知消息,以指示所述服务系统启动计费流程并得到所述服务费用数额。The sending unit, when the detection data indicates that the vehicle is driving into the service area corresponding to the service system, sends a notification message to the service system to instruct the service system to start a billing process and obtain the service fee amount.
  21. 根据权利要求20所述的装置,所述车辆传感器包括测距传感器,所述检测数据包括所述车辆与所述服务区域的内侧边界之间的间隔距离;其中,当所述间隔距离小于预设距离时,表明所述车辆驶入所述服务区域。The apparatus according to claim 20, the vehicle sensor includes a distance measuring sensor, and the detection data includes a separation distance between the vehicle and an inner boundary of the service area; wherein, when the separation distance is less than a preset The distance indicates that the vehicle is driving into the service area.
  22. 根据权利要求20所述的装置,还包括:The apparatus according to claim 20, further comprising:
    验证单元,根据所述通知消息的发送时刻和所述服务费用数额的接收时刻,验证所述服务费用数额的合理性;The verification unit verifies the rationality of the service fee amount based on the sending time of the notification message and the receiving moment of the service fee amount;
    处理单元,当所述服务费用数额不合理时,终止或避免触发所述资产转移操作。The processing unit, when the amount of the service fee is unreasonable, terminates or avoids triggering the asset transfer operation.
  23. 根据权利要求16所述的装置,所述车辆侧设备包括下述任一:所述车辆上的预安装设备、所述车辆上的后安装设备、所述车辆的驾乘用户使用的用户设备。The apparatus according to claim 16, wherein the vehicle-side device includes any one of the following: a pre-installed device on the vehicle, a rear-mounted device on the vehicle, and user equipment used by a rider of the vehicle.
  24. 根据权利要求16所述的装置,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。The device according to claim 16, wherein the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used to: when the remaining credit limit When it is not less than the amount of the service fee, deduct the amount of the service fee from the remaining credit limit recorded on the blockchain ledger, and increase the amount of the service fee from the account balance recorded on the blockchain ledger .
  25. 一种服务费用的支付装置,应用于服务系统;所述装置包括:A service fee payment device applied to a service system; the device includes:
    发送单元,针对处于服务区域内的车辆,向相应的车辆侧设备发送服务费用数额;The sending unit sends the service fee amount to the corresponding vehicle-side equipment for the vehicles in the service area;
    协同单元,通过所述服务系统在区块链上对应的第二节点,协同所述车辆侧设备在区块链上对应的第一节点完成资产转移操作,以向所述服务系统转移匹配于所述服务费用数额的资产凭证。The coordination unit, through the corresponding second node of the service system on the blockchain, cooperates with the first node of the vehicle side device on the blockchain to complete the asset transfer operation, so as to transfer to the service system An asset certificate describing the amount of service fees.
  26. 根据权利要求25所述的装置,所述协同单元具体用于:The apparatus according to claim 25, the coordination unit is specifically configured to:
    通过所述第二节点生成收款确认信息,以提供至所述第一节点,使得所述第一节点根据所述服务费用数额、所述收款确认信息和所述第一节点生成的付款确认信息而生成 资产转移交易,且所述资产转移交易被所述第一节点提交至区块链;Generating payment confirmation information through the second node to provide to the first node, so that the first node generates the payment confirmation based on the service fee amount, the payment confirmation information and the payment confirmation generated by the first node Information to generate an asset transfer transaction, and the asset transfer transaction is submitted to the blockchain by the first node;
    其中,当所述资产转移交易完成后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Wherein, when the asset transfer transaction is completed, the asset voucher attributed to the vehicle-side device decreases the amount of the service fee, and the asset voucher attributed to the service system increases the amount of the service fee.
  27. 根据权利要求25所述的装置,所述协同单元具体用于:The apparatus according to claim 25, the coordination unit is specifically configured to:
    根据所述服务费用数额、所述第一节点生成的付款确认信息和所述第二节点生成的收款确认信息,生成资产转移交易;Generate an asset transfer transaction according to the service fee amount, payment confirmation information generated by the first node, and payment confirmation information generated by the second node;
    通过所述第二节点将所述资产转移交易提交至区块链中;其中,当所述资产转移交易被执行后,归属于所述车辆侧设备的资产凭证减少所述服务费用数额、归属于所述服务系统的资产凭证增加所述服务费用数额。Submit the asset transfer transaction to the blockchain through the second node; wherein, after the asset transfer transaction is executed, the asset voucher attributed to the vehicle-side device reduces the amount of the service fee and is attributed to The asset certificate of the service system increases the service fee amount.
  28. 根据权利要求25所述的装置,所述协同单元具体用于:The apparatus according to claim 25, the coordination unit is specifically configured to:
    通过所述第二节点向区块链中提交第二交易,所述第二交易包含所述第二节点生成的收款确认信息,且所述第二交易声明了调用所述区块链中的智能合约;Submit a second transaction to the blockchain through the second node, the second transaction includes the payment confirmation information generated by the second node, and the second transaction declares to call the blockchain Smart contract
    其中,所述智能合约被用于根据所述收款确认信息和付款确认信息执行所述资产转移操作,所述付款确认信息由所述第一节点生成并通过第一交易提交至所述区块链。Wherein, the smart contract is used to perform the asset transfer operation according to the collection confirmation information and payment confirmation information, and the payment confirmation information is generated by the first node and submitted to the block through a first transaction chain.
  29. 根据权利要求25所述的装置,区块链账本中记录有所述车辆侧设备对应的剩余信用额度、所述服务系统对应的账户余额;所述资产转移操作用于:当所述剩余信用额度不少于所述服务费用数额时,使所述区块链账本记录的所述剩余信用额度扣除所述服务费用数额、使所述区块链账本记录的所述账户余额增加所述服务费用数额。The apparatus according to claim 25, the remaining credit limit corresponding to the vehicle-side device and the account balance corresponding to the service system are recorded in the blockchain ledger; the asset transfer operation is used to: when the remaining credit limit When it is not less than the amount of the service fee, deduct the amount of the service fee from the remaining credit limit recorded on the blockchain ledger, and increase the amount of the service fee from the account balance recorded on the blockchain ledger .
  30. 根据权利要求25所述的装置,还包括:The apparatus of claim 25, further comprising:
    启动单元,根据所述车辆侧设备发送的通知消息,启动计费流程以计算所述服务费用数额,其中所述通知消息由所述车辆侧设备在确定相应车辆驶入所述服务区域时发出;或者,当所述服务区域处的传感器检测到所述车辆侧设备对应的车辆驶入所述服务区域时,启动计费流程以计算所述服务费用数额。A starting unit, according to a notification message sent by the vehicle-side device, starting a charging process to calculate the amount of service charges, wherein the notification message is sent by the vehicle-side device when it is determined that the corresponding vehicle is driving into the service area; Or, when a sensor at the service area detects that a vehicle corresponding to the vehicle-side device is driving into the service area, a charging process is started to calculate the service fee amount.
  31. 一种电子设备,包括:An electronic device, including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-9中任一项所述的方法。Wherein, the processor executes the executable instruction to implement the method according to any one of claims 1-9.
  32. 一种电子设备,包括:An electronic device, including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory for storing processor executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求10-15中任一项所述的方法。Wherein, the processor executes the executable instruction to implement the method according to any one of claims 10-15.
PCT/CN2019/113882 2018-12-14 2019-10-29 Method and device for paying service fee and electronic device WO2020119295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811529620.9A CN110033260A (en) 2018-12-14 2018-12-14 The method of payment and device of service fee, electronic equipment
CN201811529620.9 2018-12-14

Publications (1)

Publication Number Publication Date
WO2020119295A1 true WO2020119295A1 (en) 2020-06-18

Family

ID=67235341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/113882 WO2020119295A1 (en) 2018-12-14 2019-10-29 Method and device for paying service fee and electronic device

Country Status (3)

Country Link
CN (1) CN110033260A (en)
TW (1) TW202025023A (en)
WO (1) WO2020119295A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033260A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 The method of payment and device of service fee, electronic equipment
CN110489488B (en) * 2019-08-21 2021-06-15 腾讯科技(深圳)有限公司 Data processing method and device
EP3828797A1 (en) * 2019-11-27 2021-06-02 Bayerische Motoren Werke Aktiengesellschaft Computer implemented method for providing a vehicle service and triggering a process to pay for the vehicle service, software program, and system
CN111178863B (en) * 2019-12-30 2023-09-15 百度在线网络技术(北京)有限公司 Transaction charging method, device, equipment and medium based on blockchain
CN111540067A (en) * 2020-04-03 2020-08-14 支付宝(杭州)信息技术有限公司 UWB-based parking payment system, method, device and equipment
CN113489753A (en) * 2020-04-18 2021-10-08 东方驿站物流科技(深圳)有限公司 Trailer alliance chain based on block chain and internet of things technology application
CN112561504A (en) * 2020-10-28 2021-03-26 利天新能源科技(常熟)有限公司 New energy automobile data storage transaction system based on block chain and implementation method
CN112954411A (en) * 2021-01-25 2021-06-11 上海特高信息技术有限公司 Intelligent television film watching record privacy protection system and method based on block chain
CN113746645B (en) * 2021-08-11 2024-02-13 如般量子科技有限公司 Public scene anonymous communication charging system and method based on chargeable digital certificate
CN113850586A (en) * 2021-09-30 2021-12-28 中国人民银行数字货币研究所 Positioning payment method, device and system based on Internet of vehicles
CN114495297B (en) * 2021-12-31 2024-10-18 广东奥博信息产业股份有限公司 Parking-free payment parking management method and system based on intelligent terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798532A (en) * 2017-09-29 2018-03-13 深圳市轱辘车联数据技术有限公司 A kind of car-mounted terminal method of payment, terminal and computer-readable medium
US20180293576A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. System for custom currency transaction based on blockchain and operating method thereof
CN108805995A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 Parking charging method and device, electronic equipment
CN108876382A (en) * 2018-08-09 2018-11-23 上海点融信息科技有限责任公司 The method, apparatus and readable storage medium storing program for executing of digital certificate are handled on block chain
CN110033260A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 The method of payment and device of service fee, electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629584B (en) * 2018-04-25 2022-07-01 常海峰 Block chain based payment method, device and computer readable storage medium
CN108876506B (en) * 2018-04-27 2022-06-17 深圳市元征科技股份有限公司 Vehicle registration method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180293576A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. System for custom currency transaction based on blockchain and operating method thereof
CN107798532A (en) * 2017-09-29 2018-03-13 深圳市轱辘车联数据技术有限公司 A kind of car-mounted terminal method of payment, terminal and computer-readable medium
CN108805995A (en) * 2018-05-31 2018-11-13 阿里巴巴集团控股有限公司 Parking charging method and device, electronic equipment
CN108876382A (en) * 2018-08-09 2018-11-23 上海点融信息科技有限责任公司 The method, apparatus and readable storage medium storing program for executing of digital certificate are handled on block chain
CN110033260A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 The method of payment and device of service fee, electronic equipment

Also Published As

Publication number Publication date
TW202025023A (en) 2020-07-01
CN110033260A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
WO2020119295A1 (en) Method and device for paying service fee and electronic device
TWI696135B (en) Method and device for off-line payment, business processing, and payment processing
TWI709929B (en) Refueling, refueling settlement, refueling payment method, device and electronic equipment
TWI582722B (en) The use of smart cars in the service point to pay the system and methods
CN107274160B (en) Wireless payment transactions in a vehicle environment
WO2018068682A1 (en) Intelligent automobile payment system and payment method
US11697581B2 (en) Efficient resource provider system
EP2626842A1 (en) Plug-in electric vehicle charging station with vending machine payment options
WO2018121370A1 (en) T-box, t-box-based vehicle-mounted payment system, and method therefor
CN110533405B (en) Cross-border mobile payment information processing method, device, system and storage medium
WO2020220740A1 (en) Blockchain-based invoice creation method, apparatus and electronic device
CN111553667A (en) Transaction method, gateway device, payment platform, merchant device and transaction system
CN104050747A (en) Banknote detection device and cash withdrawing method and device
JP2022511432A (en) Electronic devices and systems for payment inside the vehicle
TW202020772A (en) A transfer discount method and device based on offline riding codes and electronic equipment
WO2019062964A1 (en) Charging method and device for electric vehicle, storage medium and electric vehicle
CN109903401A (en) Vehicle payment management method, car-mounted terminal and electronic equipment
CN107480971B (en) Virtual national standard CPU card and method for realizing internet user transaction based on virtual national standard CPU card
WO2020042794A1 (en) Transaction device, method, and apparatus, server, and storage medium
KR102027403B1 (en) Method providing escrow service for remittance payment and server thereof
CN108280634B (en) Payment method and system, automobile, toll terminal and medium
KR20190134900A (en) System and method for payment of car service using car number recognition
KR101834037B1 (en) High-pass device using mobile card or other transportation cards, system and settlement method thereof
KR102406519B1 (en) Hi-Pass System and Method for operating thereof
KR102267404B1 (en) Method, apparatus and program for providing payment service for electric car charger

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19895736

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19895736

Country of ref document: EP

Kind code of ref document: A1