Card selling method and device based on NFC technology and medium
The card sales method using NFC technology utilizes the NFC module of mobile devices to achieve rapid card sales, solving the problems of queue congestion and device compatibility in the traditional card sales model, improving the efficiency and convenience of card sales, and meeting the needs of high-traffic scenarios.
Patent Information
- Application Number
- CN202511204234.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-27
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2045-08-27
AI Technical Summary
The existing card sales model is prone to cause queue congestion during peak hours, and with the upgrade of Windows system and the elimination of IE browser, compatibility issues of card sales equipment are becoming less and less, affecting the efficiency and security of card sales.
It adopts a card sales method based on NFC technology, uses the NFC module of the mobile device to obtain card data, realizes fast interaction through short-range wireless communication, judges the card status and performs card writing operations, supports the instant issuance and data verification of non-registered cards, and provides interface prompts and retry mechanisms.
It improves card sales efficiency, avoids manual accounting errors and data statistics lags, enhances the convenience of card purchases and event participation experience, and optimizes the service process for large-scale events.
Smart Images

Figure CN120785374A_ABST
Abstract
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 the special person carrying the computer and the card reader 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 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. 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, which aims to meet the convenient card selling demand 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: acquiring the data of a card to be sold by using the NFC module of a mobile device; activating the corresponding interface of the function module of the mobile device to display the data; 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; in the case that 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; determining whether the card to be verified is successfully written with data by using the function module, and outputting a second determination result, and obtaining a card sold in the case that the second determination result is that the card to be verified is successfully written with data.
[0005] 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 wireless 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 errors in manual accounting and data statistics lag, and overcoming the problems of queuing congestion, complicated manual operation, and low efficiency during peak periods 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.
[0006] 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: activating a corresponding interface of the function module of the mobile device to display a write failure prompt in a case where the second judgment result is that the to-be-verified card fails to be written with data; generating a skip instruction based on the write failure prompt; marking, by the function module, the order of the to-be-verified card as a transaction failure based on the skip instruction, and sending an instruction for applying for a card to a background server of the function module; retrieving, by the background server, a new to-be-sold card based on the instruction for applying for a card and through the NFC module.
[0007] 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: activating a corresponding interface of the function module of the mobile device to display a write failure prompt in a case where the second judgment result is that the to-be-verified card fails to be written with data; generating a retry instruction based on the write failure prompt; reading, by the function module, 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 comparing the first card number and the second card number to output a third judgment result; reading, by the function module, a card state of the current to-be-verified card in a case where the third judgment result is that the first card number is consistent with the second card number, and sending a card writing instruction to the current to-be-verified card based on the card state to obtain the sold card.
[0008] In a possible implementation, the re-sending the write card instruction to the current card to be checked based on the card state to obtain the sold card comprises: If the card state is sold, the function module is used to determine whether the card data of the current card to be checked is abnormal, and the write card instruction is re-sent to the current card to be checked to obtain the sold card when the card data of the current card to be checked is abnormal. If the card state is not sold, the write card instruction is re-sent to the current card to be checked to obtain the sold card.
[0009] In a possible implementation, the obtaining the data of the card to be sold by using the NFC module of the mobile device further comprises: 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.
[0010] In a possible implementation, the type of the card to be sold comprises the non-named card and the named card, and the selecting the type of the card to be sold by using the function module in response to the operation of the card selling user further comprises: When the type of the card to be sold is selected as the named card, the card buying user fills in personal information through the function module. The function module is used to encrypt the personal information to obtain encrypted data.
[0011] In a possible implementation, the obtaining the data of the card to be sold comprises 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.
[0012] In a possible implementation, the encrypting the personal information by using the function module to obtain encrypted data comprises: The background server is used to obtain a plurality of symmetric encryption and decryption algorithms preset in the function module, and a serial number is randomly generated. The background server is used to encrypt the personal information according to the symmetric encryption and decryption algorithm corresponding to the serial number, and the obtained encrypted data is sent to the function module.
[0013] In a second aspect, an electronic device is provided, which includes a memory and a processor, the memory storing a computer program, and the processor implementing the NFC technology-based card selling method as described in any possible implementation manner of the first aspect when executing the computer program.
[0014] In a third aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program implements the NFC technology-based card selling method as described in any possible implementation manner of the first aspect when executed by a processor.
[0015] 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 the mobile device, and can complete card selling for the card purchasing user at any time and any place by the staff holding the mobile terminal such as the mobile phone and the tablet computer equipped with the NFC function, so as to avoid the problems of easy error of manual accounting and lag of data statistics, and overcome the problems of queuing congestion, complicated manual operation and low efficiency in peak period in the traditional card selling mode, greatly improve the card purchasing convenience and the activity participation experience, and optimize the service process of the large-scale activity as a whole, and effectively meet the dual requirements of card selling efficiency and convenience in the high-people-flow scenario. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the one or more embodiments or the prior art, the drawings needed to be used 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 specification, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0017] Figure 1 is a flowchart of the NFC technology-based card selling method provided by the embodiments of the present application; Figure 2 is another flowchart of the NFC technology-based card selling method provided by the embodiments of the present application; Figure 3 is still another flowchart of the NFC technology-based card selling method provided by the embodiments of the present application; Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the person skilled in the art better understand the technical solutions in the specification, the technical solutions in the specification one or more embodiments will be described clearly and completely in the specification one or more embodiments below, and obviously, the described one or more embodiments are only a part of the embodiments of the specification, not all the embodiments. Based on the specification one or more embodiments, all other embodiments obtained by the person skilled in the art without creative labor should belong to the protection scope of the present document.
[0019] It should be noted that although the functional modules are divided in the device schematic diagram, the logical sequence is shown in the flowchart, but 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", etc. 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.
[0020] 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 this 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.
[0021] In addition, the technical features involved in each embodiment of the application described below can be combined with each other as long as there is no conflict.
[0022] With the expansion of the coverage scene of card sales business, the scene of card sales activities gradually extends from traditional customer service sites to large-scale exhibitions, community convenient activities and other places where people gather. However, the current card sales mode has significant bottlenecks: in the process of on-site card sales, only the special person carrying the computer and card reader can complete the operation, which mode is extremely easy to cause a large number of people to queue at peak time, not only affecting the card sales 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 sales scheme causes the number of card sales equipment 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 sales business.
[0023] Based on this, the embodiments of the present application provide a card sales method, device and medium based on NFC technology, aiming to meet the convenient card sales demand of large-scale activity places and improve the card sales efficiency.
[0024] The embodiments of the present application will be further described below with reference to the accompanying drawings.
[0025] Figure 1is an optional flowchart of the card selling method based on the NFC technology provided in the embodiments of the present application, Figure 1 The method in the first aspect can include, but is not limited to, steps S100 to S500.
[0026] The first aspect, as shown in the first aspect, Figure 1 provides a card selling method based on the NFC technology, and the method includes the following steps. S100, obtaining data of a card to be sold by using an NFC module of a mobile device.
[0027] It should be noted that the NFC is based on a radio frequency technology of 13.56 MHz, and the communication distance is usually within 0-10 centimeters. The 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 emits a radio frequency signal to provide energy for the card to be sold and establish a communication link. After the card to be sold receives the signal, the internal chip is activated, and the stored data is fed back to the mobile device through the radio frequency signal. The data transmission speed is fast, and 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.
[0028] S200, activating a corresponding interface of a function module of the mobile device to display the data.
[0029] It should be noted that the activation of the corresponding interface is automatically triggered by the system. After the triggering, the module performs data request, then performs analysis and processing, and finally drives the interface rendering. For the user, the key information such as the card state and the amount can be intuitively mastered to support the operation decision such as card purchase and verification. 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.
[0030] S300, determining whether the card to be sold is in an unsold state and is a non-endorsement card by using the function module, and outputting a first determination result.
[0031] S400, in a case where the first determination result is that the card to be sold is in an unsold state and is a non-endorsement 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.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] In a possible implementation manner, as shown in Figure 2 After the step of judging whether the to-be-verified card is successfully written with data by using the function module and outputting a second judgment result, the method further includes: 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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 that 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.
[0042] 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: 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.
[0043] S302, the card user based on the write failure prompt to select the card to be verified for data write, generate retry instruction.
[0044] S303, using function module base retry instruction 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.
[0045] 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 the card state to the current card to be verified to send write card instruction, to get the card.
[0046] 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 the 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 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 the card state to the current card to be verified to send write card instruction, 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] The electronic device 1400 shown in FIG. 14 includes: Figure 4 one or more processors 1410; one or more processors 1410; a memory 1420 having one or more programs stored thereon, 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 present application.
[0059] The memory 1420 is a kind of non-transient network system, which can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory 1420 can include a high-speed random access memory, and can also include a non-transient memory, such as at least one magnetic disk storage device, a 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 with respect to the processor 1410, and these remote memories 1420 can be connected to the processor 1410 through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0060] 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.
[0061] 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.
[0062] In some embodiments, the electronic device further comprises: An input / output interface for realizing information input and output; A communication interface for realizing communication interaction between the device and other devices. The communication can be realized by a wired manner (for example, a USB, a network cable, etc.) or a wireless manner (for example, a mobile network, WIFI, Bluetooth, etc.); A bus for transmitting information between various components (for example, the processor 1410, the memory 1420, the input / output interface, and the communication interface) of the device; The processor 1410, the memory 1420, the input / output interface, and the communication interface can realize communication connection between each other inside the device through the bus.
[0063] 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.
[0064] 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.
[0065] The system architecture and application scenarios described in the embodiments of the present application are used to more clearly illustrate 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.
[0066] 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. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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 permutation of structure, sequence or order where such modification is not otherwise described as indefinite. Furthermore, the terms "comprising", "having", "including", and "containing" are to be construed open-ended, unless otherwise noted, as permitting the specification of the more limited "consisting essentially of" and "consisting of" embodiments. It is intended that each limitation listed in the following claims is to be construed separately and in non-dependence on other recitations. None of the use of "or" in the application or claims is intended to open up alternatives for claim interpretation unless otherwise noted.
[0071] 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.
[0072] 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 embodiment 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.
[0073] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order in order to achieve the desired results. In some implementations, multitasking and parallel processing can be advantageous or necessary.
[0074] 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 selling method based on NFC technology, characterized in that: The method comprises: Using the NFC module of the mobile device to obtain the data of the card to be sold; activating a corresponding interface of a functional module of the mobile device to display the data; Using the functional module to determine whether the card to be sold is in an unsold state and is a non-registered card, and outputting a first determination result; If the first judgment result is that the card to be sold is in an unsold state and is a non-registered card, using the functional module to send a card writing instruction to the card to be sold through the NFC module to obtain the card to be verified; The functional module is used to determine whether data is successfully written into the card to be verified, and a second determination result is output. If the second determination result is that data is successfully written into the card to be verified, the sold card is obtained.
2. The method according to claim 1, characterized in that After the function module is used to determine whether data is successfully written into the card to be verified and the second judgment result is output, the method further includes: If the second judgment result is that the data writing to the card to be verified fails, activating a corresponding interface of a functional module of the mobile device to display a writing failure prompt; The card seller chooses to skip writing data of the card to be verified based on the write failure prompt, and generates a skip instruction; The functional module marks the order of the card to be verified as a transaction failure based on the skip instruction, and sends an instruction to apply for card search to the backend server of the functional module; The backend server searches for the card again through the NFC module based on the instruction for applying for the card search, so as to obtain data of a new card to be sold.
3. The method according to claim 1, characterized in that After the function module is used to determine whether data is successfully written into the card to be verified and the second judgment result is output, the method further includes: If the second judgment result is that the data writing to the card to be verified fails, activating a corresponding interface of a functional module of the mobile device to display a writing failure prompt; The card seller chooses to rewrite data to the card to be verified based on the write failure prompt, and generates a retry instruction; Using the functional module to read the first card number of the current card to be verified and the second card number of the card to be verified that failed to write data based on the retry instruction, and comparing the first card number with the second card number to output a third judgment result; When the third judgment result is that the first card number is consistent with the second card number, the functional module is used to read the card status of the current card to be verified, and a card write instruction is resent to the current card to be verified based on the card status to obtain the sold card.
4. The method according to claim 3, characterized in that The re-sending of a card write instruction to the current card to be verified based on the card status to obtain the sold card includes: If the card status is sold, the functional module is used to determine whether there is an abnormality in the card data of the current card to be verified. When there is an abnormality in the card data of the current card to be verified, a card write instruction is re-sent to the current card to be verified to obtain the sold card. If the card status is unsold, a card write instruction is re-sent to the current card to be verified to obtain the sold card.
5. The method according to claim 1, wherein Before using the NFC module of the mobile device to obtain the data of the card to be sold, the method further includes: utilizing the functional module to respond to card selling user operations to select the type of the card to be sold; The backend server of the functional module generates payment information based on the type, and sends the payment information to the corresponding interface of the functional module to display the payment information; The card purchasing user completes the payment based on the payment information and obtains the card for sale.
6. The method according to claim 5, characterized in that The types of cards to be sold include the unregistered card and the registered card. After the function module is used to respond to the card selling user's operation 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 registered card, the card purchasing user fills in personal information through the functional module; The personal information is encrypted using the functional module to obtain encrypted data.
7. The method according to claim 6, characterized in that The acquisition of 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 status of the card to be sold, and the type of the card to be sold.
8. The method according to claim 6, characterized in that The utilizing the functional module to encrypt the personal information to obtain encrypted data includes: Utilize the backend server to obtain multiple symmetric encryption and decryption algorithms preset in the functional module and randomly generate a serial number; The backend server is used to encrypt the personal information according to the symmetric encryption and decryption algorithm corresponding to the serial number, and the obtained encrypted data is sent to the functional module.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the NFC technology-based card selling method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the card selling method based on NFC technology according to any one of claims 1 to 8 is implemented.
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
Automatic card writing method based on NFC chip anti-counterfeiting authentication
CN106327213A
Equipment with SIM card selling and cashiering functions
CN110827485A
NFC mobile phone-based over-the-air card issuing method and server
CN116156483A