A digital currency label code card activation device and activation method
By designing a digital currency tag code activation device for scanning, storage, wireless reading, writing and locking modules, the problems of cumbersome activation process and security risks in the existing technology are solved, and convenient and secure activation and locking of digital currency tag code is achieved. Function.
Patent Information
- Application Number
- CN202110760175.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-07-06
AI Technical Summary
The activation process of the existing digital currency "touch" tag code cards is cumbersome, error-prone, and costly, and has security risks. Especially for smartphones that do not support NFC functions, initialization and activation are inconvenient.
A digital currency tag code activation device including scanning module, storage module, wireless reading and writing module, comparison module and locking module is designed. The collection code is analyzed by scanning code, and the wireless reading and writing module is used for reading, writing and calibration. Verify the operation, combined with encryption protocol or locking function, to ensure the convenience and security of the activation process.
It realizes convenient activation and secure locking of digital currency tags, reduces operational complexity and manual participation, improves the accuracy and security of the activation process, and is suitable for various smartphones, including devices that do not support NFC functions.
Smart Images

Figure CN113920661B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital currency transaction, and in particular to a digital currency label code card activation device and activation method. Background Art
[0002] "Touch and Pay" is a payment function of digital currency, and the touch between mobile phones and NFC tags is one of the manifestations. Merchants can integrate "touch and pay" tags on digital currency payment code cards, which can realize digital currency scanning payment while also supporting "touch and pay" payment methods.
[0003] Currently, there is no secure activation tool for digital currency "touch and pay" tag code cards on the market. Usually, the "touch and pay" tag code cards are activated using a mobile phone. When using a mobile phone for activation, the user needs to prepare a mobile phone with NFC function and download the software for reading the payment code. The software scans the code to read the payment code. The user manually copies the payment code, then opens the NFC tool of the mobile phone, pastes the payment code into the NFC tool, and then writes the payment code to the tag code card.
[0004] When verifying the payment code in the tag code card, you need to read the payment code through the NFC tool of the mobile phone, and then manually check whether the payment code in the tag code card is the same as the payment code stored in the mobile phone.
[0005] If you want to lock the tag code card, the NFC tool on your mobile phone needs to have a locking function. Usually, NFC tools with a locking function are paid.
[0006] It can be seen that the existing method of activating the "touch and pay" tag code card through a mobile phone is extremely cumbersome, requires manual participation, is prone to errors, and is costly. The operation process also uses third-party tools, which has certain security risks. Moreover, some smartphones do not support NFC, which also makes the "touch and pay" NFC tag code card initialization / activation not very convenient. Summary of the invention
[0007] Based on the above situation, the main purpose of the present invention is to provide a digital currency label code card activation device and method, which can ensure the convenience of activating the label code card while ensuring the security of merchant payment collection.
[0008] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0009] A digital currency tag activation device includes: a scanning module, a storage module, a wireless reading and writing module, a comparison module and a locking module, wherein:
[0010] The scanning module is used to scan the digital currency payment code associated with the digital currency label code card, and transmit the scanning result to the storage module for storage;
[0011] The storage module is used to store the digital currency payment code;
[0012] The wireless reading and writing module is used to write the digital currency payment code stored in the storage module into the digital currency label code card to be activated, read the digital currency payment code in the digital currency label code card, and write the locking digital currency label code card signal issued by the locking module into the digital currency label code card;
[0013] The comparison module is used to compare whether the digital currency payment code read by the wireless reading and writing module from the digital currency tag code card is the same as the digital currency payment code stored in the storage module, and transmit the comparison result to the locking module;
[0014] The locking module is used to send a locking digital currency tag code card signal to the wireless reading and writing module when the comparison result of the comparison module is the same, so as to lock the digital currency tag code card through the wireless reading and writing module to activate the digital currency tag code card.
[0015] Preferably, it also includes a judgment module for judging whether the digital currency payment code scanned by the scanning module is legal, and if the digital currency payment code is legal, storing the digital currency payment code in the storage module.
[0016] Preferably, the wireless reading and writing module performs reading and writing operations on the digital currency tag code card based on APDU instructions.
[0017] Preferably, the locking digital currency tag code card signal sent by the locking module is used to: set the digital currency tag code card to a read-only mode, or encrypt the write operation of the digital currency tag code card.
[0018] Preferably, the digital currency tag code card includes an NFC tag code card chip.
[0019] Preferably, the activation device is integrated into a POS machine.
[0020] Preferably, the wireless reading and writing module is a contactless card module of the POS machine.
[0021] The present invention also provides a method for activating a digital currency label code card, which is activated by using the digital currency label code card activation device of the present invention, and includes the steps of:
[0022] S10: Scanning the digital currency payment code associated with the digital currency label code card through the scanning module, and storing the scanning result in the storage module;
[0023] S20: writing the digital currency payment code stored in the storage module into the digital currency label code card to be activated through the wireless reading and writing module;
[0024] S30: Reading the digital currency payment code in the digital currency label code card through the wireless reading and writing module;
[0025] S40: comparing the digital currency payment code read from the digital currency tag by the wireless reading and writing module with the digital currency payment code stored in the storage module through the comparison module to see if they are the same. If the comparison result is the same, executing step S50;
[0026] S50: Sending a locking digital currency tag code card signal to the wireless reading and writing module through the locking module, and writing the locking digital currency tag code card signal into the digital currency tag code card through the wireless reading and writing module to lock the digital currency tag code card and activate it.
[0027] Preferably, in step S40, if the comparison result is not the same, a prompt message is issued and the process returns to step S20.
[0028] Preferably, the step S20 includes:
[0029] S201: Generate a data packet from the digital currency payment code stored in the storage module according to the communication protocol of the wireless read / write module, wherein the data packet includes, from high to low, 1 byte of write instruction, 1 byte of start page address, 2 bytes of CRC check code, 4 bytes of data to be written and 4 bits of response signal;
[0030] S202: writing the data packet into the digital currency tag to be activated through the wireless reading and writing module;
[0031] The step S30 comprises:
[0032] S301: sending a read instruction to the digital currency tag code card through the wireless reading and writing module according to the communication protocol of the wireless reading and writing module;
[0033] S302: Receive a data packet sent by the digital currency tag through the wireless reading and writing module, wherein the data packet includes, from high to low, a 1-byte read instruction, a 1-byte start page address, a 1-byte end page address, a 2-byte CRC check code, n*4 bytes of data, and a 4-bit response signal, wherein n is greater than or equal to 1;
[0034] The step S50 comprises:
[0035] S501: Generate the locked digital currency tag code card signal data packet according to the communication protocol of the wireless read-write module, and send the locked digital currency tag code card signal data packet to the wireless read-write module through the locking module, and the data packet includes from high to low: 1 byte write instruction, 1 byte start page address, 2 bytes CRC check code, 4 bytes of data to be written and 4 bits of response signal;
[0036] S502: Write the locking digital currency tag code card signal data packet into the digital currency tag code card through the wireless reading and writing module to lock the digital currency tag code card and activate it.
[0037] The digital currency tag code card activation device and activation method of the present invention first scans the code to parse and obtain the digital currency payment code, and then uses the wireless reading and writing module to realize the reading, writing, verification and other operations of the tag code card; after the digital currency payment code is written on the tag code card, an encryption protocol or locking operation is designed to ensure that the payment code data is not rewritten by other tools, while providing convenience for activating the tag code card and ensuring the security of the merchant's payment.
[0038] Whether merchants or bank staff, they can use this tool to quickly activate / initialize digital currency tag code cards.
[0039] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The preferred embodiment of the digital currency tag code activation device according to the present invention will be described below with reference to the accompanying drawings.
[0041] Figure 1 A digital currency tag code card activation device according to a preferred embodiment of the present invention;
[0042] Figure 2 A digital currency tag code card activation device according to another preferred embodiment of the present invention;
[0043] Figure 3 The data packet format of a digital currency tag code card activation device writing a payment code into a digital currency tag code card according to a preferred embodiment of the present invention;
[0044] Figure 4 The data packet format of the payment code of the digital currency label code card read by the digital currency label code card activation device according to a preferred embodiment of the present invention;
[0045] Figure 5 A flowchart of a currency tag code card activation method according to a preferred embodiment of the present invention;
[0046] Figure 6 The present invention is a flowchart of a method for activating a digital currency tag code card according to another preferred embodiment of the present invention. DETAILED DESCRIPTION
[0047] Figure 1 The device for activating a digital currency tag code card according to a preferred embodiment of the present invention comprises a scanning module 10, a storage module 20, a wireless reading and writing module 30, a comparing module 40 and a locking module 50. The scanning module 10 scans a digital currency payment code associated with a digital currency tag code card and transmits the scanning result to the storage module 20 for storage; the storage module 20 stores the digital currency payment code; the wireless reading and writing module 30 writes the digital currency payment code stored in the storage module 20 into the digital currency tag code card to be activated, and also comprises reading the digital currency payment code in the digital currency tag code card. The payment code is read by the wireless reading and writing module 30, and the locking digital currency tag code card signal emitted by the locking module 50 is written into the digital currency tag code card; the comparison module 40 compares whether the payment code read from the digital currency tag code card by the wireless reading and writing module 30 is the same as the digital currency payment code stored in the storage module 20, and transmits the comparison result to the locking module 50; when the comparison result of the comparison module 40 is the same, the locking module 50 sends a locking digital currency tag code card signal to the wireless reading and writing module 30, so as to lock the digital currency tag code card through the wireless reading and writing module 30, thereby activating the digital currency tag code card.
[0048] Usually, a digital currency label is a chip used for payment transactions. The digital currency payment code can be pre-made with the digital currency label, or it can be applied for at the bank and printed out in a specified format.
[0049] The present invention provides a device for safely activating a digital currency "touch and pay" tag code card. First, the digital currency payment code is scanned by a code scanning module, and then the label code card is written, read, verified, and other operations are realized by a wireless reading and writing module; after the digital currency payment code is written on the label code card, a locking operation or encryption protocol is designed to ensure that the payment code data is not rewritten by other tools, while providing convenience for activating the label code card and ensuring the security of the merchant's payment.
[0050] In one embodiment, if Figure 2As shown, the digital currency label code activation device also includes a judgment module 60. After the code scanning module 10 scans the digital currency payment code, the judgment module 60 judges whether the digital currency payment code scanned by the scanning module 10 is legal, for example, whether it is a normal payment code, whether the data is complete, etc. If the digital currency payment code is legal, the digital currency payment code is stored in the storage module 20. Through the above-mentioned operation of judging whether it is legal, it provides a guarantee for writing the payment code to the digital currency label code, and avoids writing the wrong payment code into the digital currency label code.
[0051] In one embodiment, the wireless reading and writing module 30 can perform reading and writing operations on the digital currency tag code card based on APDU instructions.
[0052] In a specific implementation, the wireless reading and writing module 30 can first search for the digital currency tag code card. When the digital currency tag code card is found, the wireless reading and writing module 30 writes the payment code into the digital currency tag code card based on the APDU instruction, or the wireless reading and writing module 30 reads the payment code in the digital currency tag code card based on the APDU instruction. Further, the comparison module 40 determines whether the payment code read from the digital currency tag code card is the same as the digital currency payment code stored in the storage module 20. If they are the same, the locking module 50 locks the digital currency tag code card based on the APDU instruction through the wireless reading and writing module 30. Thus, the activation of the digital currency tag code card is completed.
[0053] The payment code data is directly written into the digital currency tag through the wireless card reader module, avoiding the tediousness of manually copying the payment code and writing it through NFC tools in the existing technology.
[0054] The payment code in the digital currency tag is directly read by the wireless reading and writing module, and the payment codes are judged to be the same, which overcomes the drawback of manual verification in the prior art. In wireless communication, APDU instructions are usually used. The present invention still uses this instruction without adding additional development costs. In addition, when it is judged that the two payment codes are the same, the locking operation of the digital currency tag can be performed, which further overcomes the cost waste problem of the prior art that requires payment for locking.
[0055] Figure 3 The data packet format for writing the payment code to the digital currency label code card is shown, and the meaning of each field is as shown in Table 1 below.
[0056] Table 1
[0057] content describe length Cmd WRITE command code 1byte Addr Start page address 1byte CRC CRC checksum 2byte Data Data written 4 bytes NAK See Table 2 4bits
[0058] The meanings of the ACK and NAK fields are shown in Table 2.
[0059] Table 2
[0060]
[0061] Figure 4 The data packet format for reading the payment code from the digital currency tag code card is shown, where the meaning of each field is as shown in Table 3 below, n represents the number of data blocks read, and n is greater than or equal to 1. The meanings of the ACK and NAK fields are as shown in Table 2.
[0062] Table 3
[0063] content describe length Cmd FAST_READ command code 1byte StartAddr Start page address 1byte EndAddr End page address 1byte CRC CRC checksum 2byte Data Received data n*4bytes NAK See Table 2 4bits
[0064] In one embodiment, locking the digital currency tag code card may include: setting the digital currency tag code card to a read-only mode, or encrypting the write operation of the digital currency tag code card, thereby ensuring the security of activating the tag code card.
[0065] For example, the write operation of the digital currency tag code card is locked and turned into read-only mode. At this time, the tag code card will no longer be able to write any data. When the merchant's payment code changes, it can be returned to the factory for processing, or the "touch and pay" payment code card can be replaced and reactivated / initialized. Alternatively, the write operation of the digital currency tag code card can be encrypted. A password can be set and written into the password area of the tag code card. The password area cannot be accessed. When you want to rewrite the payment code of the "touch and pay" tag code card, you need to enter the password for authentication. If the authentication fails, the write operation cannot be performed.
[0066] In one embodiment, the digital currency tag code card can be an NFC tag code card chip, that is, an NFC "touch and pay" chip, and the wireless reading and writing module 30 can be a module with NFC reading and writing functions, thereby completing the functions of searching the tag code card, writing and reading the payment code, comparing the payment code, and locking the tag code card.
[0067] The NFC "touch and pay" chip of the present invention may include three parts: radio frequency analog circuit, digital logic circuit and non-volatile memory (EEPROM). The EEPROM may be organized as a page of 4 bytes. Among them, the read instruction uses FAST_READ, which can be used to continuously read data of N pages. There are two parameters including the start address and the end address. A maximum of 256 pages can be addressed, and each page occupies 4 bytes (refer to Figure 3 ). The write instruction contains two parameters, block address and block data, and writes 4 bytes of data into the block address (refer to Figure 2 ).
[0068] When performing a lock operation, the static lock bit of the EEPROM of the NFC "touch and pay" chip can be set to the specified data through a write instruction, thereby locking the write operation of the "touch and pay" tag code card and turning it into read-only mode. It is also possible to save a 4-byte password (PWD) and a 2-byte password authentication response (PACK) in the password area of the EEPROM, thereby encrypting the write operation of the "touch and pay" tag code card.
[0069] In one embodiment, the digital currency tag activation device of the present invention is integrated into a POS machine. The POS machine can be used to activate the digital currency tag. Whether it is a merchant or a bank staff, it can conveniently use this tool to quickly activate / initialize the "touch and pay" tag, and the security of activation is guaranteed.
[0070] In one embodiment, the wireless reading and writing module of the POS machine is a contactless card module of the POS.
[0071] Next, the user usage scenario is described to demonstrate the advantages of the technical solution of the present invention such as security and convenience compared to the prior art of activating digital currency tag code cards through mobile phones.
[0072] The merchant or bank staff holds a POS machine with an integrated digital currency tag activation device of the present invention, a payment code and a digital currency tag. The wireless read-write module of the POS machine has an NFC communication function, and the digital currency transaction chip is a "touch and pay" NFC chip.
[0073] When the digital currency tag code card needs to be activated, first use the POS machine to scan the payment code and determine whether the payment code is legal and whether the information is complete. If it is legal, the POS machine stores the payment code; next, the payment code needs to be written into the digital currency tag code card, and the writing method is to wirelessly write the payment code data into the "touch and pay" NFC chip through the wireless reading and writing module of the POS machine; finally, the digital currency tag code card needs to be locked to ensure the security of the transaction. At this time, the payment code in the digital currency tag code card is still read wirelessly by NFC through the wireless reading and writing module of the POS machine, and the payment code is compared with the payment code stored in the POS machine. If the two are the same, the wireless reading and writing module of the POS machine still sends a locking instruction to the digital currency tag code card. The locking instruction can be to make the EEPROM of the digital currency tag code card read-only, or to write a password to the EEPROM, etc.
[0074] From the above operation process, the digital currency tag code card activation device of the present invention can perform the activation operation of the digital currency tag code card. The operation is extremely convenient, and the entire operation process does not require manual judgment, which ensures accuracy. The final locking operation ensures that the payment code data is not rewritten by other tools, thereby ensuring the security of the payment.
[0075] The present invention also provides a method for activating a digital currency tag code card, using the digital currency tag code card activation device of the present invention to activate the digital currency tag code card, such as Figure 5 As shown, it includes step S10: scanning the digital currency payment code associated with the digital currency label code card through the scanning module 10, and storing the scanning result in the storage module 20; step S20: writing the payment code stored in the storage module 20 into the digital currency label code card to be activated through the wireless reading and writing module 30; step S30: reading the payment code in the digital currency label code card through the wireless reading and writing module 30; step S40: comparing the payment code read from the digital currency label code card by the wireless reading and writing module 30 and the payment code stored in the storage module 20 through the comparing module 40. If they are the same, execute step S50: sending a locking digital currency label code card signal to the wireless reading and writing module 30 through the locking module 50, and writing the locking digital currency label code card signal into the digital currency label code card through the wireless reading and writing module 30 to lock the digital currency label code card and activate it.
[0076] In one embodiment, in step S40, if the comparison result is different, a prompt message is issued, for example, the payment code is wrong, etc., and the process returns to step S20.
[0077] In one embodiment, if Figure 6 As shown, step S20 may include:
[0078] S201: Generate a data packet from the digital currency payment code stored in the storage module 20 according to the communication protocol of the wireless read / write module 30, the data packet includes from high to low: 1 byte write instruction, 1 byte start page address, 2 bytes CRC check code, 4 bytes of data to be written and 4 bits of response signal;
[0079] S202: writing the data packet into the digital currency tag to be activated through the wireless reading and writing module 30;
[0080] Step S30 may include:
[0081] S301: sending a read instruction to the digital currency tag code card through the wireless reading and writing module 30 according to the communication protocol of the wireless reading and writing module 30;
[0082] S302: Receive a data packet sent by the digital currency tag code card through the wireless reading and writing module 30, and the data packet includes from high to low: 1 byte read instruction, 1 byte start page address, 1 byte end page address, 2 bytes CRC check code, n*4 bytes of data and 4 bits of response signal, where n is greater than or equal to 1;
[0083] Step S50 may include:
[0084] S501: Generate a locking digital currency tag code card signal data packet according to the communication protocol of the wireless reading and writing module 30, and send the locking digital currency tag code card signal data packet to the wireless reading and writing module 30 through the locking module 50. The data packet includes from high to low: 1 byte write instruction, 1 byte start page address, 2 bytes CRC check code, 4 bytes of data to be written and 4 bits of response signal;
[0085] S502: Write the locking digital currency tag code card signal data packet into the digital currency tag code card through the wireless reading and writing module 30 to lock the digital currency tag code card and activate it.
[0086] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is only for the purpose of convenience and brevity of description, and is by no means intended to limit the order of these method steps. Those skilled in the art will appreciate that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers.
[0087] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.
[0088] It should be understood that the above-mentioned embodiments are merely illustrative and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will all be included in the scope of the claims of the present invention.
Claims
1. A digital currency tag activation device, characterized in that: include: Scanning module, storage module, wireless reading and writing module, comparison module and locking module, wherein: The scanning module is used to scan the digital currency payment code associated with the digital currency label code card, and transmit the scanning result to the storage module for storage; The storage module is used to store the digital currency payment code; The wireless reading and writing module is used to write the digital currency payment code stored in the storage module into the digital currency label code card to be activated, read the digital currency payment code in the digital currency label code card, and write the locking digital currency label code card signal issued by the locking module into the digital currency label code card; The comparison module is used to compare whether the digital currency payment code read by the wireless reading and writing module from the digital currency tag code card is the same as the digital currency payment code stored in the storage module, and transmit the comparison result to the locking module; The locking module is used to send a locking digital currency tag code card signal to the wireless reading and writing module when the comparison result of the comparison module is the same, so as to lock the digital currency tag code card through the wireless reading and writing module to activate the digital currency tag code card.
2. The digital currency tag activation device according to claim 1, characterized in that: It also includes a judgment module for judging whether the digital currency payment code scanned by the scanning module is legal, and if the digital currency payment code is legal, storing the digital currency payment code in the storage module.
3. The digital currency tag activation device according to claim 1, characterized in that: The wireless reading and writing module performs reading and writing operations on the digital currency tag code card based on APDU instructions.
4. The digital currency tag activation device according to any one of claims 1 to 3, characterized in that: The locking digital currency tag code card signal sent by the locking module is used to: set the digital currency tag code card to a read-only mode, or encrypt the write operation of the digital currency tag code card.
5. The digital currency tag activation device according to claim 4, characterized in that: The digital currency tag code card includes an NFC tag code card chip.
6. The digital currency tag activation device according to claim 5, characterized in that: The activation device is integrated into the POS machine.
7. The digital currency tag activation device according to claim 6, characterized in that: The wireless reading and writing module is a contactless card searching module of the POS machine.
8. A method for activating a digital currency tag, characterized in that: Activation is performed using the digital currency tag activation device according to any one of claims 1 to 7, and includes the steps of: S10: Scanning the digital currency payment code associated with the digital currency label code card through the scanning module, and storing the scanning result in the storage module; S20: writing the digital currency payment code stored in the storage module into the digital currency label code card to be activated through the wireless reading and writing module; S30: Reading the digital currency payment code in the digital currency label code card through the wireless reading and writing module; S40: comparing the digital currency payment code read from the digital currency tag by the wireless reading and writing module with the digital currency payment code stored in the storage module through the comparison module to see if they are the same. If the comparison result is the same, executing step S50; S50: Sending a locking digital currency tag code card signal to the wireless reading and writing module through the locking module, and writing the locking digital currency tag code card signal into the digital currency tag code card through the wireless reading and writing module to lock the digital currency tag code card and activate it.
9. The method for activating a digital currency tag according to claim 8, characterized in that: In step S40, if the comparison result is not the same, a prompt message is issued and the process returns to step S20.
10. The method for activating a digital currency tag according to claim 8 or 9, characterized in that: The step S20 comprises: S201: Generate a data packet from the digital currency payment code stored in the storage module according to the communication protocol of the wireless read / write module, wherein the data packet includes, from high to low, 1 byte of write instruction, 1 byte of start page address, 2 bytes of CRC check code, 4 bytes of data to be written and 4 bits of response signal; S202: writing the data packet into the digital currency tag to be activated through the wireless reading and writing module; The step S30 comprises: S301: sending a read instruction to the digital currency tag code card through the wireless reading and writing module according to the communication protocol of the wireless reading and writing module; S302: Receive a data packet sent by the digital currency tag through the wireless reading and writing module, wherein the data packet includes, from high to low, a 1-byte read instruction, a 1-byte start page address, a 1-byte end page address, a 2-byte CRC check code, n*4 bytes of data, and a 4-bit response signal, wherein n is greater than or equal to 1; The step S50 comprises: S501: Generate the locked digital currency tag code card signal data packet according to the communication protocol of the wireless read-write module, and send the locked digital currency tag code card signal data packet to the wireless read-write module through the locking module, wherein the data packet includes from high to low bits: 1 byte write instruction, 1 byte start page address, 2 bytes CRC check code, 4 bytes of data to be written and 4 bits of response signal; S502: Write the locking digital currency tag code card signal data packet into the digital currency tag code card through the wireless reading and writing module to lock the digital currency tag code card and activate it.
