Public transportation smart card recharging method, system and composite wallet

Through the communication and authentication code verification between the composite wallet and the public transportation smart card, the problem that existing smart cards do not support digital currency recharge is solved, and the recharge operation is achieved without changing the structure and procedures, which improves the flexibility and security of recharge.

CN114581082BActive Publication Date: 2025-08-08THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210302658.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-04-01
Filing Date
2022-03-25
Publication Date
2025-08-08
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

Existing public transportation smart cards do not support digital currency recharge, and the replacement cost is high, resulting in waste of resources.

Method used

Communication is established with the public transportation smart card through a composite wallet, and authentication code verification is performed using process keys and algorithmic identification to realize the recharge process of digital currency, including recharge initialization, pre-device storage and platform settlement.

Benefits of technology

Without changing the existing smart card structure and programs, digital currency recharge is realized, compatible with existing smart cards, improving the flexibility and security of recharge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581082B_ABST
    Figure CN114581082B_ABST
Patent Text Reader

Abstract

The present invention provides a public transportation smart card recharge method, system, and composite wallet. The method comprises: the composite wallet establishes communication with the public transportation smart card and sends a recharge initialization request to the public transportation smart card. After receiving the returned recharge initialization response, the composite wallet sends the digital currency corresponding to the recharge amount to the public transportation front-end device. The public transportation front-end device stores the digital currency and sends the recharge information to the public transportation platform. The public transportation platform generates transaction information and returns a recharge confirmation response to the composite wallet. The composite wallet completes the recharge operation on the public transportation smart card. The method is compatible with existing public transportation smart cards and achieves the purpose of completing recharge using digital currency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a method and system for recharging a public transportation smart card and a composite wallet. Background Art

[0002] Existing public transportation smart cards do not support the collection of digital currency when recharging. If public transportation smart cards are replaced uniformly, the cost will be high and it will easily cause waste of resources. Therefore, how to achieve the purpose of recharging through digital currency without changing the structure and procedures of public transportation smart cards has become an urgent problem to be solved. Summary of the Invention

[0003] The present invention aims to solve one of the problems.

[0004] The main purpose of the present invention is to provide a method for recharging a public transportation smart card.

[0005] Another object of the present invention is to provide a composite wallet.

[0006] Another object of the present invention is to provide a public transportation smart card recharging system.

[0007] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:

[0008] On one hand, the present invention provides a method for recharging a public transportation smart card, comprising: establishing communication between a composite wallet and a public transportation smart card; the composite wallet sending a recharge initialization request to the public transportation smart card, wherein the recharge initialization request includes: recharge information, and the recharge information includes: recharge amount and the terminal serial number of the composite wallet; the composite wallet receives a recharge initialization response returned by the public transportation smart card, and the recharge initialization response includes: a pseudo-random number, a transaction serial number, a first algorithm identifier, and a first authentication code calculated and generated by the algorithm corresponding to the first algorithm identifier and a process key for the recharge information; wherein the process key is obtained according to the pseudo-random number and the transaction serial number; the composite wallet verifies the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier, and after the verification is passed, sends a first recharge request to a public transportation front-end device, wherein the first recharge request includes: the recharge information, the digital currency corresponding to the recharge amount, and the recharge voucher; the public transportation front-end device receives the first recharge request, and verifies the first authentication code. The composite wallet receives the recharge confirmation response, uses the algorithm corresponding to the second algorithm identifier and the process key to calculate the transaction information to generate a second authentication code, and returns a third recharge request to the public transportation smart card, wherein the third recharge request includes: the transaction information, the second algorithm identifier and the second authentication code; the composite wallet receives the recharge completion response returned by the public transportation smart card, and the recharge completion response is returned to the composite wallet after the public transportation smart card receives the third recharge request and verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier.

[0009] Optionally, before the composite wallet sends a recharge initialization request to the public transportation smart card, the method further includes: the composite wallet receiving a recharge instruction input through the composite wallet's input device, voice recognition input device or external device.

[0010] Optionally, the transaction information also includes: recharge time and / or transaction type.

[0011] Optionally, before the composite wallet receives the recharge completion response returned by the public transportation smart card, the method also includes: the public transportation smart card receives the third recharge request, verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier, updates the local balance according to the recharge amount, increases the transaction sequence number by 1, and returns the recharge completion response to the composite wallet.

[0012] Another aspect of the present invention provides a composite wallet, comprising: a first communication module for establishing communication with a public transportation smart card; a control module for sending a recharge initialization request to the public transportation smart card through the first communication module, wherein the recharge initialization request includes: recharge information, the recharge information including: recharge amount and the terminal serial number of the composite wallet; the control module is further configured to receive a recharge initialization response returned by the public transportation smart card through the first communication module, the recharge initialization response including: a pseudo-random number, a transaction sequence number, a first algorithm identifier, and a first authentication code generated by calculating the recharge information using the algorithm corresponding to the first algorithm identifier and a process key; wherein the process key is obtained based on the pseudo-random number and the transaction sequence number; the control module is further configured to verify the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier, and after the verification is passed, send a first recharge request to a public transportation front-end device through the second communication module, wherein the first recharge request includes: the recharge information, the digital currency corresponding to the recharge amount and the recharge voucher; the second communication module is configured to send the first recharge request to the public transportation front-end device; and is further configured to receive a public transportation front-end device. The control module is further configured to calculate and generate a second authentication code based on the transaction information using the algorithm corresponding to the second algorithm identifier and the process key, and return a third recharge request to the public transportation smart card via the first communication module, wherein the third recharge request includes: the transaction information, the second algorithm identifier, and the second authentication code; the first communication module is further configured to receive a recharge completion response returned by the public transportation smart card, wherein the recharge completion response is returned by the public transportation smart card to the composite wallet after the public transportation smart card receives the third recharge request and successfully verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier.

[0013] Optionally, the composite wallet further includes: an input device and a voice recognition input device, wherein: the control module is further used to receive a recharge instruction in one of the following ways before sending a recharge initialization request to the public transportation smart card through the first communication module: receiving the recharge instruction input through the input device, the voice recognition input device or an external device; the input device is used to input the recharge instruction; the voice recognition input device is used to input the recharge instruction by voice.

[0014] Optionally, the transaction information also includes: recharge time and / or transaction type.

[0015] On the other hand, the present invention provides a public transportation smart card recharge system, comprising: the composite wallet as described above, a public transportation smart card, a public transportation front-end device and a public transportation platform; wherein: the public transportation smart card is used to establish communication with the composite wallet, receive the recharge initialization request sent by the composite wallet, and return the recharge initialization response to the composite wallet; the public transportation front-end device is used to receive a first recharge request sent by the composite wallet, and after verifying the recharge voucher, store the digital currency corresponding to the recharge amount, and send a second recharge request carrying the recharge information to the public transportation platform; the public transportation platform is used to receive the second recharge request, generate the transaction information, and return the recharge confirmation response to the composite wallet according to the terminal serial number of the composite wallet; the public transportation smart card is also used to receive the third recharge request, and after verifying the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier, return the recharge completion response to the composite wallet.

[0016] As can be seen from the technical solutions provided by the present invention, a method, system, and composite wallet for recharging a public transportation smart card are provided. The composite wallet sends the digital currency corresponding to the recharge amount to a public transportation front-end device, which stores the digital currency. The public transportation platform completes the transaction settlement, and the composite wallet completes the recharge operation on the public transportation smart card. This allows compatibility with existing public transportation smart cards without changing their structure and procedures, achieving the goal of completing recharges using digital currency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 This is a flow chart of the method for recharging a public transportation smart card provided in Example 1 of the present invention;

[0019] Figure 2 A schematic diagram of the structure of a public transportation smart card recharging system provided in Example 2 of the present invention;

[0020] Figure 3 This is a schematic diagram of the structure of the composite wallet provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0021] The following is a clear and complete description of the technical solutions in the embodiments of the present invention, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0022] In the description of the present invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "back," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate description and simplify the present invention. They are not intended to indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation, and therefore should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, quantity, or position.

[0023] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0024] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0025] Example 1

[0026] This embodiment provides a method for recharging a public transportation smart card. Figure 1 The following is a flow chart of a method for recharging a public transportation smart card. Figure 1 As shown, the method is applied to, and the method includes the following steps (S101-S108):

[0027] S101, the composite wallet establishes communication with the public transportation smart card;

[0028] In this embodiment, the composite wallet is a hardware terminal with multiple functions. It features card reading, short-range communication, and long-range communication capabilities, as well as digital currency storage and secure authentication. The public transportation smart card can be a physical card, such as an IC card or Beijing One Card, or an app installed on a smart terminal, such as a public transportation one-card app, a ride code app, or Yitongxing app. Passengers can use this public transportation smart card to swipe and purchase tickets on public transportation, such as buses and subways. In this embodiment, the structure and internal programming of the public transportation smart card remain unchanged. Therefore, the public transportation smart card recharge method provided in this embodiment is compatible with existing public transportation smart cards.

[0029] In this embodiment, the hybrid wallet establishes short-range communication with the public transportation smart card, such as NFC. Furthermore, the hybrid wallet also has a built-in remote communication module, such as 4G, 5G, Wi-Fi, Narrow Band Internet of Things (NB-IoT), and Bluetooth, through which it communicates with public transportation front-end devices and public transportation platforms.

[0030] S102: The composite wallet sends a recharge initialization request to the public transportation smart card, wherein the recharge initialization request includes recharge information, including a recharge amount and a terminal serial number of the composite wallet;

[0031] In this embodiment, the recharge amount is the amount entered and confirmed by the user, and the terminal serial number of the composite wallet can uniquely identify the composite wallet.

[0032] As an optional implementation in this embodiment, before the hybrid wallet sends a recharge initialization request to the public transportation smart card, the method provided in this embodiment further includes: the hybrid wallet receiving a recharge instruction input through the hybrid wallet's input device, voice recognition input device, or external device. In this embodiment, the hybrid wallet is also provided with an input device and a voice recognition input device. The input device can be a hardware key structure or a touch screen. The external device can be a smart terminal connected to the hybrid wallet, such as a mobile phone, wearable device, smart keyboard, or PC. After the user enters the recharge amount through the input device, voice recognition input device, or external device and confirms the recharge, the hybrid wallet initiates the recharge process.

[0033] S103: The composite wallet receives a recharge initialization response returned by the public transportation smart card. The recharge initialization response includes: a pseudo-random number, a transaction sequence number, a first algorithm identifier, and a first authentication code generated by calculating the recharge information using an algorithm corresponding to the first algorithm identifier and a process key; wherein the process key is obtained based on the pseudo-random number and the transaction sequence number.

[0034] In this embodiment, after receiving a recharge initialization request from a composite wallet, the public transportation smart card generates a pseudo-random number and obtains a locally stored transaction sequence number. The pseudo-random number and transaction sequence number are processed and used as process keys. The algorithm and process key corresponding to the first algorithm identifier are used to calculate the first authentication code for the recharge information. The calculation of the recharge information using the algorithm and process key corresponding to the first algorithm identifier includes encryption and signing. A recharge initialization response is then returned to the composite wallet, allowing the composite wallet to verify the identity of the public transportation smart card, thereby ensuring transaction security.

[0035] S104: The composite wallet verifies the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier. After the verification is successful, the composite wallet sends a first recharge request to the public transportation front-end device. The first recharge request includes: recharge information, digital currency corresponding to the recharge amount, and a recharge voucher.

[0036] In this embodiment, after receiving the recharge initialization response from the public transportation smart card, the composite wallet obtains a pseudo-random number and a transaction sequence number from the recharge initialization response. The pseudo-random number and transaction sequence number are processed in the same manner as the public transportation smart card to obtain a process key. The composite wallet then queries the corresponding algorithm locally based on the first algorithm identifier and verifies the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier. In step S103, if the first authentication code is obtained through encryption, then verifying the first authentication code in this step corresponds to decrypting the first authentication code; if the first authentication code is obtained through signature, then verifying the first authentication code in this step corresponds to verifying the signature of the first authentication code. By verifying the first authentication code, the legitimacy of the public transportation smart card can be guaranteed, thereby ensuring the security of transactions with the public transportation smart card and preventing attackers from making illegal recharges.

[0037] Furthermore, as an optional implementation of this embodiment, before sending the first recharge request to the public transportation front-end device, the method provided in this embodiment further includes: the composite wallet authenticating the public transportation front-end device. This authentication method can be certificate authentication, signature authentication, or other methods. This ensures the legitimacy of the public transportation front-end device.

[0038] In this embodiment, after confirming the legitimacy of the public transportation smart card, the hybrid wallet deducts the digital currency corresponding to the top-up amount and sends it to the public transportation front-end device, completing the top-up using the digital currency. The public transportation front-end device can store the digital currency, acting as a digital currency collection device, and communicate with the hybrid wallet and the public transportation platform. The communication connection established between the public transportation front-end device and the hybrid wallet can include wired and wireless connections, including but not limited to serial ports, USB, magnetic suction, NFC, and Bluetooth. The communication connection established between the public transportation front-end device and the public transportation platform can include wired and wireless connections, including but not limited to serial ports, USB, magnetic suction, NFC, 4G, 5G, Wi-Fi, NarrowBand Internet of Things (NB-IoT), and Bluetooth.

[0039] S105: The public transportation front-end device receives the first recharge request, verifies the recharge voucher, and after passing the verification, stores the digital currency corresponding to the recharge amount and sends a second recharge request to the public transportation platform, where the second recharge request includes recharge information.

[0040] Among them, the recharge voucher can be a certificate or digital signature of the composite wallet. The public transportation front-end device verifies the legitimacy of the recharge voucher including the certificate of the composite wallet, or verifies the digital signature, thereby ensuring the legitimacy of the identity of the composite wallet and preventing illegal recharge.

[0041] Optionally, in order to ensure the security of data storage, the public transportation front-end device can also encrypt the digital currency and store it.

[0042] S106. The public transportation platform receives the second recharge request, generates transaction information, and sends a recharge confirmation response to the composite wallet according to the terminal serial number of the composite wallet. The recharge confirmation response includes transaction information, and the transaction information includes recharge information.

[0043] In this embodiment, the public transportation platform can determine the address information of the composite wallet based on the composite wallet's terminal serial number, establish remote communication with the composite wallet, and send a recharge confirmation response to the composite wallet via the remote communication connection, instructing the composite wallet to write the recharge amount to the public transportation smart card. As a backend, the public transportation platform can receive recharge requests initiated by multiple composite wallets, complete the recharge transactions for each composite wallet based on the terminal serial number of each composite wallet, and perform corresponding accounting and settlement for each composite wallet.

[0044] As an optional implementation in this embodiment, the transaction information also includes: recharge time and / or transaction type. The recharge time can uniquely identify the recharge transaction to prevent duplicate transactions. The transaction type can include digital currency recharge and regular bus card recharge to identify whether the transaction is a digital currency transaction or a regular bus card recharge transaction.

[0045] S107: The composite wallet receives the recharge confirmation response, calculates the second authentication code based on the transaction information using the algorithm and process key corresponding to the second algorithm identifier, and returns a third recharge request to the public transportation smart card. The third recharge request includes: the transaction information, the second algorithm identifier, and the second authentication code.

[0046] The process key is the key mentioned in step S103. The algorithm and process key corresponding to the second algorithm identifier are used to calculate the recharge information, including encryption and signing. A second authentication code is sent to the public transportation smart card to facilitate verification of the composite wallet by the public transportation smart card, thereby ensuring transaction security.

[0047] S108. The composite wallet receives a recharge completion response from the public transportation smart card. The recharge completion response is returned to the composite wallet after the public transportation smart card receives the third recharge request and verifies the second authentication code using the algorithm corresponding to the process key and the second algorithm identifier.

[0048] In this embodiment, after receiving the third recharge request from the composite wallet, the public transportation smart card obtains the second algorithm identifier from the third recharge request, uses the second algorithm identifier to query the corresponding algorithm locally, and verifies the second authentication code using the process key mentioned in step S103 and the algorithm corresponding to the second algorithm identifier. In step S107, if the second authentication code is obtained through encryption, then verifying the second authentication code in this step corresponds to decrypting the second authentication code; if the second authentication code is obtained through signature, then verifying the second authentication code in this step corresponds to verifying the signature of the second authentication code. By verifying the second authentication code, the legitimacy of the composite wallet can be guaranteed, thereby ensuring the security of transactions with the composite wallet and completing the recharge.

[0049] As an optional implementation manner in this embodiment, before the composite wallet receives the recharge completion response returned by the public transportation smart card, the method provided in this embodiment also includes: the public transportation smart card receives the third recharge request, verifies the second authentication code using the algorithm corresponding to the process key and the second algorithm identifier, updates the local balance according to the recharge amount, increases the transaction sequence number by 1, and returns a recharge completion response to the composite wallet.

[0050] As a result, the balance of the public transportation smart card is changed to the recharged amount, and the recharge is completed.

[0051] Through the public transportation smart card recharge method provided in this embodiment, the hybrid wallet sends the digital currency corresponding to the recharge amount to the public transportation front-end device, which stores the digital currency. The public transportation platform completes the settlement, and the hybrid wallet completes the recharge operation on the public transportation smart card. This allows compatibility with existing public transportation smart cards without changing their structure and procedures, achieving the goal of completing recharge using digital currency.

[0052] Figure 2 This is a schematic diagram of the structure of a public transportation smart card recharging system provided by an embodiment of the present invention. Figure 3 This is a schematic diagram of the structure of the composite wallet provided in an embodiment of the present invention. The public transportation smart card recharge system provided in an embodiment of the present invention is applied to the above method. The following is only a brief description of the structure of the public transportation smart card recharge system and the composite wallet. For other matters not covered, please refer to the relevant description of the above public transportation smart card recharge method.

[0053] See also Figure 2 The public transportation smart card recharge system 100 provided by the embodiment of the present invention includes: a composite wallet 10, a public transportation smart card 20, a public transportation front-end device 30 and a public transportation platform 40. Among them, the composite wallet 10 can communicate with the public transportation smart card 20, the public transportation front-end device 30 and the public transportation platform 40 respectively. The composite wallet 10 establishes communication with the public transportation smart card 20 and initiates a recharge initialization request to the public transportation smart card 20; the public transportation smart card is used to establish communication with the composite wallet, receive the recharge initialization request sent by the composite wallet, and return the recharge initialization response to the composite wallet; after the composite wallet 10 passes the identity authentication of the public transportation smart card 20, it initiates a first recharge request to the public transportation front-end device 30, and sends the digital currency corresponding to the recharge amount to the public transportation front-end device 30. After the public transportation front-end device 30 passes the identity authentication of the composite wallet 20, it stores the recharge amount. The public transportation platform 40 receives the digital currency corresponding to the amount of the recharge, and sends a second recharge request carrying the recharge information to the public transportation platform 40; the public transportation platform 40 is used to receive the second recharge request, generate the transaction information, and return a recharge confirmation response to the composite wallet 10 based on the terminal serial number of the composite wallet 10; the composite wallet 10 initiates a third recharge request to the public transportation smart card 20, and the public transportation smart card 20 is further used to receive the third recharge request, verify the second authentication code using the algorithm corresponding to the process key and the second algorithm identifier, and then return the recharge completion response to the composite wallet 10. Here, only a brief description of the interaction between the various devices in the public transportation smart card recharge system 100 is provided. For specific details, please refer to the description of the public transportation smart card recharge method above and will not be repeated here.

[0054] See also Figure 3 The composite wallet 10 provided by the embodiment of the present invention includes: a first communication module 101, a second communication module 102 and a control module 103, wherein:

[0055] The first communication module 101 is used to establish communication with the public transportation smart card 20;

[0056] The control module 103 is configured to send a recharge initialization request to the public transportation smart card through the first communication module 101, wherein the recharge initialization request includes recharge information, including a recharge amount and a terminal serial number of the composite wallet 10;

[0057] The control module 103 is further configured to receive, via the first communication module 101, a recharge initialization response returned by the public transportation smart card 20, the recharge initialization response including: a pseudo-random number, a transaction sequence number, a first algorithm identifier, and a first authentication code generated by calculating the recharge information using the algorithm corresponding to the first algorithm identifier and a process key; wherein the process key is obtained based on the pseudo-random number and the transaction sequence number;

[0058] The control module 103 is further configured to verify the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier. After the verification is successful, the control module 103 sends a first recharge request to the public transportation front-end device 30 via the second communication module 102. The first recharge request includes: recharge information, digital currency corresponding to the recharge amount, and a recharge voucher.

[0059] The second communication module 102 is used to send a first recharge request to the public transportation front-end device 30; and is also used to receive a recharge confirmation response returned by the public transportation platform 40, the recharge confirmation response including transaction information generated by the public transportation platform 40, and the transaction information including recharge information, wherein the recharge confirmation response is the public transportation front-end device 30 receiving the first recharge request, verifying the recharge voucher, storing the digital currency corresponding to the recharge amount, and sending a second recharge request carrying the recharge information to the public transportation platform 40. The public transportation platform 40 receives the second recharge request, generates transaction information, and sends it to the composite wallet 10 according to the terminal serial number of the composite wallet;

[0060] The control module 103 is further configured to calculate the second authentication code based on the transaction information using the algorithm and process key corresponding to the second algorithm identifier, and return a third recharge request to the public transportation smart card 20 via the first communication module 101, where the third recharge request includes: the transaction information, the second algorithm identifier, and the second authentication code;

[0061] The first communication module 101 is further configured to receive a recharge completion response returned by the public transportation smart card 20. The recharge completion response is returned to the composite wallet 10 after the public transportation smart card 20 receives the third recharge request and verifies the second authentication code using the algorithm corresponding to the process key and the second algorithm identifier.

[0062] The first communication module 101 may include, but is not limited to, a serial port, USB, magnetic connection, NFC, and Bluetooth. The second communication module 102 may include, but is not limited to, a serial port, USB, magnetic connection, NFC, 4G, 5G, Wi-Fi, NarrowBand Internet of Things (NB-IoT), and Bluetooth.

[0063] As an optional implementation in this embodiment, the composite wallet 10 provided in this embodiment further includes an input device and a voice recognition input device (not shown). The input device can be a hardware key structure or a touch screen. The control module 103 is further configured to receive a recharge instruction through one of the following methods before sending a recharge initialization request to the public transportation smart card 20 via the first communication module 101: receiving a recharge instruction input via an input device, a voice recognition input device, or an external device; the input device is configured to input a recharge instruction; the voice recognition input device is configured to input a recharge instruction via voice.

[0064] As an optional implementation in this embodiment, the transaction information also includes: recharge time and / or transaction type. The recharge time can uniquely identify the recharge transaction to prevent duplicate transactions. The transaction type can include digital currency recharge and regular bus card recharge to identify whether the transaction is a digital currency transaction or a regular bus card recharge transaction.

[0065] The public transportation smart card recharge system and hybrid wallet provided in this embodiment transmits the digital currency corresponding to the recharge amount to the public transportation front-end device, which then stores the digital currency. The public transportation platform completes the settlement, and the hybrid wallet completes the recharge operation on the public transportation smart card. This allows for compatibility with existing public transportation smart cards without changing their structure or program, achieving the goal of completing recharges using digital currency.

[0066] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.

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

[0068] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0069] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.

[0070] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0071] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0072] Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and are not to be construed as limiting the present invention. Those skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments without departing from the principles and intent of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for recharging a public transportation smart card, characterized in that: The method comprises: The composite wallet establishes communication with the public transportation smart card; The composite wallet sends a recharge initialization request to the public transportation smart card, wherein the recharge initialization request includes: recharge information, and the recharge information includes: recharge amount and terminal serial number of the composite wallet; The composite wallet receives a recharge initialization response returned by the public transportation smart card, the recharge initialization response including: a pseudo-random number, a transaction sequence number, a first algorithm identifier, and a first authentication code generated by calculating the recharge information using an algorithm corresponding to the first algorithm identifier and a process key; wherein the process key is obtained based on the pseudo-random number and the transaction sequence number; The composite wallet verifies the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier. After the verification is successful, the composite wallet sends a first recharge request to the public transportation front-end device, where the first recharge request includes: the recharge information, the digital currency corresponding to the recharge amount, and the recharge voucher; The public transportation front-end device receives the first recharge request, verifies the recharge voucher, and after passing the verification, stores the digital currency corresponding to the recharge amount, and sends a second recharge request to the public transportation platform, where the second recharge request includes the recharge information; The public transportation platform receives the second recharge request, generates transaction information, and sends a recharge confirmation response to the composite wallet according to the terminal serial number of the composite wallet, wherein the recharge confirmation response includes the transaction information, and the transaction information includes the recharge information; The composite wallet receives the recharge confirmation response, calculates the second authentication code based on the transaction information using the algorithm corresponding to the second algorithm identifier and the process key, and returns a third recharge request to the public transportation smart card, wherein the third recharge request includes: the transaction information, the second algorithm identifier, and the second authentication code; The composite wallet receives a recharge completion response returned by the public transportation smart card, where the recharge completion response is returned to the composite wallet after the public transportation smart card receives the third recharge request and verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier.

2. The method according to claim 1, characterized in that Before the composite wallet sends a recharge initialization request to the public transportation smart card, the method further includes: The composite wallet receives a recharge instruction inputted through an input device of the composite wallet, a voice recognition input device or an external device.

3. The method according to claim 1, characterized in that The transaction information also includes: recharge time and / or transaction type.

4. The method according to any one of claims 1 to 3, characterized in that Before the composite wallet receives the recharge completion response returned by the public transportation smart card, the method further includes: The public transportation smart card receives the third recharge request, verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier, updates the local balance according to the recharge amount, increases the transaction sequence number by 1, and returns the recharge completion response to the composite wallet.

5. A composite wallet, characterized in that: include: A first communication module, configured to establish communication with a public transportation smart card; a control module, configured to send a recharge initialization request to the public transportation smart card through the first communication module, wherein the recharge initialization request includes recharge information, and the recharge information includes a recharge amount and a terminal serial number of the composite wallet; The control module is further configured to receive, via the first communication module, a recharge initialization response returned by the public transportation smart card, the recharge initialization response including: a pseudo-random number, a transaction sequence number, a first algorithm identifier, and a first authentication code generated by calculating the recharge information using an algorithm corresponding to the first algorithm identifier and a process key; wherein the process key is obtained based on the pseudo-random number and the transaction sequence number; The control module is further configured to verify the first authentication code using the process key and the algorithm corresponding to the first algorithm identifier, and after the verification is successful, send a first recharge request to the public transportation front-end device via the second communication module, wherein the first recharge request includes: the recharge information, the digital currency corresponding to the recharge amount, and the recharge voucher; The second communication module is used to send a first recharge request to the public transportation front-end device; and is also used to receive a recharge confirmation response returned by the public transportation platform, wherein the recharge confirmation response includes transaction information generated by the public transportation platform, and the transaction information includes the recharge information, wherein the recharge confirmation response is the public transportation front-end device receiving the first recharge request, verifying the recharge voucher, storing the digital currency corresponding to the recharge amount, and sending a second recharge request carrying the recharge information to the public transportation platform. The public transportation platform receives the second recharge request, generates the transaction information, and sends it to the composite wallet according to the terminal serial number of the composite wallet; The control module is further configured to calculate and generate a second authentication code based on the transaction information using the algorithm corresponding to the second algorithm identifier and the process key, and return a third recharge request to the public transportation smart card via the first communication module, wherein the third recharge request includes: the transaction information, the second algorithm identifier, and the second authentication code; The first communication module is further configured to receive a recharge completion response returned by the public transportation smart card. The recharge completion response is returned to the composite wallet after the public transportation smart card receives the third recharge request and verifies the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier.

6. The composite wallet according to claim 5, characterized in that: Also includes: Input device and voice recognition input device, wherein: The control module is further configured to receive a recharge instruction by one of the following means before sending a recharge initialization request to the public transportation smart card through the first communication module: receiving the recharge instruction input through the input device, the voice recognition input device, or an external device; The input device is used to input the recharge instruction; The voice recognition input device is used to input the recharge instruction by voice.

7. The composite wallet according to claim 5, characterized in that: The transaction information also includes: recharge time and / or transaction type.

8. A public transportation smart card recharging system, characterized in that: include: The composite wallet, public transportation smart card, public transportation front-end device, and public transportation platform according to any one of claims 5 to 7; wherein: The public transportation smart card is used to establish communication with the composite wallet, receive the recharge initialization request sent by the composite wallet, and return the recharge initialization response to the composite wallet; The public transportation front-end device is configured to receive a first recharge request sent by the composite wallet, store the digital currency corresponding to the recharge amount after verifying the recharge voucher, and send a second recharge request carrying the recharge information to the public transportation platform; The public transportation platform is configured to receive the second recharge request, generate the transaction information, and return the recharge confirmation response to the composite wallet according to the terminal serial number of the composite wallet; The public transportation smart card is further configured to receive the third recharge request, verify the second authentication code using the process key and the algorithm corresponding to the second algorithm identifier, and then return the recharge completion response to the composite wallet.

Citation Information

Patent Citations

  • Method, device and system for recharging electronic purse

    CN101996442A

  • Method, system and PSAM (Purchase Secure Access Module) card for updating encryption key of smart card

    CN102063767A