A card selling method, device and medium based on NFC technology

The card-selling method using NFC technology leverages the NFC module of mobile devices to achieve rapid card data interaction and status verification, solving the problems of queuing congestion and device compatibility in the card-selling mode, and improving card-selling efficiency and convenience.

CN120785374BActive Publication Date: 2025-12-09深圳市深圳通有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511204234.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-12-09
Estimated Expiration
2045-08-27

AI Technical Summary

Technical Problem

The existing card-selling model is prone to queuing and congestion during peak hours. Furthermore, with the upgrading of Windows systems and the obsolescence of Internet Explorer browsers, compatibility issues with card-selling equipment are becoming increasingly serious, affecting card-selling efficiency and security.

Method used

The card-selling method based on NFC technology uses the NFC module of a mobile device to acquire card data, enables rapid interaction through near-field wireless communication, determines the card status and performs card writing operations, and supports the instant issuance and data verification of anonymous cards.

Benefits of technology

It improved card sales efficiency, avoided errors in manual accounting and data statistics lag, enhanced the convenience of purchasing cards and the experience of participating in activities, and optimized the service process for large-scale events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120785374B_ABST
    Figure CN120785374B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent mobile terminal application, in particular to a card selling method, equipment and medium based on NFC technology, which comprises the following steps: acquiring data of a card to be sold by using an NFC module of a mobile device; activating a corresponding interface of a function module of the mobile device to display the data; judging whether the card to be sold is in an unsold state and is a non-named card by using the function module and outputting a first judgment result; in the case that the first judgment result is that the card to be sold is in the unsold state and is the non-named card, sending a card writing instruction to the card to be sold by using the function module and the NFC module, obtaining a card to be checked; judging whether the card to be checked is successfully written with data by using the function module and outputting a second judgment result; and in the case that the second judgment result is that the card to be checked is successfully written with data, obtaining a card sold, so as to meet the convenient card selling demand of large-scale activity places and improve the card selling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent mobile terminal application, and particularly relates to a card selling method, device and medium based on NFC technology. BACKGROUND

[0002] With the expansion of the coverage scenarios of card selling business, the scenarios of card selling activities gradually extend from traditional customer service sites to large-scale exhibitions, community convenient activities and other places where people gather. However, the current card selling mode has significant bottlenecks: in the process of on-site card selling, only special personnel carrying computers and card readers can complete the operation, which can easily lead to a large number of people queuing at peak times, not only affecting the card selling efficiency, but also bringing potential security risks. At the same time, with the upgrading of Windows system, IE browser is gradually eliminated by the market, and the ActiveX control relied on by the original card selling scheme causes the number of card selling devices that can be normally used to decrease day by day due to compatibility problems with new systems and browsers, further restricting the development of on-site card selling business. SUMMARY

[0003] The main purpose of the embodiments of the present application is to provide a card selling method, device and medium based on NFC technology, aiming to meet the convenient card selling needs of large-scale activity places and improve the card selling efficiency.

[0004] To achieve the above purpose, the first aspect of the embodiments of the present application provides a card selling method based on NFC technology, which comprises:

[0005] acquiring data of a card to be sold by using an NFC module of a mobile device;

[0006] activating a corresponding interface of a function module of the mobile device to display the data;

[0007] determining whether the card to be sold is in an unsold state and is a non-named card by using the function module, and outputting a first determination result;

[0008] in a case where the first determination result is that the card to be sold is in an unsold state and is a non-named card, sending a card writing instruction to the card to be sold by using the function module through the NFC module, and obtaining a card to be verified;

[0009] determining whether the card to be verified is successfully written with data by using the function module, and outputting a second determination result, and in a case where the second determination result is that the card to be verified is successfully written with data, obtaining a card sold.

[0010] The method provided by the first aspect realizes card selling by means of the NFC module of the mobile device, can take advantage of the quick interaction feature of the near field communication technology, and enables the staff to hold the mobile terminal such as a mobile phone or a tablet computer equipped with the NFC function to complete card selling for the card purchasing user at any time and any place, thereby avoiding the problems of easy error of manual accounting and data statistical lag, and overcoming the problems of queuing congestion, complicated manual operation, low efficiency during peak period and the like in the traditional card selling mode, greatly improving the card purchasing convenience and the activity participation experience, optimizing the service process of the large-scale activity as a whole, and effectively meeting the dual requirements of card selling efficiency and convenience in the high-people-flow scenario.

[0011] In a possible implementation manner, after the step of judging, by the function module, whether the to-be-verified card is successfully written with data and outputting a second judgment result, the method further includes:

[0012] In a case where the second judgment result is that the to-be-verified card fails to be written with data, activating a corresponding interface of the function module of the mobile device to display a write failure prompt;

[0013] The card selling user selects to skip data writing of the to-be-verified card based on the write failure prompt, and generates a skip instruction;

[0014] The function module marks an order of the to-be-verified card as a transaction failure based on the skip instruction, and sends an instruction for applying for a card to a background server of the function module;

[0015] The background server performs re-card searching by using the NFC module based on the instruction for applying for a card, to obtain data of a new to-be-sold card.

[0016] In a possible implementation manner, after the step of judging, by the function module, whether the to-be-verified card is successfully written with data and outputting a second judgment result, the method further includes:

[0017] In a case where the second judgment result is that the to-be-verified card fails to be written with data, activating a corresponding interface of the function module of the mobile device to display a write failure prompt;

[0018] The card selling user selects to perform data writing on the to-be-verified card again based on the write failure prompt, and generates a retry instruction;

[0019] The function module reads a first card number of a current to-be-verified card and a second card number of the to-be-verified card that fails to be written with data based on the retry instruction, and compares the first card number and the second card number, to output a third judgment result;

[0020] In a case where the third determination result is that the first card number is consistent with the second card number, reading, by the function module, a card state of the current card to be checked, and re-sending, based on the card state, a write card instruction to the current card to be checked to obtain the sold card.

[0021] In a possible implementation, the re-sending, based on the card state, of the write card instruction to the current card to be checked to obtain the sold card includes:

[0022] If the card state is sold, determining, by the function module, whether card data of the current card to be checked is abnormal, and re-sending, in a case where the card data of the current card to be checked is abnormal, the write card instruction to the current card to be checked to obtain the sold card, and if the card state is not sold, re-sending the write card instruction to the current card to be checked to obtain the sold card.

[0023] In a possible implementation, the obtaining, by the NFC module of the mobile device, of the data of the card to be sold further includes:

[0024] The function module responds to a card selling user operation to select a type of the card to be sold.

[0025] A background server of the function module generates payment information based on the type, and sends the payment information to a corresponding interface of the function module to display the payment information.

[0026] A card buying user completes payment based on the payment information to obtain the card to be sold.

[0027] In a possible implementation, the type of the card to be sold includes the non-named card and the named card, and the function module responds to a card selling user operation to select the type of the card to be sold further includes:

[0028] When the type of the card to be sold is the named card, the card buying user fills in personal information through the function module.

[0029] The function module encrypts the personal information to obtain encrypted data.

[0030] In a possible implementation, the obtaining of the data of the card to be sold includes one of the following:

[0031] The encrypted data, the card number of the card to be sold, the card state of the card to be sold, and the type of the card to be sold.

[0032] In a possible implementation, the function module encrypts the personal information to obtain encrypted data includes:

[0033] acquire, by the background server, a plurality of symmetric encryption and decryption algorithms preconfigured in the function module, and randomly generate a serial number;

[0034] encrypt, by the background server, the personal information according to the symmetric encryption and decryption algorithm corresponding to the serial number, and send the obtained encrypted data to the function module.

[0035] In a second aspect, an electronic device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the NFC-based card selling method as described in any possible implementation manner of the first aspect when executing the computer program.

[0036] In a third aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program implements the NFC-based card selling method as described in any possible implementation manner of the first aspect when executed by a processor.

[0037] The electronic device and the computer readable storage medium provided by the second aspect and the third aspect can realize card selling by means of the NFC module of a mobile device, can complete card selling for a card purchasing user at any time and any place by a staff member holding a mobile terminal such as a mobile phone or a tablet computer equipped with an NFC function, can avoid problems such as errors in manual accounting and data statistics lag, and can overcome problems such as queuing congestion, complicated manual operation, and low efficiency during peak periods in a traditional card selling mode, greatly improve the convenience of card purchasing and the experience of participating in an activity, and overall optimize the service process of a large-scale activity, effectively meeting the dual requirements of card selling efficiency and convenience in a high-traffic scenario. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the one or more embodiments or the prior art of the present specification, the drawings needed in the description of the one or more embodiments or the prior art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present specification, and those skilled in the art can obtain other drawings according to these drawings without any creative labor.

[0039] Figure 1 is a flowchart of the NFC-based card selling method provided by the embodiments of the present application;

[0040] Figure 2 is another flowchart of the NFC-based card selling method provided by the embodiments of the present application;

[0041] Figure 3is another flowchart of a card selling method based on NFC technology provided by an embodiment of the present application;

[0042] Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the one or more embodiments of the specification will be clearly and completely described below in conjunction with the drawings in the one or more embodiments of the specification. Obviously, the described one or more embodiments are only a part of the embodiments of the specification, rather than all the embodiments. Based on the one or more embodiments in the specification, all other embodiments obtained by those skilled in the art without creative labor should belong to the protection scope of the present document.

[0044] It should be noted that although the functional modules are divided in the device schematic diagram, and the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the sequence in the flowchart. The terms "first", "second", and the like in the specification and claims and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

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

[0046] In addition, the technical features involved in each of the embodiments of the present application described below can be combined with each other as long as there is no conflict.

[0047] With the expansion of the coverage scenarios of the card selling business, the scenarios of the card selling activities gradually extend from the traditional customer service sites to large-scale exhibitions, community convenient activities and other places where people gather. However, the current card selling mode has significant bottlenecks: in the on-site card selling process, only the special person carrying the computer and the card reader can complete the operation, which mode is extremely easy to cause a large number of people to queue at the peak, not only affecting the card selling efficiency, but also bringing potential security risks. At the same time, with the upgrading of the Windows system, the IE browser is gradually eliminated by the market, and the ActiveX control relied on by the original card selling scheme causes the number of card selling devices that can be normally used to decrease day by day due to the compatibility problem with the new system and browser, which further restricts the development of on-site card selling business.

[0048] Based on this, the embodiment of the application provides a card selling method, device and medium based on NFC technology, aiming to meet the convenient card selling demand of large-scale activity places and improve the card selling efficiency.

[0049] The embodiment of the application is further described below with reference to the drawings.

[0050] Figure 1 is an optional flowchart of the card selling method based on NFC technology provided by the embodiment of the application, Figure 1 The method in the embodiment of the application can include but is not limited to steps S100 to S500.

[0051] In a first aspect, as shown in Figure 1 A card selling method based on NFC technology is provided, and the method comprises the following steps.

[0052] S100, obtaining data of a card to be sold by using an NFC module of a mobile device.

[0053] It should be noted that NFC is based on 13.56 MHz radio frequency technology, and the communication distance is usually within 0-10 cm. Data exchange between the mobile device (such as a mobile phone, a tablet, and a card reader) and the card to be sold is achieved through electromagnetic induction. The mobile device transmits a radio frequency signal to provide energy for the card to be sold and establish a communication link. After receiving the signal, the card to be sold activates the internal chip, feeds back the stored data to the mobile device through the radio frequency signal, and the data transmission speed is fast. It usually only takes a few hundred milliseconds from approaching to completing data reading. Compared with the traditional magnetic stripe card swiping and IC card insertion, the operation time is greatly saved, and the overall process efficiency is improved.

[0054] S200, activating a corresponding interface of a function module of the mobile device to display the data.

[0055] It should be noted that the activation of the corresponding interface is automatically triggered by the system. After triggering, the module will execute data request, then perform analysis and processing, and finally drive the interface rendering. For the user, the card state, the amount of money and other key information can be intuitively mastered to support the purchase of the card, the verification and other operation decisions. For the system, the data processing result is fed back through the interface to ensure that the user operation and the data state are synchronized.

[0056] S300, determining whether the card to be sold is in an unsold state and is a non-registered card by using the function module, and outputting a first determination result.

[0057] S400, in the case that the first determination result is that the card to be sold is in an unsold state and is a non-registered card, sending a card writing instruction to the card to be sold by using the function module through the NFC module to obtain a card to be verified.

[0058] It should be noted that the function module is used to determine whether the card for sale is in an unsold state and is a non-named card, and in the case that the result is that the card for sale is in an unsold state and is a non-named card, the function module sends a card writing instruction to the card for sale through the NFC module to obtain the card to be checked. In some embodiments, the non-named card does not need to collect, enter the consumer's name, ID number, mobile phone number and other personal information when the card is sold, does not need to bind the identity, the card selling time is greatly shortened, and is suitable for scenes such as large-scale activities, scenic spots, supermarkets and other peak periods of dense flow, can quickly dredge the queue, avoid congestion caused by information registration, and for temporary users such as tourists and short-term visitors, the non-named card does not need to be registered complicatedly, can be bought and used immediately, does not need to maintain a large user information database, saves the manpower and technical investment of data storage, updating, security and other links, and reduces the legal risks caused by information leakage and system failure. In the case of confirming that the card for sale is in an unsold state and is a non-named card, the card for sale is sent a card writing instruction, which can prevent repeated writing of information to the card that has been sold, quickly screen out valid cards, reduce invalid operations, and significantly improve the card selling efficiency during the peak period of large-scale activities.

[0059] In addition, when the function module determines that the card for sale is not in an unsold state, such as a card that has been sold or a blacklisted card, an error prompt is sent to the on-site card seller through the corresponding interface of the function module to inform the card seller that the card cannot be sold.

[0060] S500, the function module is used to determine whether the card to be checked is successfully written with data, and a second determination result is output, and in the case that the second determination result is that the card to be checked is successfully written with data, an already sold card is obtained.

[0061] Specifically, data writing is a core step for the card to take effect. If the writing fails, the user will have problems such as being unable to recognize, having a balance of 0, and having insufficient rights when consuming with the card. The function module is used to determine whether the card to be checked is successfully written with data, the writing result is checked in real time, problems can be found at the first time and re-written, the card successfully written with data is ensured for the user to take, faults in subsequent use are avoided from the source, the card is checked in advance in the card selling link, and disputes between the user and the card selling company are avoided, and the complexity of cross-departmental collaborative investigation is reduced. In addition, the card data and the background system record need to be consistent. If the card data writing fails, but the system displays that the card has been sold and accounts, the accuracy of core business data such as financial statistics and inventory management is affected. Therefore, the card checking can protect the user rights and use experience, and also reduce the operation risk and cost of the card selling company.

[0062] The method provided by the first aspect realizes card selling by means of the NFC module of the mobile device, can take advantage of the quick interaction feature of the near field communication technology, and enables the staff to hold the mobile terminal such as a mobile phone or a tablet computer equipped with the NFC function to complete card selling for the card purchasing user at any time and anywhere, thereby avoiding the problems of easy error of manual accounting and data statistical lag, overcoming the problems of queuing congestion, complicated manual operation, and low efficiency during peak period in the traditional card selling mode, greatly improving the card purchasing convenience and the activity participation experience, optimizing the service process of the large-scale activity as a whole, and effectively meeting the dual requirements of card selling efficiency and convenience in the high-people-flow scenario.

[0063] In a possible implementation manner, as shown in Figure 2 the method further includes the following steps after the step of judging, by the function module, whether the to-be-verified card is successfully written with data and outputting a second judgment result:

[0064] S201. In a case where the second judgment result is that the to-be-verified card fails to be written with data, activating a corresponding interface of the function module of the mobile device to display a write failure prompt.

[0065] S202. The card selling user selects to skip data writing of the to-be-verified card based on the write failure prompt, and generates a skip instruction.

[0066] S203. The function module marks the order of the to-be-verified card as a transaction failure based on the skip instruction, and sends an instruction for applying for searching for a card to a background server of the function module.

[0067] S204. The background server acquires data of a new to-be-sold card by searching for the card again through the NFC module based on the instruction for applying for searching for a card.

[0068] In some embodiments, it should be noted that the communication interruption caused by unstable card proximity, network jitter, and other sudden abnormalities will as far as possible cause the case where the to-be-verified card fails to be written with data. In this case, the corresponding interface of the function module of the mobile device is activated to display a write failure prompt, that is, a prompt pop-up window, and the skip instruction is selected. The card selling user selects to skip data writing of the to-be-verified card based on the write failure prompt, generates a skip instruction, selects to temporarily put aside the card, and prioritizes processing of the next transaction, thereby avoiding blocking of the entire queue due to a single card, the function module marks the order of the to-be-verified card as a transaction failure based on the skip instruction, and re-sends an instruction for applying for searching for a card to a background server of the function module, so as to acquire data of a new to-be-sold card for a new round of card selling operation, which can effectively improve the abnormal processing efficiency and guarantee the flexibility and continuity of the card selling process.

[0069] In a possible implementation manner, as shown in Figure 3As shown, the use of the function module to determine whether the card to be verified is successfully written data, output second judgment result after also includes:

[0070] S301, in the case of second judgment result is the card to be verified write data failure, activate the corresponding interface of the function module of the mobile device to display write failure prompt.

[0071] S302, the card user based on write failure prompt to select the card to be verified for data write, generate retry instruction.

[0072] S303, using function module base retry instruction to read the first card number of the current card to be verified and the second card number of the card to be verified with write data failure, and compare the first card number and the second card number, output third judgment result.

[0073] S304, in the case of third judgment result is the first card number and the second card number consistent, using function module to read the card state of the current card to be verified, based on card state to send write card instruction to the current card to be verified, to get the card.

[0074] It should be noted that, due to the card is not stable close to cause communication interruption, network jitter and other sudden abnormality will cause the card to be verified write data failure, in this case, activate the corresponding interface of the function module of the mobile device to display write failure prompt, that is, prompt pop-up window, and with the selection of retry instruction, the card user based on write failure prompt to select the card to be verified for data write, generate retry instruction, can be solved by re close card, trigger data retransmission problem, ensure that the card is finally written successfully, using function module based on retry instruction to read the first card number of the current card to be verified and the second card number of the card to be verified with write data failure, and compare the two, in the case of the first card number and the second card number consistent, using function module to read the card state of the current card to be verified, based on card state to send write card instruction to the current card to be verified, so as to get the card to be sold card, can effectively improve the efficiency of abnormal processing, guarantee the flexibility and continuity of the card selling process.

[0075] In a possible implementation manner, the write card instruction is sent to the current card to be verified based on the card state to obtain the card to be sold card, including: if the card state is sold, using the function module to determine whether the card data of the current card to be verified is abnormal, and if the card data of the current card to be verified is abnormal, the write card instruction is sent to the current card to be verified again to obtain the card to be sold card, if the card state is not sold, the write card instruction is sent to the current card to be verified again to obtain the card to be sold card.

[0076] It should be noted that the function module is used to read the card state of the current card to be checked, and a write card instruction is re-sent to the current card to be checked based on the card state. Specifically, when the card state is sold, it is necessary to determine whether the card data of the current card to be checked is abnormal. If the data is not abnormal, it is determined that the card state is normal and no additional operation is required. If the data is abnormal, the write card instruction is re-sent to the card to overwrite the sold data, so as to ensure that the card state and the data are consistent, and finally a sold card that meets the standard is obtained. When the card state is unsold, there is no need to check the data, and the write card instruction is directly re-sent to write the corresponding sold card information, and finally a sold card is obtained. By distinguishing the initial state of the card, the data checking and write card operation are processed specifically, which can not only repair the data abnormality of the sold card, but also efficiently complete the activation process of the unsold card, and ensure the standardization and data reliability of the card selling link.

[0077] In a possible implementation manner, before the data of the card to be sold is acquired by the NFC module of the mobile device, the function module is used to select the type of the card to be sold in response to the operation of the card selling user. The background server of the function module generates payment information based on the type, and sends the payment information to the corresponding interface of the function module to display the payment information. The card buying user completes payment based on the payment information, and obtains the card to be sold.

[0078] It should be noted that before the data of the card to be sold is acquired by the NFC module of the mobile device, an order placing operation is required to complete payment. Specifically, the function module is used to select the type of the card to be sold in response to the operation of the card selling user. The background server of the function module generates payment information based on the type of the card to be sold, and sends the payment information to the corresponding interface of the function module to display the payment information, such as a payment two-dimensional code. The card buying user completes payment based on the payment information, and obtains the card to be sold. The card selling user directly selects the type of the card by the function module, the operation path is clear, and no additional complex steps are required. The payment information is automatically generated and displayed by the system, and the card buying user does not need to manually input the amount, card number and other information, thereby avoiding manual intervention in calculation or configuration, reducing operation delay and error probability, quickly completing payment through a payment two-dimensional code and the like, shortening the time from card selection to transaction completion, presetting payment logic according to the type of the card, reducing manual intervention or user decision steps in the payment link, and speeding up the transaction. In addition, the entire process can be recorded by the system to form a complete transaction log, which is convenient for subsequent business checking, data statistics and problem tracing.

[0079] In a possible implementation, the types of the card to be sold include the non-nominal card and the nominal card, and after the function module is used to respond to the operation of the card selling user to select the type of the card to be sold, the method further includes: when the type of the card to be sold is selected as the nominal card, the card buying user fills in personal information through the function module; and the function module is used to encrypt the personal information to obtain encrypted data.

[0080] In some embodiments, the types of the card to be sold include the non-nominal card and the nominal card, and the nominal card can be a student card. When the type of the card to be sold is selected as the nominal card, the card buying user needs to fill in personal information through the function module. For example, when the nominal card is a student card, the filled-in information includes the student name, the student certificate type, the student certificate number, the student certificate photo, the guardian certificate photo, and the student online certificate. After the filling-in of the information is completed, the function module is used to encrypt the personal information to obtain encrypted data, thereby ensuring the security of the data transmission process, preventing the data from being maliciously tampered with, protecting the user privacy and sensitive information, avoiding the illegal acquisition of the data by a third party, and reducing the legal risks and trust crisis caused by the user information leakage.

[0081] In addition, when the type of the card to be sold is selected as the nominal card, the card buying user can also select a card style through the function module according to the personal preference, and independently set the amount according to the personal budget or use demand, thereby improving the user experience and the card buying willingness.

[0082] In a possible implementation, the data of the card to be sold includes one of the following: the encrypted data, the card number of the card to be sold, the card state of the card to be sold, and the type of the card to be sold.

[0083] It should be noted that the data of the card to be sold at least includes one of the following: the encrypted data, the card number of the card to be sold, the card state of the card to be sold, and the type of the card to be sold. The encrypted data is used to prevent the card from being counterfeited and the data from being tampered with, to ensure that the card information is not leaked or stolen in the transmission and verification process. The card number of the card to be sold is used as the unique identifier of the card, and is the basis for the system to locate a single card, associate user information, and record transaction flow. The card state of the card to be sold directly determines whether the card can be sold, thereby avoiding the mis-selling of invalid or abnormal cards. Different types of cards to be sold correspond to different card selling rules, and type matching is a prerequisite for executing corresponding business logic. The system can quickly complete card verification, type matching, state updating, and encrypted writing by reading these data, and finally realize efficient and secure card selling operation.

[0084] In a possible implementation, the encrypting the personal information by using the function module to obtain encrypted data comprises: acquiring, by using the background server, a plurality of preset symmetric encryption and decryption algorithms in the function module, and randomly generating a serial number; encrypting, by using the background server, the personal information according to the symmetric encryption and decryption algorithm corresponding to the serial number, and sending the obtained encrypted data to the function module.

[0085] It should be noted that the encrypting the personal information by using the function module to obtain encrypted data specifically comprises: acquiring, by using the background server, a plurality of preset symmetric encryption and decryption algorithms in the function module, and randomly generating a serial number, finding, by using the background server, the symmetric encryption and decryption algorithm corresponding to the generated serial number, encrypting the personal information, and sending the obtained encrypted data to the function module. When the encrypted data is decrypted, the encrypted data needs to be decrypted according to the serial number corresponding to the encrypted data. Symmetric encryption is a technology that uses the same key for encryption and decryption, and has the advantage of high encryption efficiency. Since the serial number is random, the attacker cannot predict which algorithm is used for each encryption, thereby improving the security of the system, ensuring the encryption efficiency, and reducing the risk of being cracked through randomness.

[0086] The embodiment of the application further provides an electronic device, as shown in the figure, the electronic device 1400 comprises: Figure 4 The electronic device 1400 comprises:

[0087] one or more processors 1410;

[0088] a memory 1420, on which one or more programs are stored, when the one or more programs are executed by the one or more processors 1410, the one or more processors 1410 implement the NFC technology-based card selling method provided by any one of the embodiments of the application.

[0089] The memory 1420 is a kind of non-transient network system, and can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory 1420 can include high-speed random access memory, and can also include non-transient memory, such as at least one magnetic disk storage device, flash memory device, or other non-transient solid-state memory device. In some embodiments, the memory 1420 can optionally include a memory 1420 remotely arranged relative to the processor 1410, and these remote memories 1420 can be connected to the processor 1410 through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0090] The memory 1420 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 1420 can store an operating system and other application programs. When the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 1420 and are invoked and executed by the processor 1410 to implement the method of the embodiments of the present application.

[0091] The processor 1410 can be implemented in the form of a general-purpose CPU (central processing unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present application.

[0092] In some embodiments, the electronic device further comprises:

[0093] The input / output interface is configured to implement information input and output.

[0094] The communication interface is configured to implement communication interaction between the device and other devices. The communication can be implemented in a wired manner (for example, USB, network cable, etc.) or in a wireless manner (for example, mobile network, WIFI, Bluetooth, etc.).

[0095] The bus is configured to transmit information between various components (for example, the processor 1410, the memory 1420, the input / output interface, and the communication interface) of the device.

[0096] The processor 1410, the memory 1420, the input / output interface, and the communication interface can be connected to each other in the device through the bus.

[0097] An embodiment of the present application further provides a computer readable storage medium, which stores computer executable instructions. The computer executable instructions are used to execute the NFC technology-based card selling method provided by any one of the embodiments of the present application.

[0098] An embodiment of the present application further provides a computer program product, which comprises a computer program or computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer readable storage medium. The processor executes the computer program or computer instructions, so that the computer device executes the NFC technology-based card selling method provided by any one of the embodiments of the present application.

[0099] The system architecture and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of system architecture and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. In the embodiments of the present application, any reference to memory, storage, database or other medium can include non-volatile and / or volatile memory. The non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. The volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not as a limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0101] As will be appreciated by one of ordinary skill in the art, all or some steps, systems of the above-disclosed methods can be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components or modules can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer readable media, which can comprise computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to one of ordinary skill in the art, computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, as is well known to one of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.

[0102] The above description of certain examples of the application has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the scope of the application to the precise form described, and many modifications, equivalents and variations are possible in light of these teachings. It is intended that the scope of the application be defined by the claims and their equivalents.

[0103] As will be appreciated by one of ordinary skill in the art, all or some steps, systems, functional modules / units of the above-disclosed methods can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0104] The terms "first", "second", "third", "fourth" etc. (if any) in the description and the claims hereof are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of these terms herein is to be construed to cover any of the possible sequences or orders of steps, functions, or elements, unless otherwise indicated herein and any text or numerical references to "first", "second", "third", "fourth" etc. elements should be construed to cover any of the possible sequences or orders of steps, functions, or elements, unless otherwise indicated herein. Moreover, the terms "comprise", "have" and "include" and their conjugates, as used herein, have been used to establish a list of elements in the explanation and claims hereof that do not preclude existence or addition of one or more other elements.

[0105] In addition, the various functional units in the embodiments of the present application can be integrated in one processing unit, or each can exist as an independent physical unit, or two or more than two of them are integrated in one physical unit. The above-mentioned integrated unit can be realized in the form of hardware, or in the form of a software functional unit.

[0106] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiments.

[0107] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in an order other than that described in the embodiments and still achieve desirable results. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous or possible.

[0108] The preferred embodiments of the embodiments of the present application are described above with reference to the accompanying drawings, and the scope of the right of the embodiments of the present application is not limited thereto. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the right of the embodiments of the present application.

Claims

1. A card vending method based on NFC technology, characterized by, The method comprises: acquiring data of a card to be sold by using an NFC module of a mobile device; activating a corresponding interface of a function module of the mobile device to display the data; judging whether the card to be sold is in an unsold state and is a non-named card by using the function module, and outputting a first judgment result; in a case where the first judgment result is that the card to be sold is in an unsold state and is a non-named card, sending a card writing instruction to the card to be sold by using the function module through the NFC module, and obtaining a card to be verified; judging whether the card to be verified is successfully written with data by using the function module, and outputting a second judgment result; in a case where the second judgment result is that the card to be verified fails to be written with data, activating a corresponding interface of a function module of the mobile device to display a writing failure prompt; a card selling user selects to perform data writing on the card to be verified again based on the writing failure prompt, and generates a retry instruction; reading a first card number of a current card to be verified and a second card number of the card to be verified which fails to be written with data based on the retry instruction by using the function module, and comparing the first card number and the second card number, and outputting a third judgment result; in a case where the third judgment result is that the first card number is consistent with the second card number, reading a card state of the current card to be verified by using the function module, if the card state is sold, judging whether card data of the current card to be verified is abnormal by using the function module, and in a case where the card data of the current card to be verified is abnormal, sending a card writing instruction to the current card to be verified again to obtain a card which is sold, if the card state is unsold, sending a card writing instruction to the current card to be verified again to obtain a card which is sold.

2. The method of claim 1, wherein, The method further comprises: in a case where the second judgment result is that the card to be verified fails to be written with data, activating a corresponding interface of a function module of the mobile device to display a writing failure prompt; a card selling user selects to skip data writing of the card to be verified based on the writing failure prompt, and generates a skip instruction; the function module marks an order of the card to be verified as a transaction failure based on the skip instruction, and sends an instruction of applying for searching for a card to a background server of the function module; the background server searches for a card again by using the NFC module based on the instruction of applying for searching for a card, to obtain data of a new card to be sold.

3. The method of claim 1, wherein, The method further comprises: the function module responds to an operation of a card selling user to select a type of the card to be sold; a background server of the function module generates payment information based on the type, and sends the payment information to a corresponding interface of the function module to display the payment information; a card buying user completes payment based on the payment information, and obtains the card to be sold.

4. The method of claim 3, wherein, The type of the card to be sold comprises the non-named card and a named card, and the method further comprises: When the type of the card to be sold is the named card, the card purchaser fills in personal information through the function module; The personal information is encrypted by using the function module to obtain encrypted data.

5. The method of claim 4, wherein, The data of the card to be sold includes one of the encrypted data, the card number of the card to be sold, the card state of the card to be sold and the type of the card to be sold.

6. The method of claim 4, wherein, The encrypted data is obtained by encrypting the personal information by using the function module, including: A plurality of symmetric encryption and decryption algorithms preset in the function module are obtained by using the background server, and a serial number is randomly generated; The personal information is encrypted according to the symmetric encryption and decryption algorithm corresponding to the serial number by using the background server, and the obtained encrypted data is sent to the function module.

7. An electronic device, comprising: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to realize the NFC-based card selling method of any one of claims 1-6.

8. A computer readable storage medium, the storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the NFC-based card selling method of any one of claims 1-6.

Citation Information

Patent Citations

  • Card writing method and card writing device based on NFC (Near Field Communication)

    CN103366140A

  • Burning method and device of eSIM (Subscriber Identity Module) card based on NFC

    CN105933888A