Mileage charging digital currency payment method and system

Through two-way authentication and encrypted data transmission between the device terminal and the platform, the automation and security of mileage billing and payment are realized, solving the problems of low efficiency and insufficient security of the existing high-speed charging methods, and improving the efficiency and safety of payment. Security.

CN115456614BActive Publication Date: 2024-09-10EASTCOMPEACE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210955180.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-10
Publication Date
2024-09-10
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

The existing high-speed charging methods are inefficient and insufficient in security. They are dependent on manual operation, mistakenly charged and stolen, and bank cards in the ETC system are easy to be stolen.

Method used

The mileage billing digital currency payment method and system is used to generate and verify the negotiation key through two-way authentication between the equipment terminal and the platform, and perform data encrypted transmission to realize the automation and security of mileage fee payment and reduce manual intervention.

Benefits of technology

It improves the efficiency and security of mileage billing and payment, reduces the risk of mistaken brushing and brushing, and enhances the protection of vehicle information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115456614B
    Figure CN115456614B
Patent Text Reader

Abstract

The present invention discloses a mileage metering digital currency payment method and system, wherein the method includes: a mileage metering digital currency payment method, characterized in that it includes: obtaining a startup instruction, generating first authentication request data according to the startup instruction and sending it to a platform; receiving first authentication response data from the platform and performing authentication, and collecting the business data of the platform if the authentication is successful; encrypting the business data according to the first authentication response data to obtain encrypted business data and sending it to the platform; receiving a mileage fee payment request message from the platform; generating a negotiation result according to the mileage fee payment request message by comparing the negotiation information, and determining that the negotiation result is successful, then sending a mileage fee payment response message to the platform, and the mileage fee payment response message includes the negotiation result and transaction information. The efficiency and security of mileage metering and payment are improved by this application. The present application can be widely used in the field of mileage metering digital currency payment technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mileage billing and payment, and in particular to a mileage billing digital currency payment method and system. Background Art

[0002] The disadvantages of several existing high-speed toll collection methods are as follows:

[0003] Manual toll collection: mainly relies on special smart IC cards as the carrier of vehicle information, issuing cards at the entrance and checking cards at the exit. This method consumes a large number of cards and has high requirements for the external environment. Machine failures often cause card deadlock and misreading. In addition, manual toll collection is slow, inefficient, and has high labor costs.

[0004] ETC: First, the application process is cumbersome and not as convenient as mobile payment. Secondly, the bank cards that banks use to open ETC are usually co-branded cards, which have the financial functions of savings cards or credit cards and can be used for normal card consumption. Such bank cards may have quick payment and small amount password-free functions, which are easy to be stolen. Moreover, there is a certain distance between the vehicle and the ETC to sense the lifting of the barrier, and the owner can pass slowly without stopping, which may cause the vehicle to be mistakenly swiped or rushed. Mistakes and rushes happen from time to time, resulting in vehicles equipped with ETC being unable to pass.

[0005] It can be seen that the current means of charging vehicle fees are relatively unsafe and require manual operation. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a mileage billing digital currency payment method and system to improve the efficiency and security of mileage billing and payment.

[0007] The first aspect of the present invention provides a mileage charging digital currency payment method, characterized in that it includes: obtaining a startup instruction, generating first authentication request data according to the startup instruction and sending it to a platform; receiving first authentication response data from the platform and performing authentication, and if the authentication is determined to be successful, collecting business data of the platform, wherein the business data includes location information; encrypting the business data according to the first authentication response data to obtain encrypted business data and sending it to the platform; if it is determined that a platform response message from the platform is received, receiving a mileage fee payment request message from the platform; generating a negotiation result according to the mileage fee payment request message by comparing the negotiation information, and if it is determined that the negotiation result is successful, sending a mileage fee payment response message to the platform, wherein the negotiation information includes an instruction version number and a cryptographic algorithm, and the mileage fee payment response message includes a negotiation result and transaction information.

[0008] According to some embodiments of the present invention, the first authentication response data is received from the platform and authentication is performed. If it is determined that the authentication is successful, the business data of the platform is collected, including: verifying the legitimacy of the platform based on the first authentication response data; if the verification passes, generating a terminal negotiation key based on the first authentication response data; verifying the physical address value and random ciphertext in the first authentication response data based on the terminal negotiation key to obtain a verification result, and determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform based on the verification result, if they are consistent, the authentication is successful.

[0009] According to some embodiments of the present invention, the physical address value and the random ciphertext in the first authentication response data are verified according to the terminal negotiated key to obtain a verification result, and whether the terminal negotiated key is consistent with the platform negotiated key in the platform is determined according to the verification result. If they are consistent, the authentication is successful, including: if they are inconsistent, the authentication fails; repeatedly executing the operation of verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiated key until the number of repetitions is equal to the maximum number of attempts, and then entering the exception handling process.

[0010] According to some embodiments of the present invention, encrypting the business data according to the first authentication response data to obtain encrypted business data and sending it to the platform includes: confirming that the authentication is successful, obtaining the key of the session key number in the first authentication response data; encrypting the business data with the SM4 algorithm according to the key to obtain ciphertext data, and calculating the physical address value based on the ciphertext data; wherein the encrypted business data includes the physical address value and the ciphertext data.

[0011] According to some embodiments of the present invention, the negotiation result is generated by comparing the negotiation information with the mileage fee payment request message, and if the negotiation result is successful, a mileage fee payment response message is sent to the platform, including: if the negotiation result is a failure, the transaction information data in the mileage fee payment response message does not exist.

[0012] The second aspect of the present invention also provides a mileage charging digital currency payment method, comprising:

[0013] Receive first authentication request data from the device terminal and perform authentication, and if the authentication is successful, generate first authentication response data and send it to the device terminal; receive encrypted business data from the device terminal, decrypt the encrypted business data to obtain plaintext business data, and send a platform response message to the device terminal; send a mileage fee payment request message to the device terminal by calling the mileage fee payment interface; receive a mileage fee payment response message from the device terminal, and if the negotiation result of the mileage fee payment response message is successful, execute a deduction operation and notify the user of the deduction details.

[0014] According to some embodiments of the present invention, the receiving first authentication request data from the device terminal and performing authentication, and determining that the authentication is successful, generating first authentication response data and sending it to the device terminal, includes:

[0015] Check whether the device terminal has been registered according to the first authentication request data. If it has been registered, perform a blacklist check and a security rule check on the device terminal; if both the blacklist check and the security rule check are passed, perform key negotiation according to the first authentication request data to generate a platform negotiation key; calculate a random ciphertext and a physical address value according to the platform negotiation key; send the first authentication response data to the device terminal, wherein the first authentication response data includes a random ciphertext, a physical address value, and a session key number.

[0016] According to some embodiments of the present invention, the receiving of encrypted business data from a device terminal, decrypting the encrypted business data to obtain plaintext business data, and sending a platform response message to the device terminal includes: performing an SM4 decryption operation on the ciphertext data in the encrypted business data to obtain plaintext business data; if it is determined that the plaintext business data is obtained, sending a platform response message to the device terminal.

[0017] The third aspect of the present invention also provides a mileage charging digital currency payment method, including: the device terminal obtains a startup instruction, generates first authentication request data according to the startup instruction and sends it to the platform; the platform receives the first authentication request data from the device terminal and performs authentication, and if it is determined that the authentication is successful, generates first authentication response data and sends it to the device terminal; the device terminal receives the first authentication response data from the platform and performs authentication, and if it is determined that the authentication is successful, collects the business data of the platform, wherein the business data includes location information; the device terminal encrypts the business data according to the first authentication response data to obtain encrypted business data and sends it to the platform; the platform receives the encrypted business data from the device terminal, decrypts the encrypted business data to obtain encrypted business data The device terminal receives the service data of the instruction and sends a platform response message to the device terminal; the platform sends the mileage fee payment request message to the device terminal by calling the mileage fee payment interface; the device terminal determines that the platform response message from the platform is received, and then receives the mileage fee payment request message from the platform; the device terminal generates a negotiation result according to the mileage fee payment request message by comparing the negotiation information, and determines that the negotiation result is successful, and then sends a mileage fee payment response message to the platform, wherein the negotiation information includes the instruction version number and the cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information; the platform receives the mileage fee payment response message from the device terminal, and determines that the negotiation result of the mileage fee payment response message is successful, then executes the deduction operation, and notifies the user of the deduction details.

[0018] The fourth aspect of the present invention provides a mileage charging digital currency payment system, comprising: a device terminal, used to obtain a startup instruction, generate first authentication request data according to the startup instruction and send it to a platform; used to receive first authentication response data from the platform and perform authentication, and if the authentication is successful, collect business data of the platform, wherein the business data includes location information; used to encrypt the business data to obtain encrypted business data and send it to the platform; used to determine that a platform response message from the platform is received, then receive a mileage fee payment request message; used to compare the negotiation information according to the mileage fee payment request message to generate a negotiation result, and if the negotiation result is successful, send a mileage fee payment response message to the platform, wherein, The negotiation information includes the instruction version number and the cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information; the platform is used to receive the first authentication request data from the device terminal and perform authentication, and if the authentication is successful, generate the first authentication response data and send it to the device terminal; receive the encrypted business data from the device terminal, decrypt the encrypted business data to obtain the plaintext business data, and send the platform response message to the device terminal; call the mileage fee payment interface, and send the mileage fee payment request message to the device terminal; receive the mileage fee payment response message from the device terminal, and if the negotiation result of the mileage fee payment response message is successful, perform the deduction operation, and notify the user of the deduction details.

[0019] In the embodiment of the present invention, the device terminal generates the first request data according to the startup instruction and sends it to the platform. The platform performs authentication according to the first authentication request data and then generates the first authentication response data and sends it to the device terminal. The two-way authentication between the platform and the device terminal is performed according to whether the authentication is successful, thereby ensuring security. After the authentication is successful, the device terminal collects the business data of the platform and encrypts it and transmits it to the platform. The platform decrypts the business data to achieve the security of data upload. After the decryption is successful, the platform sends a platform response message to the device terminal for reminder. The device terminal continues to accept the mileage fee payment request from the platform. The device terminal negotiates according to the message, and then feeds back the mileage fee payment response message to the platform. The platform deducts money according to this message. No human intervention or toll station intervention is required throughout the process, which improves the efficiency and security of mileage billing and payment. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application.

[0022] Figure 2 This is the first flow chart of a mileage charging digital currency payment method provided in an embodiment of the present application.

[0023] Figure 3 This is the second flow chart of a mileage charging digital currency payment method provided in an embodiment of the present application.

[0024] Figure 4 This is the third flow chart of a mileage charging digital currency payment method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0028] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0029] (1) The microcontroller unit main chip, i.e., the MCU main chip, executes the terminal main control application and communicates with the Beidou chip to obtain business data (location information); communicates with the SE security chip to perform encryption and decryption operations on business data through the encryption application, or performs mileage fee payment operations through the digital currency application;

[0030] (2) Security module encryption chip, namely SE security chip, pre-installed encryption application and digital currency application. The encryption application provides business data encryption and decryption functions for the main control chip, and the digital currency application provides mileage fee payment function for the device terminal;

[0031] (3) Beidou chip, which provides business data (location information) for the main control chip;

[0032] (4) Communication module, which provides the main control chip with the ability to communicate with the JT / T808 gateway and business platform network;

[0033] (5) JT / T808 gateway, which completes data transmission between the main control chip and each platform according to relevant network protocols;

[0034] (6) Digital identity authentication platform, namely AUC, also called digital identity certification platform, trusted service platform, responsible for the two-way security authentication between the business platform and the device terminal, the negotiation and generation of session keys used for encryption and decryption operations, and the decryption operation of the ciphertext data uploaded by the device terminal to the business platform;

[0035] (7) Mileage fee business platform, which is used to collect business data (location information), mileage charges, and complete mileage fee payment operations together with the payment institution platform;

[0036] (8) The payment and collection institution platform, including the payment institution platform and the payment institution platform, completes the mileage fee payment operation together with the mileage fee business platform and SE digital currency application;

[0037] (9) CBC mode, the full name is Cipher Block Chaining mode, SM4 encryption is one of the block cipher algorithms.

[0038] Several existing high-speed toll collection methods require toll booths or manual operation, which is inefficient and consumes a lot of human resources. There is also the possibility of vehicles swiping by mistake or being rushed. This solution aims to solve the problems of low efficiency and lack of safety, and proposes a mileage-based digital currency payment method and system. The following examples are used to illustrate this.

[0039] Figure 1 Schematic diagram of the mileage charging digital currency payment system provided in the embodiment of the present application. Figure 1 , including device terminals and platforms.

[0040] The mileage charging digital currency payment system includes a device terminal, wherein the device terminal includes a microcontroller unit main control chip, a security module encryption chip, a Beidou chip, and a communication module. The communication module includes: SIM, eSIM. The security module encryption chip is pre-installed with: encryption applications and digital currency applications. The microcontroller unit main control chip includes: Main-APP; the platform includes: JT / T808 gateway, digital identity authentication platform (AUC), mileage fee business platform, and payment institution platform. Among them, the microcontroller unit main control chip is the MCU main control chip, which executes the terminal main control application.

[0041] Figure 2This is the first flow chart of a mileage charging digital currency payment method provided in the embodiment of the present application. In this embodiment, the device terminal is used as the execution subject for explanation. Figure 2 The mileage charging digital currency payment method includes steps S110 to S150.

[0042] Step S110, obtaining a start instruction, generating first authentication request data according to the start instruction and sending the data to the platform;

[0043] Specifically, first power on the device terminal, generate a startup instruction, perform a power-on self-test, and check the authentication policy, such as authenticating once a day or power-on authentication. The device terminal includes a terminal main control program and an encryption application in the SE. The terminal main control program sends a GET AUTH DATA instruction to the SE encryption application according to the startup instruction to obtain the SE authentication data; after receiving the GETAUTH DATA instruction, the encryption application first verifies the binding relationship between the terminal main control application and the SE according to the input data IMEI. After the verification is successful, the SE random number and SE key negotiation temporary key pair are generated, and the SE signature value is calculated; the encryption application assembles the response data and replies the response data to the terminal main control application; the terminal main control application assembles the "two-way authentication uplink request" message and transmits the data to the JT / T808 gateway of the platform through the JT / T808 protocol. Among them, the first authentication request data is the assembled two-way authentication uplink request message.

[0044] Step S120, receiving the first authentication response data from the platform and performing authentication, and if the authentication is successful, collecting the business data of the platform, wherein the business data includes location information.

[0045] Step S120 also includes:

[0046] Step S1201, verifying the legitimacy of the platform according to the first authentication response data;

[0047] Step S1202: if the verification is successful, generating a terminal negotiation key according to the first authentication response data;

[0048] Step S1203, verify the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiation key to obtain a verification result, and determine whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result. If they are consistent, the authentication is successful.

[0049] Among them, step S1203 also includes: if there is inconsistency, the authentication fails; repeatedly execute the physical address value and random ciphertext operation in the first authentication response data according to the terminal negotiated key verification until the number of repetitions is equal to the maximum number of attempts, and then enter the exception handling process.

[0050] Specifically, the terminal master application in the device terminal caches the session key ID and the session key validity period; the terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH instruction; after receiving the MUTUAL AUTH instruction, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value (physical address value) and the random ciphertext to verify the consistency with the negotiation key generated by the platform; the encryption application responds the verification result to the terminal master application as the authentication result; the terminal master application determines the authentication result: if the authentication is successful, the business data on the platform is collected; if the authentication fails, the authentication continues. If the number of consecutive failed attempts reaches the maximum number of attempts, the exception handling process is entered.

[0051] Step S130: encrypt the business data according to the first authentication response data to obtain encrypted business data and send it to the platform.

[0052] Step S130 also includes the following steps:

[0053] Confirming that the authentication is successful, obtaining the key of the session key number in the first authentication response data;

[0054] The business data is encrypted using the SM4 algorithm according to the key to obtain ciphertext data, and the physical address value is calculated based on the ciphertext data; wherein the encrypted business data includes the physical address value and the ciphertext data.

[0055] Specifically, the terminal master control application collects business data and sends it to the SE encryption application through the SM4 ENCRYPT command; the SE encryption application uses the key of the specified session key ID (session key label) to perform SM4 encryption in CBC mode on the business data, and calculates MAC for the ciphertext data; the SE encryption application replies to the terminal master control application with the ciphertext data and MAC value as response data of the SM4 ENCRYPT command; the terminal master control application assembles the "location information reporting" instruction, that is, the first authentication response data, and uploads the ciphertext data and MAC to the JT / T808 gateway in the platform.

[0056] Step S140, determining that a platform response message is received from the platform, then receiving a mileage fee payment request message from the platform;

[0057] Specifically, the device terminal confirms receipt of the platform response message from the platform, indicating that the business data collection is completed, and after the payment amount is calculated, it continues to receive the mileage fee payment request message from the platform.

[0058] Step S150, generate a negotiation result based on the mileage fee payment request message and compare the negotiation information. If the negotiation result is determined to be successful, send a mileage fee payment response message to the platform, wherein the negotiation information includes the instruction version number and the cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information.

[0059] Step S150 also includes the following steps: if the negotiation result is a failure, the transaction information data in the mileage fee payment response message does not exist.

[0060] Specifically, the terminal master application sends a NEGOTIATE MODEL command to the SE digital currency application; the digital currency application compares the instruction version number, cryptographic algorithm and other information, and generates interaction parameters; the digital currency application returns the negotiation result and negotiated transaction model information to the terminal master application; the terminal master application determines the negotiation result returned by the SE digital currency application. If the negotiation fails, execute step 9; if the negotiation succeeds, execute the next step; the terminal master application sends a PAY OPERATIONHALF ONLINE command to the SE digital currency application; the digital currency application assembles the response data information, calculates the MAC, and responds to the terminal master application; the terminal master application sends the negotiation result and the transaction information responded by the SE digital currency application (if the negotiation result fails, the transaction information data does not exist) to the JT / T808 gateway through the mileage fee payment response message.

[0061] Figure 3 This is the second flow chart of a mileage charging digital currency payment method provided in the embodiment of the present application. In this embodiment, the device terminal is used as the execution subject for explanation. Figure 3 The mileage charging digital currency payment method includes steps S210 to S240.

[0062] Step S210, receiving first authentication request data from a device terminal and performing authentication, and if the authentication is successful, generating first authentication response data and sending it to the device terminal.

[0063] Step S2101, checking whether the device terminal has been registered according to the first authentication request data, and if it has been registered, performing a blacklist check and a security rule check on the device terminal;

[0064] Step S2102: If both the blacklist check and the security rule check are passed, key negotiation is performed according to the first authentication request data to generate a platform negotiation key;

[0065] Step S2103, calculating the random ciphertext and physical address value according to the platform negotiated key;

[0066] Step S2104: Send the first authentication response data to the device terminal, wherein the first authentication response data includes a random ciphertext, a physical address value, and a session key number.

[0067] Specifically, the platform includes a JT / T808 gateway and a digital identity authentication platform (AUC). After receiving the first authentication request data from the device terminal, the JT / T808 gateway initiates an authentication request to the digital identity authentication platform (AUC); the digital identity authentication platform checks whether the terminal main control application is registered, and performs blacklist and security rule checks. After the check passes, it performs two-way authentication, and performs key negotiation to generate a negotiation key; the digital identity authentication platform generates a platform key negotiation temporary key pair, uses the negotiation key to calculate the random ciphertext and MAC, and calculates the platform signature value at the same time, assembles other data to be responded to the JT / T808 gateway together; the JT / T808 gateway forwards the response data sent by the digital identity authentication platform, that is, the first authentication request data, to the device terminal.

[0068] Step S220, receiving the encrypted business data from the device terminal, decrypting the encrypted business data to obtain plaintext business data, and sending a platform response message to the device terminal.

[0069] Step S220 includes the following steps:

[0070] Perform SM4 decryption operation on the ciphertext data in the encrypted business data to obtain the plaintext business data;

[0071] If it is confirmed that the plain text business data is obtained, the sending platform should send the message to the device terminal.

[0072] Specifically, the JT / T808 gateway calls the decryption interface and sends the ciphertext data and MAC value to the digital identity authentication platform (AUC); after receiving the ciphertext data and MAC value, the digital identity authentication platform first verifies the MAC value, and after the verification passes, performs the SM4 decryption operation in CBC mode on the ciphertext data to obtain the plaintext business data, and then returns the plaintext business data to the JT / T808 gateway; the JT / T808 gateway sends the received plaintext business data to the mileage fee business platform; after receiving the plaintext business data, the mileage fee business platform replies the platform response message to the JT / T808 gateway; the JT / T808 gateway sends the received platform response message to the terminal master application. This notifies the device terminal platform that the decryption of the encrypted business data has been completed.

[0073] Step S230, sending the mileage payment request message to the device terminal by calling the mileage payment interface.

[0074] Specifically, after the business data is collected and the payment amount is calculated, the mileage fee business platform calls the mileage fee payment interface and transmits the receiving wallet association code and transaction amount to the JT / T808 gateway; the JT / T808 gateway sends the received mileage fee payment request message to the device terminal.

[0075] Step S240, receiving the mileage fee payment response message from the device terminal, determining that the negotiation result of the mileage fee payment response message is successful, then executing the deduction operation and notifying the user of the deduction details.

[0076] Specifically, the JT / T808 gateway in the platform sends the mileage fee payment request response message responded by the terminal master application to the mileage fee business platform; the mileage fee business platform determines the negotiation result, if it fails, it enters the specified exception handling process according to the failure type; if it succeeds, it executes the next step; the mileage fee business platform sends the mileage fee deduction application message to the payment and collection institution platform; the payment and collection institution platform verifies the MAC, ATC and other data in the transaction information, and if the verification is successful, it executes the deduction operation; the payment and collection institution platform replies the deduction result to the mileage fee business platform through the mileage fee deduction response message; the mileage fee business platform determines the deduction result, if the deduction fails, it enters the exception handling process according to the failure type; if the deduction is successful, the user can be notified of the deduction details via text message.

[0077] Figure 4 This is the third flow chart of a mileage charging digital currency payment method provided in the embodiment of the present application. In this embodiment, a system including a device terminal and a platform is used as an example for explanation. Figure 4 The mileage charging digital currency payment method includes steps S310-S340.

[0078] Step S310, the device terminal obtains a startup instruction, generates first authentication request data according to the startup instruction, and sends the data to the platform;

[0079] Step S320, the platform receives the first authentication request data from the device terminal and performs authentication, and if the authentication is successful, generates first authentication response data and sends it to the device terminal;

[0080] Step S330, the device terminal receives the first authentication response data from the platform and performs authentication, and if the authentication is successful, collects the business data of the platform, wherein the business data includes location information;

[0081] Step S340, the device terminal encrypts the business data according to the first authentication response data to obtain encrypted business data and sends the encrypted business data to the platform;

[0082] Step S350, the platform receives the encrypted service data from the device terminal, decrypts the encrypted service data to obtain plaintext service data, and sends a platform response message to the device terminal;

[0083] Step S360, the platform sends the mileage fee payment request message to the device terminal by calling the mileage fee payment interface;

[0084] Step S370: the device terminal determines that a platform response message from the platform is received, and then receives a mileage fee payment request message from the platform;

[0085] Step S380: the device terminal generates a negotiation result by comparing the negotiation information with the mileage fee payment request message, and if the negotiation result is successful, it sends a mileage fee payment response message to the platform, wherein the negotiation information includes the instruction version number and the cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information;

[0086] Step S390, the platform receives the mileage fee payment response message from the device terminal, determines that the negotiation result of the mileage fee payment response message is successful, then executes the deduction operation and notifies the user of the deduction details.

[0087] The specific embodiments are as follows:

[0088] First, power on the terminal main control application, perform a self-check, and check the authentication policy, such as authenticating once a day or powering on the authentication.

[0089] Two-way authentication (key negotiation) process:

[0090] (1) The terminal master application sends the GET AUTH DATA command to the SE encryption application to obtain the SE authentication data;

[0091] (2) After receiving the GET AUTH DATA command, the encryption application first verifies the binding relationship between the terminal master application and the SE based on the input data IMEI. After the verification is successful, it generates an SE random number, a SE key negotiation temporary key pair, and calculates the SE signature value;

[0092] (3) The encryption application assembles the response data and returns the response data to the terminal master application;

[0093] (4) The terminal master application assembles the "two-way authentication uplink request" message and transmits the data to the JT / T808 gateway through the JT / T808 protocol;

[0094] (5) The JT / T808 gateway initiates an authentication request to the digital identity authentication platform (AUC);

[0095] (6) The digital identity authentication platform checks whether the terminal master application is registered, and performs a blacklist and security rule check. If the check passes, two-way authentication is performed, and key negotiation is performed to generate a negotiation key;

[0096] (7) The digital identity authentication platform generates a temporary key pair for platform key negotiation, uses the negotiated key to calculate the random ciphertext and MAC, and calculates the platform signature value, and assembles other response data to respond to the JT / T808 gateway;

[0097] (8) The JT / T808 gateway forwards the response data sent by the digital identity authentication platform to the terminal master application;

[0098] (9) The terminal master application caches the session key ID and session key validity period;

[0099] (10) The terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH command;

[0100] (11) After receiving the MUTUAL AUTH command, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value and random ciphertext to verify the consistency with the negotiation key generated by the platform;

[0101] (12) The encryption application responds the verification result to the terminal host application as an authentication result;

[0102] The terminal master application determines the authentication result: if the authentication is successful, the key corresponding to the session key ID is used to encrypt and upload the business data; if the authentication fails, the authentication continues. If the number of consecutive failed attempts reaches the maximum number of attempts, the exception handling process is entered.

[0103] After the two-way authentication (key negotiation) is completed, the terminal master application encryption and sending process is carried out:

[0104] (1) The terminal master application collects business data and sends it to the SE encryption application through the SM4 ENCRYPT command;

[0105] (2) The SE encryption application uses the key of the specified session key ID to perform CBC mode SM4 encryption on the service data and calculates the MAC on the ciphertext data;

[0106] (3) The SE encryption application returns the ciphertext data and MAC value to the terminal master control application as the response data of the SM4 ENCRYPT command;

[0107] (4) The terminal master application assembles the "location information report" command and uploads the encrypted data and MAC to the JT / T808 gateway;

[0108] (5) The JT / T808 gateway calls the decryption interface and sends the ciphertext data and MAC value to the digital identity authentication platform (AUC);

[0109] (6) After receiving the ciphertext data and MAC value, the digital identity authentication platform first verifies the MAC value. After the verification passes, it performs the SM4 decryption operation in CBC mode on the ciphertext data to obtain the plaintext business data, and then returns the plaintext business data to the JT / T808 gateway;

[0110] (7) The JT / T808 gateway sends the received service data in plain text to the mileage fee service platform;

[0111] (8) After receiving the plain text service data, the mileage fee service platform replies with a platform response message to the JT / T808 gateway;

[0112] (9) The JT / T808 gateway sends the received platform response message to the device terminal.

[0113] Business data collection is complete, and the payment amount is calculated. Digital currency payment process:

[0114] (1) The mileage fee business platform calls the mileage fee payment interface and transmits the receiving wallet association code and transaction amount to the JT / T808 gateway;

[0115] (2) The JT / T808 gateway sends the received mileage payment request message to the terminal master control application;

[0116] (3) The terminal master application sends a NEGOTIATE MODEL command to the SE digital currency application;

[0117] (4) The SE digital currency application compares the instruction version number, cryptographic algorithm and other information, and generates interaction parameters;

[0118] (5) The digital currency application returns the negotiation result and negotiation transaction model information to the terminal master control application;

[0119] (6) The terminal master control application determines the negotiation result returned by the SE digital currency application. If the negotiation fails, it executes step 9; if the negotiation succeeds, it executes the next step;

[0120] (7) The terminal master application sends the PAY OPERATION HALF ONLINE instruction to the SE digital currency application;

[0121] (8) The digital currency application assembles the response data information, calculates the MAC, and responds to the terminal master application;

[0122] (9) The terminal master application sends the negotiation result and the transaction information responded by the SE digital currency application (if the negotiation result fails, the transaction information data does not exist) to the JT / T808 gateway via the mileage payment response message;

[0123] (10) The JT / T808 gateway sends the mileage fee payment request response message from the device terminal to the mileage fee service platform;

[0124] (11) The mileage fee service platform determines the negotiation result. If the negotiation fails, it enters the specified exception handling process according to the failure type. If the negotiation succeeds, it executes the next step.

[0125] (12) The mileage fee business platform sends a mileage fee deduction application message to the payment institution platform;

[0126] (13) The payment institution platform verifies the MAC, ATC and other data in the transaction information. If the verification is successful, the deduction operation is executed;

[0127] (14) The payment institution platform replies the deduction result to the mileage fee business platform via a mileage fee deduction response message;

[0128] The mileage fee business platform determines the deduction result. If the deduction fails, it enters the exception handling process according to the failure type; if the deduction is successful, the user can be notified of the deduction details via text message.

[0129] It should be noted that in the digital currency payment process, the main control chip or Beidou terminal software is used to implement the digital currency payment deduction function, which can perform similar payment deduction operations, but does not have the transaction security of the SE security chip.

[0130] In addition, other satellite positioning technologies may also be used to obtain location information, such as GPS, GLONASS, Galileo, etc.; SE encryption applications, in the form of not limited to Java applications or Native applications, implement encryption and decryption of business data, encryption and decryption algorithms are not limited to SM4, and 3DES, AES and other algorithms may also be used; SE digital currency applications, in the form of not limited to Java applications or Native applications, implement mileage fee deduction operations, and the application may also use electronic wallets, loan applications, etc. to complete the deduction operations.

[0131] Reference Figure 1 The embodiment of the present application also discloses a mileage charging digital currency payment system, and the mileage charging digital currency payment system includes:

[0132] The device terminal is used to obtain a startup instruction, generate first authentication request data according to the startup instruction and send it to the platform; receive first authentication response data from the platform and perform authentication, and if the authentication is successful, collect the business data of the platform, wherein the business data includes location information; encrypt the business data to obtain encrypted business data and send it to the platform; receive a mileage fee payment request message when a platform response message is received from the platform; generate a negotiation result according to the mileage fee payment request message by comparing the negotiation information, and if the negotiation result is successful, send a mileage fee payment response message to the platform, wherein the negotiation information includes the instruction version number and the cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information;

[0133] The platform is used to receive first authentication request data from a device terminal and perform authentication. If the authentication is successful, first authentication response data is generated and sent to the device terminal; it is used to receive encrypted business data from the device terminal, decrypt the encrypted business data to obtain plain text business data, and send a platform response message to the device terminal; it is used to call a mileage fee payment interface and send a mileage fee payment request message to the device terminal; it is used to receive a mileage fee payment response message from the device terminal, and if the negotiation result of the mileage fee payment response message is successful, a deduction operation is performed and the user is notified of the deduction details.

[0134] In a specific embodiment, the mileage charging digital currency payment system includes a device terminal, wherein the device terminal includes a microcontroller main control chip (i.e., MCU main control chip), a security module encryption chip (i.e., SE security chip), a Beidou chip, and a communication module. The communication module includes: SIM, eSIM, and the security module encryption chip is pre-installed with: encryption applications and digital currency applications. The microcontroller main control chip includes: Main-APP; the platform includes: JT / T808 gateway, digital identity authentication platform (AUC), mileage fee service platform, and payment and collection institution platform. Among them, the microcontroller main control chip is the MCU main control chip, which executes the terminal main control application. The Beidou chip of the Beidou terminal records the vehicle position and trajectory information in real time, and the MCU main control chip sends the vehicle position and trajectory information to the SE security chip for encryption, and sends it to the mileage fee service platform through the communication module via the JT / T808 gateway. The mileage fee service platform completes the high-speed fee billing, and finally the SE security chip digital currency application and the payment and collection institution platform complete the payment and deduction operation. It has the advantages of high security, high convenience, and strong versatility.

[0135] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0136] In addition, an embodiment of the present application further discloses an electronic device, the electronic device comprising:

[0137] including processor and memory;

[0138] The memory is used to store programs;

[0139] When at least one program is executed by at least one processor, the mileage charging digital currency payment method of any of the previous embodiments with a device terminal or platform as the execution subject is implemented.

[0140] An embodiment of the present application also discloses a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the mileage metering digital currency payment method as described in any of the previous embodiments.

[0141] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the mileage charging digital currency payment method described in any of the above embodiments.

[0142] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0143] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0144] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0145] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0146] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0147] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0148] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0149] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0150] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A mileage charging digital currency payment method, characterized in that: include: Obtaining a startup instruction, generating first authentication request data according to the startup instruction and sending the data to the platform; Receiving first authentication response data from the platform and performing authentication, and if the authentication is successful, collecting business data of the platform, wherein the business data includes location information; Encrypting the business data according to the first authentication response data to obtain encrypted business data and sending the encrypted business data to the platform; If it is determined that a platform response message from the platform is received, a mileage fee payment request message from the platform is received; Comparing the negotiation information with the mileage fee payment request message to generate a negotiation result, and if the negotiation result is determined to be successful, sending a mileage fee payment response message to the platform, wherein the negotiation information includes an instruction version number and a cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information; The receiving of the first authentication response data from the platform and performing authentication, and determining that the authentication is successful, and then collecting the business data of the platform, includes: Verifying the legitimacy of the platform according to the first authentication response data, and if the verification passes, generating a terminal negotiation key according to the first authentication response data; Verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiation key to obtain a verification result, and determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result, if they are consistent, the authentication is successful, and if they are inconsistent, the authentication fails; Repeat the operation of verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiated key until the number of repetitions is equal to the maximum number of attempts, and then enter the exception handling process; The platform includes a JT / T808 gateway, and the terminal includes an SE. Determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result includes: The terminal master application in the device terminal caches the session key ID and session key validity period; the terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH instruction; after receiving the MUTUAL AUTH instruction, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value (physical address value) and random ciphertext to verify the consistency with the negotiation key generated by the platform; the encryption application responds the verification result to the terminal master application as the authentication result; the terminal master application determines the authentication result.

2. The mileage charging digital currency payment method according to claim 1, characterized in that: The step of encrypting the business data according to the first authentication response data to obtain encrypted business data and sending the encrypted business data to the platform includes: Confirming that the authentication is successful, obtaining the key of the session key number in the first authentication response data; The business data is encrypted using the SM4 algorithm according to the key to obtain ciphertext data, and a physical address value is obtained by calculation based on the ciphertext data; The encrypted business data includes a physical address value and ciphertext data.

3. The mileage charging digital currency payment method according to claim 1, characterized in that: The generating a negotiation result according to the mileage fee payment request message by comparing the negotiation information, and if the negotiation result is successful, sending a mileage fee payment response message to the platform, includes: If the negotiation result is failure, the transaction information data in the mileage fee payment response message does not exist.

4. A mileage charging digital currency payment method, characterized in that: include: Receiving first authentication request data from a device terminal and performing authentication, and if the authentication is successful, generating first authentication response data and sending it to the device terminal; receiving encrypted service data from the device terminal, decrypting the encrypted service data to obtain plaintext service data, and sending a platform response message to the device terminal; By calling the mileage fee payment interface, a mileage fee payment request message is sent to the device terminal; receiving a mileage fee payment response message from the device terminal, determining that the negotiation result of the mileage fee payment response message is successful, executing a deduction operation, and notifying the user of the deduction details; The receiving first authentication request data from the device terminal and performing authentication comprises: Verifying the legitimacy of the platform according to the first authentication response data, and if the verification passes, generating a terminal negotiation key according to the first authentication response data; Verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiation key to obtain a verification result, and determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result, if they are consistent, the authentication is successful, and if they are inconsistent, the authentication fails; Repeat the operation of verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiated key until the number of repetitions is equal to the maximum number of attempts, and then enter the exception handling process; The platform includes a JT / T808 gateway, and the terminal includes an SE. Determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result includes: The terminal master application in the device terminal caches the session key ID and session key validity period; the terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH instruction; after receiving the MUTUAL AUTH instruction, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value (physical address value) and random ciphertext to verify the consistency with the negotiation key generated by the platform; the encryption application responds the verification result to the terminal master application as the authentication result; the terminal master application determines the authentication result.

5. The mileage charging digital currency payment method according to claim 4 is characterized in that: The receiving of first authentication request data from a device terminal and performing authentication, and determining that the authentication is successful, generating first authentication response data and sending it to the device terminal, comprises: Checking whether the device terminal has been registered according to the first authentication request data, and if it has been registered, performing a blacklist check and a security rule check on the device terminal; If both the blacklist check and the security rule check are passed, key negotiation is performed according to the first authentication request data to generate a platform negotiation key; Calculate the random ciphertext and physical address value according to the platform negotiation key; The first authentication response data is sent to the device terminal, wherein the first authentication response data includes a random ciphertext, a physical address value, and a session key number.

6. The mileage charging digital currency payment method according to claim 4 is characterized in that: The receiving of encrypted business data from the device terminal, decrypting the encrypted business data to obtain plaintext business data, and sending a platform response message to the device terminal includes: Performing an SM4 decryption operation on the ciphertext data in the encrypted business data to obtain plaintext business data; If it is confirmed that the plain text business data is obtained, the sending platform should send the message to the device terminal.

7. A mileage charging digital currency payment method, characterized in that: include: The device terminal obtains a startup instruction, generates first authentication request data according to the startup instruction, and sends the data to the platform; The platform receives the first authentication request data from the device terminal and performs authentication, and if the authentication is successful, generates first authentication response data and sends it to the device terminal; The device terminal receives the first authentication response data from the platform and performs authentication, and if the authentication is successful, collects the service data of the platform, wherein the service data includes location information; The device terminal encrypts the service data according to the first authentication response data to obtain encrypted service data and sends the encrypted service data to the platform; The platform receives the encrypted service data from the device terminal, decrypts the encrypted service data to obtain plaintext service data, and sends a platform response message to the device terminal; The platform sends the mileage fee payment request message to the device terminal by calling the mileage fee payment interface; The device terminal determines that the platform response message from the platform is received, and then receives the mileage fee payment request message from the platform; The device terminal compares the negotiation information with the mileage fee payment request message to generate a negotiation result, and if the negotiation result is determined to be successful, sends a mileage fee payment response message to the platform, wherein the negotiation information includes an instruction version number and a cryptographic algorithm, and the mileage fee payment response message includes the negotiation result and transaction information; The platform receives the mileage fee payment response message from the device terminal, determines that the negotiation result of the mileage fee payment response message is successful, executes the deduction operation, and notifies the user of the deduction details; The receiving of the first authentication response data from the platform and performing authentication, and determining that the authentication is successful, and then collecting the business data of the platform, includes: Verifying the legitimacy of the platform according to the first authentication response data, and if the verification passes, generating a terminal negotiation key according to the first authentication response data; Verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiation key to obtain a verification result, and determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result, if they are consistent, the authentication is successful, and if they are inconsistent, the authentication fails; Repeat the operation of verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiated key until the number of repetitions is equal to the maximum number of attempts, and then enter the exception handling process; The platform includes a JT / T808 gateway, and the terminal includes an SE. Determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result includes: The terminal master application in the device terminal caches the session key ID and session key validity period; the terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH instruction; after receiving the MUTUAL AUTH instruction, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value (physical address value) and random ciphertext to verify the consistency with the negotiation key generated by the platform; the encryption application responds the verification result to the terminal master application as the authentication result; the terminal master application determines the authentication result.

8. A mileage charging digital currency payment system, characterized in that: include: The device terminal is used to obtain a startup instruction, generate first authentication request data according to the startup instruction, and send the first authentication request data to the platform; Used to receive the first authentication response data from the platform and perform authentication, and if the authentication is successful, collect the business data of the platform, wherein the business data includes location information; used to encrypt the business data to obtain encrypted business data and send it to the platform; used to determine that a platform response message from the platform is received, then receive a mileage fee payment request message; used to compare the negotiation information according to the mileage fee payment request message to generate a negotiation result, and if the negotiation result is successful, send a mileage fee payment response message to the platform, wherein the negotiation information includes an instruction version number and a cryptographic algorithm, and the mileage fee payment response message includes a negotiation result and transaction information; The platform is used to receive first authentication request data from a device terminal and perform authentication, and if the authentication is successful, generate first authentication response data and send it to the device terminal; receive encrypted business data from the device terminal, decrypt the encrypted business data to obtain plaintext business data, and send a platform response message to the device terminal; call a mileage fee payment interface, and send a mileage fee payment request message to the device terminal; receive a mileage fee payment response message from the device terminal, and if the negotiation result of the mileage fee payment response message is successful, perform a deduction operation, and notify the user of the deduction details; The receiving of the first authentication response data from the platform and performing authentication, and determining that the authentication is successful, and then collecting the business data of the platform, includes: Verifying the legitimacy of the platform according to the first authentication response data, and if the verification passes, generating a terminal negotiation key according to the first authentication response data; Verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiation key to obtain a verification result, and determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result, if they are consistent, the authentication is successful, and if they are inconsistent, the authentication fails; Repeat the operation of verifying the physical address value and the random ciphertext in the first authentication response data according to the terminal negotiated key until the number of repetitions is equal to the maximum number of attempts, and then enter the exception handling process; The platform includes a JT / T808 gateway, and the terminal includes an SE. Determining whether the terminal negotiation key is consistent with the platform negotiation key in the platform according to the verification result includes: The terminal master application in the device terminal caches the session key ID and session key validity period; the terminal master application sends the JT / T808 gateway response data to the SE encryption application through the MUTUAL AUTH instruction; after receiving the MUTUAL AUTH instruction, the encryption application first verifies the platform signature value to verify the legitimacy of the platform. After the verification is passed, the encryption application generates a negotiation key based on the input data, and then verifies the MAC value (physical address value) and random ciphertext to verify the consistency with the negotiation key generated by the platform; the encryption application responds the verification result to the terminal master application as the authentication result; the terminal master application determines the authentication result.