CN112347802B - Card swiping method, system and device - Google Patents

Card swiping method, system and device Download PDF

Info

Publication number
CN112347802B
CN112347802B CN202011209658.5A CN202011209658A CN112347802B CN 112347802 B CN112347802 B CN 112347802B CN 202011209658 A CN202011209658 A CN 202011209658A CN 112347802 B CN112347802 B CN 112347802B
Authority
CN
China
Prior art keywords
card
information
calling
virtual card
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011209658.5A
Other languages
Chinese (zh)
Other versions
CN112347802A (en
Inventor
刘明明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011209658.5A priority Critical patent/CN112347802B/en
Publication of CN112347802A publication Critical patent/CN112347802A/en
Application granted granted Critical
Publication of CN112347802B publication Critical patent/CN112347802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10376Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable
    • G06K7/10386Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable the interrogation device being of the portable or hand-handheld type, e.g. incorporated in ubiquitous hand-held devices such as PDA or mobile phone, or in the form of a portable dedicated RFID reader
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10237Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a card swiping method, a system and a device, wherein in the scheme, whether a card reader is identified is judged, when the card reader is judged to be identified, information of a virtual card stored in electronic equipment is called, and the information of the card is sent to the card reader so as to realize card swiping. According to the method and the device, after the card reader is identified, the card information can be sent to the card reader automatically, a user is not required to lighten the screen of the electronic device to select the virtual card, automatic card swiping can be achieved, operation of the user is convenient, and meanwhile power consumption of the electronic device is reduced.

Description

Card swiping method, system and device
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a card swiping method, system and device.
Background
At present, with the development of scientific technology, the functions of electronic devices are more and more complete. Most electronic devices carry NFC (Near Field Communication ) card copy functionality. Specifically, after the user opens the NFC function of the electronic device, the physical card is attached to the electronic device, and the electronic device reads information of the physical card and stores the information of the physical card into the virtual card in the electronic device. It can be seen that a virtual card in an electronic device may replace a physical card. The electronic equipment can store a plurality of virtual cards, so that a user does not need to take a physical bus card, an access control card, a meal card and the like when going out, and the portable mode of 'the equipment walking with the user in hands and under the sky' is truly realized.
However, in the prior art, when a user swipes a card through a virtual card in an electronic device, the user needs to first light up a screen, find a corresponding virtual card, trigger the electronic device to call the found information of the virtual card to swipe the card, and the user operation is complex and increases energy consumption.
Disclosure of Invention
The invention aims to provide a card swiping method, a card swiping system and a card swiping device, which can automatically send card information to a card reader after the card reader is identified, do not need a user to lighten a screen of electronic equipment to select a virtual card, can realize automatic card swiping, are convenient for the user to operate, and simultaneously reduce the power consumption of the electronic equipment.
In order to solve the technical problems, the present invention provides a card swiping method, which is applied to an electronic device, and includes:
judging whether a card reader is identified;
if yes, calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing.
Preferably, the calling the information of the virtual card stored in the electronic device and sending the information to the card reader includes:
determining the calling sequence of the information of each virtual card based on a first preset calling rule;
and calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader so as to realize card swiping processing.
Preferably, the determining the calling sequence of the information of each virtual card based on the first preset calling rule includes:
and sequencing the virtual cards according to the sequence from more to less in the total number of successful card swiping times of the virtual cards in the historical time taking the current time as a reference to obtain the calling sequence of the information of the virtual cards.
Preferably, the determining the calling sequence of the information of each virtual card based on the first preset calling rule includes:
dividing a day into N time periods, wherein N is an integer not less than 1;
the total times of successful card swiping of each virtual card in each historical time period taking the current time as a reference are sequenced from more to less, and the calling sequence of the information of each virtual card in each time period in one day is obtained;
and taking the calling sequence of the information of each virtual card in the time period of the current time as the calling sequence of the information of each virtual card in the current time.
Preferably, the calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader includes:
s21: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s22: calling the information of the current virtual card and sending the information to the card reader;
s23: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S24, and if so, entering S27;
s24: judging whether the calling times of the current virtual card are not less than preset calling times, if so, entering S25, and if not, returning to S22;
s25: judging whether a virtual card without calling information exists, if so, entering S26, and if not, entering S27;
s26: taking the next virtual card of the current virtual card as the current virtual card and returning to S22;
s27: and stopping calling the information of the virtual card.
Preferably, before the step S21, the method further includes:
s31: judging whether the number of the virtual cards is not more than the number of the preset cards, if so, entering a step S21, and if not, entering a step S32;
s32: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s33: calling the information of the current virtual card and sending the information to the card reader;
s34: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S35, and if so, entering S37;
s35: judging whether a virtual card without calling information exists, if yes, entering S36, and if not, entering S37;
s36: taking the next virtual card of the current virtual card as the current virtual card and returning to S33;
s37: and stopping calling the information of the virtual card.
Preferably, after the determining that there is no virtual card that does not call information and stopping calling information of the virtual card, the method further includes:
and the control prompt module sends prompt information of card swiping failure to the user.
Preferably, the control prompt module sends prompt information of card swiping failure to a user, including:
and controlling the electronic equipment to lighten a screen and/or vibrate so as to send prompt information of the card swiping failure to a user.
In order to solve the above technical problems, the present invention provides a card swiping system, which is applied to an electronic device, and includes:
the judging unit is used for judging whether the card reader is identified and triggering the information calling unit after judging that the card reader is identified;
the information calling unit is used for calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing.
In order to solve the above technical problems, the present invention provides a card swiping device, including:
a memory for storing a computer program;
and a processor for implementing the steps of the card swiping method as described above when executing the computer program.
The invention provides a card swiping method, a system and a device, wherein in the scheme, whether a card reader is identified is judged, when the card reader is judged to be identified, information of a virtual card stored in electronic equipment is called, and the information of the card is sent to the card reader so as to realize card swiping. According to the method and the device, after the card reader is identified, the card information can be sent to the card reader automatically, a user is not required to lighten the screen of the electronic device to select the virtual card, automatic card swiping can be achieved, operation of the user is convenient, and meanwhile power consumption of the electronic device is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a card swiping method provided by the invention;
FIG. 2 is a schematic flow chart of information for calling a virtual card according to the present invention;
FIG. 3 is a schematic flow chart of a method for specifically invoking information of a virtual card according to the present invention;
FIG. 4 is a schematic diagram of a card swiping system according to the present invention;
fig. 5 is a schematic structural diagram of a card swiping device according to the present invention.
Detailed Description
The core of the invention is to provide a card swiping method, a system and a device, which can automatically send card information to a card reader after the card reader is identified, does not need a user to lighten a screen of electronic equipment to select a virtual card, can realize automatic card swiping, is convenient for the user to operate, and simultaneously reduces the power consumption of the electronic equipment.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a card swiping method provided by the invention, and the method is applied to an electronic device and comprises the following steps:
s11: judging whether the card reader is identified, if so, entering S12;
in the application, the electronic device can automatically identify the card reader, and particularly when the distance between the NFC coil in the electronic device and the card reader is far, the NFC coil in the electronic device and the card reader cannot interact; when the NFC coil in the electronic device is close to the card reader, the NFC coil in the electronic device interacts with the card reader. In practical application, when a user attaches the electronic device to the card reader, the NFC coil in the electronic device interacts with the card reader, and the electronic device can judge and identify the card reader based on the NFC coil, so that subsequent processing is automatically performed, the user does not need to open the electronic device, the screen of the electronic device is lightened, and certain energy consumption is saved.
It should be noted that, the card reader in the present application may be, but not limited to, an access card reader, a meal card reader, or a bus card reader.
S12: and calling information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing.
In order to avoid the user from manually selecting the information of the virtual card, in the application, after the card reader is identified, the electronic device can automatically call the information of the virtual card stored in advance and send the information of the virtual card to the card reader so as to realize the card swiping process.
To achieve the above procedure, it is necessary to store information of the virtual card in the electronic device in advance. Specifically, when the electronic device stores information of the physical card as information of a virtual card in the electronic device, the electronic device acts as a card reader, namely, the NFC coil in the electronic device is equivalent to a primary coil of a transformer and supplies power to the inductance coil in the physical card, the inductance coil in the physical card is equivalent to a secondary coil of the transformer, when a user approaches the physical card to the electronic device, the NFC coil in the electronic device supplies power to the inductance coil in the physical card, the physical card modulates the information stored by the electronic device on the inductance coil after being electrified, namely, the impedance of the inductance coil is regularly changed, and the electronic device reads out the information in the physical card and stores the information in a memory of the electronic device by detecting the change rule of the impedance of the inductance coil in the physical card.
In addition, the electronic device can also perform data interaction with other electronic devices to acquire the information of the virtual card stored by the other electronic devices and store the information into a memory of the electronic device. The electronic devices may transmit information of the virtual card through NFC or other communication methods.
In addition, when the information of the virtual card stored in the electronic equipment is called so as to punch the card, the electronic equipment modulates the information of the virtual card on the NFC coil, so that the card reader reads the information of the virtual card in the electronic equipment, and the card punching process is further realized.
When a plurality of virtual cards are stored in the electronic device, the information of each virtual card may be called based on a certain calling order, and the calling order may be, but is not limited to, a calling order set by the user or a storage order of each virtual card. After the information of the virtual card is sent to the card reader, when the information of successful card swiping sent by the card reader is received, the information of the virtual card does not need to be called. When the information of the plurality of virtual cards is called, but the information of successful card swiping sent by the card reader is not received, the information of the virtual cards is not called any more.
The virtual card in the present application may be, but is not limited to, an access card, a meal card, or a bus card. In addition, the electronic device in the application may be, but not limited to, a mobile phone with NFC function or a bracelet with NFC function.
In sum, the card information can be sent to the card reader by the electronic equipment after the card reader is identified, the user does not need to lighten the screen to select the virtual card, the operation of the user is convenient, and meanwhile, the power consumption is reduced.
Based on the above embodiments:
as a preferred embodiment, the method for calling the information of the virtual card stored in the electronic device and sending the information to the card reader includes:
determining the calling sequence of the information of each virtual card based on a first preset calling rule;
and calling the information of the virtual cards according to the calling sequence of the information of each virtual card and sending the information to the card reader so as to realize card swiping processing.
In this embodiment, considering that information of a plurality of virtual cards may be stored in the electronic device, when information of a virtual card stored in the electronic device is called, a calling order of the information of the plurality of virtual cards stored in the electronic device is determined based on a first calling rule, and then the information of the virtual cards is sequentially called based on the determined calling order and sent to the card reader, so as to realize card swiping processing.
The first preset calling rule may, but is not limited to, determine, from more to less, a calling order of information of each virtual card according to a number of times that the virtual card is swiped successfully.
When the information of the virtual cards is sequentially called based on the determined sequence, the information of the virtual cards is sent to the card reader, and after the information of the virtual cards which is successfully identified and sent by the card reader is received, the information of the virtual cards is not called; if the information of successful identification sent by the card reader is not received, the information of the virtual cards is continuously called in sequence until the information of successful identification sent by the card reader is received, or all the information of the virtual cards is called.
In summary, the method of the present application can be invoked in sequence based on the information of the plurality of virtual cards stored in the electronic device, so that the user operation is facilitated.
As a preferred embodiment, determining the calling order of the information of each virtual card based on the first preset calling rule includes:
and sequencing the virtual cards in order from more to less according to the total successful card swiping times of the virtual cards in the historical time taking the current time as a reference, and obtaining the calling order of the information of the virtual cards.
In this embodiment, when determining the calling order of the information of the virtual cards in the electronic device based on the first preset calling rule, all the virtual cards are ordered from more to less according to the total number of successful card swiping times in the historical time based on the current time. The virtual card with the largest successful card swiping frequency in the historical time is used as the virtual card of the first called information, and the virtual card with the smallest successful card swiping frequency is used as the virtual card of the last called information. Based on this, the probability of successful card swiping of the virtual card of the first called information is greater and the total time consumed is shorter.
In addition, the first preset calling rule may also be a rule that the user manually orders the virtual cards in the electronic device in advance, and the order of the virtual cards is set by the user, which is not limited in this application.
As a preferred embodiment, determining the calling order of the information of each virtual card based on the first preset calling rule includes:
dividing a day into N time periods, wherein N is an integer not less than 1;
the method comprises the steps that the total times of successful card swiping of each virtual card in each historical time period taking the current time as a reference are ordered from more to less, and the calling sequence of information of each virtual card in each time period in one day is obtained;
and taking the calling sequence of the information of each virtual card in the time period of the current time as the calling sequence of the information of each virtual card in the current time.
In this embodiment, when determining the order of virtual cards in the electronic device, a day is first divided into N time periods, for example, every two hours between 0 and 24 hours in a day is divided into one time period, and then the number of times of successful card swiping for information of each virtual card in each time period is determined from more to less based on the historical time based on the current time. For example, in the history time, the virtual card with the largest number of successful card swipes is taken as the first virtual card of the called information in the time period from 6 to 8 hours. Based on the information, determining the time period of the current time in the current day, and taking the calling sequence of the information of each virtual card in the time period of the current time as the calling sequence of the information of each virtual card in the current time. The probability of successful card swiping of the first called virtual card is improved, and time is saved.
In addition, the virtual card sorting method is not limited to the basis of virtual card sorting, and automatic card swiping can be achieved.
As a preferred embodiment, calling information of the virtual card in order of calling information of each virtual card and transmitting the information to the card reader, includes:
s21: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s22: calling the information of the current virtual card and sending the information to the card reader;
s23: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S24, and if so, entering S27;
s24: judging whether the calling times of the current virtual card are not less than preset calling times, if so, entering S25, and if not, returning to S22;
s25: judging whether a virtual card without calling information exists, if so, entering S26, and if not, entering S27;
s26: taking the next virtual card of the current virtual card as the current virtual card and returning to S22;
s27: and stopping calling the information of the virtual card.
In this embodiment, considering that after the information of the virtual card is called and sent to the card reader, there may be some interference factors that cause that the virtual card matched with the card reader cannot be swiped successfully, for example, the card reader is inaccurate in identifying the information and/or the distance between the electronic device and the card reader is unstable, when the information of each virtual card is called based on the second preset calling rule, the information of each virtual card is called for preset calling times, if the information of successful swipe sent by the card reader is not received after the preset calling times is called, the information of the next virtual card is called, and the information is sent to the card reader continuously until the swipe is successful or all the information of the virtual card is called. Referring to fig. 2, fig. 2 is a schematic flow chart of information of calling a virtual card according to the present invention. Therefore, the probability of successful card swiping is improved in the embodiment.
As a preferred embodiment, before S21, the method further includes:
s31: judging whether the number of the virtual cards is not more than the number of the preset cards, if so, entering step S21, and if not, entering step S32;
s32: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s33: calling the information of the current virtual card and sending the information to the card reader;
s34: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S35, and if so, entering S37;
s35: judging whether a virtual card without calling information exists, if yes, entering S36, and if not, entering S37;
s36: taking the next virtual card of the current virtual card as the current virtual card and returning to S33;
s37: and stopping calling the information of the virtual card.
In this embodiment, it is considered that when the number of virtual cards is large, if all virtual cards call the preset number of times, then the time consumed is long. In order to solve the problems, before the information of calling the virtual cards is sent to the card reader, the method judges whether the number of the virtual cards is not larger than the preset number of cards, if so, the information of each virtual card is called according to the calling sequence of the information of each virtual card, and when the information of successful card swiping sent by the card reader is not received, the information of each virtual card is called for preset calling times so as to improve the success probability. The preset number of calls may be, but not limited to, two.
However, if the number of virtual cards is large and the number of virtual cards is larger than the number of preset cards, the information of each virtual card is called according to the calling sequence of the information of each virtual card, and the information of each virtual card is called only once. Referring to fig. 3, fig. 3 is a schematic flow chart of information for specifically calling a virtual card according to the present invention.
It should be noted that, when all the information of the virtual cards is called, but the information of successful card swiping sent by the card reader is still not received, the user is prompted to fail card swiping when the information of the virtual cards in the electronic device is called, and the user can select the entity card swiping or other methods by himself, so that the user can conveniently carry out subsequent processing.
In addition, after the successful card swiping is confirmed, the judgment is restarted to judge whether the card reader is recognized or not, so that a new round of card swiping process is started.
As a preferred embodiment, after determining that there is no virtual card that has not called information and stopping calling information of the virtual card, the method further includes:
and the control prompt module sends prompt information of card swiping failure to the user.
In this embodiment, it is considered that after the information of successful card swiping of the card reader is not received and there is no virtual card that does not call the information, the user cannot determine whether the card swiping is successful at this time. In order to solve the problems, after the virtual card without the non-call information stops calling the information of the virtual card, the prompt module is controlled to send prompt information of card swiping failure to the user so as to prompt the user to select the entity card or perform subsequent processing in other modes, thereby being convenient for the user to operate.
As a preferred embodiment, the control prompt module sends prompt information of card swiping failure to a user, and the control prompt module comprises:
and controlling the electronic equipment to lighten a screen and/or vibrate so as to send prompt information of card swiping failure to a user.
In this embodiment, the electronic device may be controlled to light to prompt the user that the card swipe fails, or controlled to vibrate to prompt the user that the card swipe fails. When the environment where the user is located is brighter, the vibration module can enable the user to receive the prompt of the card swiping failure more timely.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a card swiping system according to the present invention.
The system is applied to electronic equipment and comprises:
the judging unit 1 is used for judging whether the card reader is identified and triggering the information calling unit 2 after judging that the card reader is identified;
and the information calling unit 2 is used for calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing.
For an introduction to the card swiping system provided by the present invention, refer to the above method embodiment, and the disclosure is not repeated here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a card swiping device according to the present invention.
The card swiping device comprises:
a memory 3 for storing a computer program;
and a processor 4 for implementing the steps of the card swiping method as described above when executing the computer program.
For the description of the card swiping device provided by the invention, refer to the above method embodiment, and the description of the invention is omitted here.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for swiping a card, applied to an electronic device, comprising:
judging whether a card reader is identified;
if yes, calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing;
the calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader comprises the following steps:
determining the calling sequence of the information of each virtual card based on a first preset calling rule;
calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader so as to realize card swiping processing;
the step of calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader comprises the following steps:
s21: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s22: calling the information of the current virtual card and sending the information to the card reader;
s23: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S24, and if so, entering S27;
s24: judging whether the calling times of the current virtual card are not less than preset calling times, if so, entering S25, and if not, returning to S22;
s25: judging whether a virtual card without calling information exists, if so, entering S26, and if not, entering S27;
s26: taking the next virtual card of the current virtual card as the current virtual card and returning to S22;
s27: stopping calling the information of the virtual card;
prior to S21, further comprising:
s31: judging whether the number of the virtual cards is not more than the number of the preset cards, if so, entering a step S21, and if not, entering a step S32;
s32: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s33: calling the information of the current virtual card and sending the information to the card reader;
s34: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S35, and if so, entering S37;
s35: judging whether a virtual card without calling information exists, if yes, entering S36, and if not, entering S37;
s36: taking the next virtual card of the current virtual card as the current virtual card and returning to S33;
s37: and stopping calling the information of the virtual card.
2. The card swiping method according to claim 1, wherein the determining the calling order of the information of each virtual card based on the first preset calling rule includes:
and sequencing the virtual cards according to the sequence from more to less in the total number of successful card swiping times of the virtual cards in the historical time taking the current time as a reference to obtain the calling sequence of the information of the virtual cards.
3. The card swiping method according to claim 1, wherein the determining the calling order of the information of each virtual card based on the first preset calling rule includes:
dividing a day into N time periods, wherein N is an integer not less than 1;
the total times of successful card swiping of each virtual card in each historical time period taking the current time as a reference are sequenced from more to less, and the calling sequence of the information of each virtual card in each time period in one day is obtained;
and taking the calling sequence of the information of each virtual card in the time period of the current time as the calling sequence of the information of each virtual card in the current time.
4. The card swiping method according to claim 1, wherein after judging that there is no virtual card of the unrecalled information and stopping calling the information of the virtual card, further comprising:
and the control prompt module sends prompt information of card swiping failure to the user.
5. The card swiping method according to claim 4, wherein the control prompt module sends prompt information of card swiping failure to a user, comprising:
and controlling the electronic equipment to lighten a screen and/or vibrate so as to send prompt information of the card swiping failure to a user.
6. A system for swiping a card applied to an electronic device, comprising:
the judging unit is used for judging whether the card reader is identified and triggering the information calling unit after judging that the card reader is identified;
the information calling unit is used for calling the information of the virtual card stored in the electronic equipment and sending the information to the card reader so as to realize card swiping processing;
the information calling unit is specifically used for determining the calling sequence of the information of each virtual card based on a first preset calling rule; calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader so as to realize card swiping processing;
the step of calling the information of the virtual card according to the calling sequence of the information of each virtual card and sending the information to the card reader comprises the following steps:
s21: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s22: calling the information of the current virtual card and sending the information to the card reader;
s23: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S24, and if so, entering S27;
s24: judging whether the calling times of the current virtual card are not less than preset calling times, if so, entering S25, and if not, returning to S22;
s25: judging whether a virtual card without calling information exists, if so, entering S26, and if not, entering S27;
s26: taking the next virtual card of the current virtual card as the current virtual card and returning to S22;
s27: stopping calling the information of the virtual card;
prior to S21, further comprising:
s31: judging whether the number of the virtual cards is not more than the number of the preset cards, if so, entering a step S21, and if not, entering a step S32;
s32: determining a first called virtual card according to the calling sequence of the information of each virtual card, and taking the first virtual card as a current virtual card;
s33: calling the information of the current virtual card and sending the information to the card reader;
s34: judging whether the information of successful card swiping sent by the card reader is received, if not, entering S35, and if so, entering S37;
s35: judging whether a virtual card without calling information exists, if yes, entering S36, and if not, entering S37;
s36: taking the next virtual card of the current virtual card as the current virtual card and returning to S33;
s37: and stopping calling the information of the virtual card.
7. A card swiping device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the card swiping method according to any one of claims 1 to 5 when executing the computer program.
CN202011209658.5A 2020-11-03 2020-11-03 Card swiping method, system and device Active CN112347802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011209658.5A CN112347802B (en) 2020-11-03 2020-11-03 Card swiping method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011209658.5A CN112347802B (en) 2020-11-03 2020-11-03 Card swiping method, system and device

Publications (2)

Publication Number Publication Date
CN112347802A CN112347802A (en) 2021-02-09
CN112347802B true CN112347802B (en) 2023-05-02

Family

ID=74356199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011209658.5A Active CN112347802B (en) 2020-11-03 2020-11-03 Card swiping method, system and device

Country Status (1)

Country Link
CN (1) CN112347802B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883657A (en) * 2015-04-30 2015-09-02 努比亚技术有限公司 Virtual card management method and apparatus
CN109146472A (en) * 2017-06-16 2019-01-04 北京橙鑫数据科技有限公司 Recommended method, device and the mobile terminal of card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7413113B1 (en) * 2004-07-28 2008-08-19 Sprint Communications Company L.P. Context-based card selection device
US20090037326A1 (en) * 2007-07-30 2009-02-05 Sriram Chitti Virtual Card Selector for a Portable Electronic Device
CN108665265B (en) * 2018-05-21 2021-08-31 北京小米移动软件有限公司 Virtual card display method and device
CN111241856B (en) * 2020-01-09 2024-03-29 广东小天才科技有限公司 Method for selecting NFC analog card and watch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883657A (en) * 2015-04-30 2015-09-02 努比亚技术有限公司 Virtual card management method and apparatus
CN109146472A (en) * 2017-06-16 2019-01-04 北京橙鑫数据科技有限公司 Recommended method, device and the mobile terminal of card

Also Published As

Publication number Publication date
CN112347802A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US9652133B2 (en) Method and apparatus for designating entire area using partial area touch in a portable equipment
CN101226651B (en) Mobile terminal with check on work attendance function, check on work attendance system as well as method thereof
CN100488272C (en) Mobile communication terminal and communication control method
CN101098530A (en) Mobile terminal and method for displaying standby screen according to analysis result of user's behaviour
CN109840318A (en) A kind of filling method and system of form item
EP1783658A2 (en) Apparatus and method for modifying RFID tag data in portable terminal
CN112347802B (en) Card swiping method, system and device
CN110109365A (en) Speaker control method, device and computer readable storage medium
CN113361293A (en) Card swiping method, card controller, electronic device and storage medium
CN110534096A (en) A kind of artificial intelligent voice recognition methods and system based on microcontroller
US7336179B2 (en) Information processing system using IC tags
CN110059514A (en) Method for writing data, NFC label, NFC device and storage medium
CN112511974A (en) NFC card selection method and device and electronic equipment
KR101210364B1 (en) Mobile communication terminal and method for being operating on the basis behavior analysis result of user
CN113806469A (en) Sentence intention identification method and terminal equipment
CN101370052A (en) Multi-reminding tone implementing method based on NFC and mobile terminal
US20190109906A1 (en) Control apparatus for recognizing a far end
CN108664822B (en) Method for optimizing power consumption of card reader and card reader
CN110351438A (en) A kind of phone wheel dialing method and system
CN113225676A (en) Near field communication setting method and device, mobile terminal and storage medium
CN112052313A (en) Method and equipment for interacting with intelligent response system
US20130171961A1 (en) Communication control system and method
CN105677354B (en) Mobile terminal matching device, mobile terminal and mobile terminal control method
CN112801657B (en) Automatic processing method and device for recharging of meal card
CN113486684A (en) NFC access control card automatic and rapid switching method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant