CN115618899A - Card switching method and device based on near field communication - Google Patents

Card switching method and device based on near field communication Download PDF

Info

Publication number
CN115618899A
CN115618899A CN202211638253.2A CN202211638253A CN115618899A CN 115618899 A CN115618899 A CN 115618899A CN 202211638253 A CN202211638253 A CN 202211638253A CN 115618899 A CN115618899 A CN 115618899A
Authority
CN
China
Prior art keywords
card
nfc device
current default
near field
field communication
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.)
Granted
Application number
CN202211638253.2A
Other languages
Chinese (zh)
Other versions
CN115618899B (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.)
Beijing Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems 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 Beijing Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202211638253.2A priority Critical patent/CN115618899B/en
Publication of CN115618899A publication Critical patent/CN115618899A/en
Application granted granted Critical
Publication of CN115618899B publication Critical patent/CN115618899B/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
    • 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

  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses card switching method and device based on near field communication, in the method, when the electric quantity of terminal equipment is lower than a preset threshold value, card package information of the terminal equipment is obtained, so that an NFC device can utilize a plurality of cards in the card package information and card parameter information corresponding to each card, and the current default used card of the NFC device is switched until the current default used card of the NFC device is read by a target near field communication card reader, therefore, the NFC device in the terminal equipment can also be switched, time for switching the default used card by a user is saved, and user experience is improved.

Description

Card switching method and device based on near field communication
Technical Field
The present application relates to the field of near field communication technologies, and in particular, to a card switching method and apparatus based on near field communication.
Background
At present, various consumer and industrial internet of things devices carrying Near Field Communication (NFC) chips are widely applied to social life and production. Existing NFC in the market too relies on the user to carry out the switching of card to the NFC of terminal, cause the condition that the NFC chip is at the terminal shutdown unable self-service card cutting and swiping card, need the user can only manually switch the acquiescent card of using of NFC under terminal power on state in daily use, lead to the user can only swipe the acquiescent card of using in terminal NFC under the condition that the terminal shutdown, for example, if when the mobile phone electric quantity is not enough to shut down and be in no host computer state (namely terminal shutdown), the acquiescent card of using of terminal NFC this moment is entrance guard's card, but need swipe the traffic card to pay and pass this moment, but can't be switched to the traffic card by the entrance guard's card automatically. Therefore, the requirement that the NFC chip can automatically switch the default card in NFC is very important when the terminal is turned off. The inventor discovers that in the process of implementing the invention: the above process is cumbersome to operate, time consuming, and user experience is poor.
Disclosure of Invention
The application provides a card switching method and device based on near field communication, so that card switching can be performed by an NFC device in terminal equipment under a shutdown state of the terminal equipment, time for switching default cards by a user is saved, and user experience is improved.
In a first aspect, the present application provides a card switching method based on near field communication, where the method is applied to a terminal device, where the terminal device includes an NFC apparatus, and the method includes:
if the electric quantity of the terminal equipment is lower than a preset threshold value, sending a card packet information acquisition instruction to a server so as to acquire card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card;
and the NFC device switches the current default used card of the NFC device according to the card parameter information of the current default used card of the NFC device and the card packet information until the current default used card of the NFC device is read by a target near field communication card reader.
In a second aspect, the present application provides a card switching apparatus based on near field communication, where the apparatus is applied to a terminal device, and the terminal device includes an NFC apparatus therein, and the apparatus includes:
the request unit is used for sending a card packet information acquisition instruction to a server if the electric quantity of the terminal equipment is lower than a preset threshold value so as to acquire the card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card;
and the switching unit is used for switching the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
In a third aspect, the present application provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, cause the electronic device to perform the method according to any one of the first aspect.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
It can be seen from the above technical solutions that, the method provided by the present application is applied to a terminal device, where the terminal device includes an NFC apparatus, and the method includes: if the electric quantity of the terminal equipment is lower than a preset threshold value, sending a card packet information acquisition instruction to a server so as to acquire card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card; and the NFC device switches the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader. Therefore, according to the method provided by the application, when the electric quantity of the terminal equipment is lower than the preset threshold value, the card package information of the terminal equipment is obtained, so that the NFC device can utilize the card parameter information corresponding to a plurality of cards and each card in the card package information to switch the current default used card of the NFC device until the current default used card of the NFC device is read by the target near field communication card reader, and therefore the NFC device in the terminal equipment can also switch the cards in the shutdown state of the terminal equipment, time for switching the default used card by a user is saved, and user experience is improved.
Further effects of the above-described unconventional preferred modes will be described below in conjunction with the detailed description.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings needed for describing the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic flowchart of a card switching method based on near field communication according to the present application;
fig. 2 is a schematic structural diagram of a card switching device based on near field communication according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The inventor finds that in the prior art, the current NFC excessively depends on the user to perform card switching on the NFC of the terminal, which causes that the NFC chip cannot automatically switch cards and swipe cards under the condition that the terminal is turned off, and the user is required to manually switch the NFC default use card in a terminal turn-on state in daily use, so that the user can only swipe the default use card in the terminal NFC under the condition that the terminal is turned off, for example, when the mobile phone is powered off under insufficient electric quantity and is in a no-host state (i.e., the terminal is turned off), the default use card at the moment of the terminal NFC is an entrance guard card, but at the moment, the user needs to swipe a traffic card to pay for passing, but cannot automatically switch the card to the traffic card by the entrance guard card. Therefore, the requirement that the NFC chip can automatically switch the default card in NFC is very important when the terminal is turned off. The inventor discovers that in the process of implementing the invention: the above process is cumbersome to operate, time consuming, and user experience is poor.
Therefore, the card switching method based on near field communication is provided, when the electric quantity of the terminal equipment is lower than a preset threshold value, the card package information of the terminal equipment is obtained, so that the NFC device can utilize a plurality of cards in the card package information and card parameter information corresponding to each card to switch the current default used card of the NFC device until the current default used card of the NFC device is read by a target near field communication card reader, and therefore the NFC device in the terminal equipment can also switch the cards in a shutdown state of the terminal equipment, time for switching the default used cards by a user is saved, and user experience is improved.
Next, referring to fig. 1, a card handover method based on near field communication in an embodiment of the present application is shown, where the method is applied to a terminal device, where the terminal device includes an NFC apparatus, and in an implementation manner, the terminal device includes a HOST (i.e., HOST) and the NFC apparatus, and the NFC apparatus includes a Secure Element (SE), a contactless front end (also called an NFC controller, abbreviated as CLF), and a radio frequency Antenna (i.e., antenna). In this embodiment, the method may include, for example, the steps of:
s101: and if the electric quantity of the terminal equipment is lower than a preset threshold value, sending a card packet information acquisition instruction to a server so as to acquire the card packet information determined by the server according to the card packet information acquisition instruction.
Specifically, the terminal device in this embodiment may be a portable mobile terminal such as a mobile phone and a tablet computer.
It should be noted that, before S101, when the electric quantity of the terminal device is greater than or equal to the preset threshold, the terminal device may first send the historical card usage information to the server, so that the server generates at least one card packet information corresponding to the terminal device according to the historical card usage information.
Specifically, when the power of the HOST (i.e., HOST) is greater than or equal to the preset threshold, that is, when the HOST is online, the latest historical card usage information in the terminal device can be synchronously uploaded to the CLFs of the server and the NFC device for backup, that is, the HOST synchronizes the information applied by the card (i.e., the latest historical card usage information) from the SE to the CLFs of the server and the NFC device for backup in the power-on state. The server can synchronously backup the latest historical card use information, and determine at least one card packet information corresponding to the terminal equipment by performing cloud computing on the latest historical card use information; therefore, the server can determine the card packet information corresponding to the HOST of the terminal equipment according to the card packet information acquisition instruction and return the card packet information to the HOST of the terminal equipment, namely, a card packet list which is most suitable for the user at present is pushed to the HOST of the user, and the HOST end can select whether to use the card packet list. That is, the HOST senses that the power of the HOST reaches the critical value of the power to be shut down and communicates with the server, and the server pushes a card packet list (namely card packet information) which is most suitable for being used by a user at present to the HOST; and the HOST sends the card packet information to the CLF and activates the preferred application, namely, the HOST can send the card packet information to the CLF in the starting state, and the CLF synchronously updates the card packet information to a persistent memory and a non-persistent memory of the CLF.
The historical card use information comprises the use position, the use times, the card type and the use time corresponding to the card. The use position can be understood as the environment position condition when in use, and can be one of a scene environment, a geographic position environment and a network environment or a combination of two or more. The number of times of use is the number of times of use corresponding to a specific use position. The card type can be understood as the type of use of the card, such as at least one type of bank card, transportation card, entrance guard card, membership card, and electronic key, specifically, the bank card here can be an industrial and commercial bank, a construction bank, a chinese bank, etc.; the traffic card can be a subway card, a bus card and the like; the access card can be a company access card, a household access card and the like; the membership card can be a hotel membership card, a market membership card, a hairdressing membership card and the like; the electronic key may be a resistive electronic key, a coded electronic key, or the like. The time of use may be understood as the time when the card is used.
Specifically, the use position in the embodiment of the invention can be scenes such as a home, a bus station, a subway station, a supermarket, a hairdressing shop and the like, and can also be cities such as new york, beijing, shanghai, west ampere, chengdu and the like; or areas such as the sunny, the hai-lake and the western regions. The service time can be the time of punching a card in the morning on work, the time of returning home to open the door at night and the like.
The server may generate at least one card package information corresponding to the terminal device according to the historical card usage information, that is, the server may calculate a card most suitable for the user to use according to a usage position, usage times, a card type, and usage time of the card in the historical card usage information (for example, a card with usage times meeting a preset time threshold is screened out in combination with a current position and current time of the terminal device), so as to generate the card package information, and push the card package information to the HOST, which may select whether to use the card package information by itself or may add other card applications based on the card package information and synchronize application data of the SE. For example, the server may set and generate at least one card packet information corresponding to the terminal device according to a usage habit (i.e., historical card usage information) of the user, where the usage habit may be according to a usage frequency, such as that the user is at home in the last holiday, and a probability that the user may use a home access card is high; or according to the habit of the user, for example, the traffic card is used eight times in the morning, the bank card is used nine times in the morning, and the company access control card is used half a time in the nine times in the morning; the traffic card is used six times at night, and the home entrance guard card is used half or six times at night. The card package information comprises a plurality of cards and card parameter information corresponding to each card.
For example, the history card usage information is: eight morning hours use the traffic card at a subway station, nine morning hours use the bank card at a supermarket, nine morning hours use the company access control card at a building, six night hours use the traffic card at a bus station, and six night hours use the home access control card at a house door of a cell; the server may generate at least one card packet information corresponding to the terminal device according to the historical card usage information, including: traffic card, entrance guard card, traffic card, entrance guard card and card parameter information corresponding to each card
The card parameter information may be understood as non-connection parameter information of the card, and may specifically include a radio frequency parameter (i.e., an RF parameter), a User Identification (UID), a Request To response instruction (ATQ), a Select Acknowledge instruction (SAK), a Select To response instruction (ATS), an authentication instruction (AUTH), and an Application Identifier (AID).
S102: and the NFC device switches the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
In this embodiment, the default card that is preset and matched with the NFC apparatus currently is set by the user actively, or the card that is currently used by the NFC apparatus when the host is powered off.
In particular, HOST may configure the CLF in the NFC device to perform card switching and card swiping without a HOST (e.g., HOST shutdown). After HOST is powered off, if the CLF starts to enter, the CLF may switch the current default card of the NFC device according to the card parameter information of the current default card of the NFC device and the card packet information until the current default card of the NFC device is read by the target near field communication card reader.
As an example, the CLF in the NFC apparatus may first acquire a transmission Protocol type between the terminal device and the target NFC card reader, for example, the transmission Protocol type may be a duplex block transmission Protocol (ISO-DEP Protocol).
Then, the CLF in the NFC device may determine a matching result between the current default card of the NFC device and the target near field communication card reader according to the transmission protocol type between the NFC device and the target near field communication card reader and the card parameter information of the current default card of the NFC device, that is, the CLF may discriminate a card that the current card reader wants to swipe according to the transmission protocol type and the card parameter information such as the AUTH instruction of the current default card during the first card swipe.
Specifically, if the request response instruction, the selection confirmation instruction, and the selection response instruction of the current default card used by the NFC device conform to the transmission protocol type between the NFC device and the target near field communication card reader, that is, the request response instruction, the selection confirmation instruction, and the selection response instruction of the current default card used belong to the instruction used under the transmission protocol type; the authentication instruction and the application identification of the current default card of the NFC device pass the verification of the target near field communication card reader, namely the authentication instruction and the application identification of the current default card of the NFC device are verified by the target near field communication card reader and pass the verification; the matching result of the current default card of the NFC device and the target near field communication card reader is matching.
And if the request response instruction, the selection confirmation instruction and the selection response instruction of the current default use card of the NFC device do not conform to the transmission protocol type between the NFC device and the target near field communication card reader, or the authentication instruction and the application identification of the current default use card of the NFC device do not pass the verification of the target near field communication card reader, the matching result of the current default use card of the NFC device and the target near field communication card reader is unmatched.
And then, if the matching result is matching, reading the current default use card of the NFC device by a target near field communication card reader.
And if the matching result is not matched, the NFC device switches the current default use card of the NFC device according to the card packet information until the current default use card of the NFC device is read by a target near field communication card reader. That is, the CLF selects the card with the highest probability from the card package for the second time and later to perform card cutting and swiping.
Specifically, for a card in the card packet information, the NFC device uses the card as a current default card of the NFC device, and determines a reading result corresponding to the card (i.e., a result of whether a target near field communication card reader successfully reads the card) according to a radio frequency parameter corresponding to the card; if the reading result does not meet the preset condition (namely the target near field communication card reader fails to read the card), the NFC device switches the current default used card of the NFC device to the next card of the card, the NFC device continues to execute the step of aiming at one card in the card packet information, the card is used as the current default used card of the NFC device by the NFC device, and the step of determining the reading result corresponding to the card according to the radio frequency parameter corresponding to the card is carried out until the reading result meets the preset condition (namely the target near field communication card reader successfully reads the card).
That is, the CLF only performs matching card swiping according to the information reported by the current card swiping and the current non-contact parameter (i.e. card packet information) without considering the card swiping result each time. And the CLF judges whether the next round of card swiping is to switch the currently used radio frequency parameters or to switch the card according to the radio frequency parameters of the card under the condition without HOST, so that the reading result corresponding to the card can be determined according to the radio frequency parameters corresponding to the card. It can be understood that a card may be provided with at least one radio frequency parameter, and each radio frequency parameter corresponding to the card may be respectively adopted to swipe the card (i.e., swipe a target entrance communication card reader), so that a reading result corresponding to the card may be determined; if the card fails to be swiped under any corresponding radio frequency parameter, card switching can be carried out, each radio frequency parameter corresponding to the card is continuously adopted for the next card, and the step of swiping the card is carried out on the next card until all cards in the card package information are polled. For example, if the current default card is an access POS, the CLF needs to switch according to the RF parameters (radio frequency parameters) in the card package, and the CLF needs to poll the parameters of the card package to be swiped. Like this, under no HOST circumstances, CLF in the NFC device alright carry out the card switching according to the radio frequency parameter of the card in the card package information to realize under terminal equipment power off state, the NFC device in the terminal equipment also can carry out the card switching, thereby has saved the time that the user switches acquiescence use the card, has improved user experience.
It can be seen from the foregoing technical solutions that, the method provided by the present application is applied to a terminal device, where the terminal device includes an NFC apparatus, and the method includes: if the electric quantity of the terminal equipment is lower than a preset threshold value, sending a card packet information acquisition instruction to a server so as to acquire card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card; and the NFC device switches the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader. Therefore, according to the method provided by the application, when the electric quantity of the terminal equipment is lower than the preset threshold value, the card package information of the terminal equipment is obtained, so that the NFC device can utilize a plurality of cards and card parameter information corresponding to each card in the card package information to switch the current default use card of the NFC device until the current default use card of the NFC device is read by the target near field communication card reader, and therefore the NFC device in the terminal equipment can also switch the cards in the shutdown state of the terminal equipment, time for switching the default use card by a user is saved, and user experience is improved.
Fig. 2 is a schematic diagram of a card switching device based on near field communication according to an embodiment of the present disclosure. The apparatus of this embodiment is a physical apparatus for executing the method of the above embodiment. The technical solution is substantially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to the present embodiment. The device is applied to a terminal security agent in a virtual machine system, and in this embodiment, the device is applied to a terminal device, where the terminal device includes an NFC device, and the device includes:
a requesting unit 201, configured to send a card package information obtaining instruction to a server if the electric quantity of the terminal device is lower than a preset threshold, so as to obtain card package information determined by the server according to the card package information obtaining instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card;
a switching unit 202, configured to switch, by the NFC device, the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
Optionally, the apparatus further includes a sending unit, configured to:
and sending historical card use information to the server when the electric quantity of the terminal equipment is larger than or equal to the preset threshold value, so that the server can generate at least one card packet information corresponding to the terminal equipment according to the historical card use information.
Optionally, the historical card usage information includes a usage position, a usage number, a usage time, and a card type corresponding to the card.
Optionally, the card parameter information includes a radio frequency parameter, a user identification identifier, a request response instruction, a selection confirmation instruction, a selection response instruction, an authentication instruction, and an application identifier.
Optionally, the switching unit 202 is configured to:
the NFC device acquires the type of a transmission protocol between the terminal equipment and the target near field communication card reader;
the NFC device determines a matching result of a current default use card of the NFC device and the target near field communication card reader according to a transmission protocol type between the NFC device and the target near field communication card reader and card parameter information of the current default use card of the NFC device;
if the matching result is matching, reading a current default use card of the NFC device by a target near field communication card reader;
and if the matching result is not matched, the NFC device switches the current default use card of the NFC device according to the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
Optionally, the switching unit 202 is configured to:
if the request response instruction, the selection confirmation instruction and the selection response instruction of the current default use card of the NFC device conform to the transmission protocol type between the NFC device and the target near field communication card reader, and the authentication instruction and the application identification of the current default use card of the NFC device pass the verification of the target near field communication card reader, the matching result of the current default use card of the NFC device and the target near field communication card reader is matched;
and if the request response instruction, the selection confirmation instruction and the selection response instruction of the current default use card of the NFC device do not conform to the transmission protocol type between the NFC device and the target near field communication card reader, or the authentication instruction and the application identification of the current default use card of the NFC device do not pass the verification of the target near field communication card reader, the matching result of the current default use card of the NFC device and the target near field communication card reader is unmatched.
Optionally, the switching unit 202 is configured to:
for a card in the card packet information, the NFC device takes the card as a current default card of the NFC device, and determines a reading result corresponding to the card according to a radio frequency parameter corresponding to the card;
if the reading result does not meet the preset condition, the NFC device switches the current default used card of the NFC device to the next card of the card, the NFC device continues to execute the step of taking the card as the current default used card of the NFC device aiming at one card in the card package information, and the reading result corresponding to the card is determined according to the radio frequency parameters corresponding to the card until the reading result meets the preset condition.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. On the hardware level, the electronic device comprises a processor, and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory into the memory and then runs the corresponding execution instruction, and can also obtain the corresponding execution instruction from other equipment so as to form the near field communication-based card switching device on a logic level. The processor executes the execution instructions stored in the memory, so that the card switching method based on near field communication provided by any embodiment of the application is realized through the executed execution instructions.
The method executed by the near field communication-based card switching device according to the embodiment shown in fig. 1 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The embodiment of the present application further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can execute the card switching method based on near field communication provided in any embodiment of the present application, and is specifically configured to execute the above card switching method based on near field communication.
The electronic device described in the foregoing embodiments may be a computer.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (10)

1. A card switching method based on near field communication is applied to terminal equipment, the terminal equipment comprises an NFC device, and the method comprises the following steps:
if the electric quantity of the terminal equipment is lower than a preset threshold value, sending a card packet information acquisition instruction to a server so as to acquire card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card;
and the NFC device switches the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
2. The method according to claim 1, wherein before the step of sending a card package information obtaining instruction to a server if the power of the terminal device is lower than a preset threshold, so as to obtain the card package information determined by the server according to the card package information obtaining instruction, the method further comprises:
and sending historical card use information to the server when the electric quantity of the terminal equipment is larger than or equal to the preset threshold value, so that the server can generate at least one card packet information corresponding to the terminal equipment according to the historical card use information.
3. The method of claim 2, wherein the historical card usage information includes a corresponding usage location, usage times, usage time, and card type of the card.
4. The method according to claim 1, wherein the card parameter information comprises radio frequency parameters, user identification, request response instructions, selection confirmation instructions, selection response instructions, authentication instructions, and application identification.
5. The method of claim 4, wherein the switching, by the NFC device, the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card package information until the current default use card of the NFC device is read by a target near field communication card reader comprises:
the NFC device acquires the type of a transmission protocol between the terminal equipment and the target near field communication card reader;
the NFC device determines a matching result of a current default use card of the NFC device and the target near field communication card reader according to a transmission protocol type between the NFC device and the target near field communication card reader and card parameter information of the current default use card of the NFC device;
if the matching result is matching, reading a current default use card of the NFC device by a target near field communication card reader;
and if the matching result is not matched, the NFC device switches the current default use card of the NFC device according to the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
6. The method of claim 5, wherein the NFC device determining a matching result of the current default use card of the NFC device and the target near field communication reader according to a transmission protocol type between the NFC device and the target near field communication reader and card parameter information of the current default use card of the NFC device comprises:
if the request response instruction, the selection confirmation instruction and the selection response instruction of the current default use card of the NFC device conform to the transmission protocol type between the NFC device and the target near field communication card reader, and the authentication instruction and the application identification of the current default use card of the NFC device pass the verification of the target near field communication card reader, the matching result of the current default use card of the NFC device and the target near field communication card reader is matched;
and if the request response instruction, the selection confirmation instruction and the selection response instruction of the current default use card of the NFC device do not conform to the transmission protocol type between the NFC device and the target near field communication card reader, or the authentication instruction and the application identification of the current default use card of the NFC device do not pass the verification of the target near field communication card reader, the matching result of the current default use card of the NFC device and the target near field communication card reader is unmatched.
7. The method of claim 5, wherein switching, by the NFC device, the current default use card of the NFC device according to the card package information until the current default use card of the NFC device is read by a target near field communication card reader comprises:
for a card in the card packet information, the NFC device takes the card as a current default card of the NFC device, and determines a reading result corresponding to the card according to a radio frequency parameter corresponding to the card;
if the reading result does not meet the preset condition, the NFC device switches the current default used card of the NFC device to the next card of the card, the NFC device continues to execute the step of taking the card as the current default used card of the NFC device aiming at one card in the card package information, and the reading result corresponding to the card is determined according to the radio frequency parameters corresponding to the card until the reading result meets the preset condition.
8. The utility model provides a card auto-change over device based on near field communication, its characterized in that, the device is applied to terminal equipment, including the NFC device in the terminal equipment, the device includes:
the request unit is used for sending a card packet information acquisition instruction to a server if the electric quantity of the terminal equipment is lower than a preset threshold value so as to acquire the card packet information determined by the server according to the card packet information acquisition instruction; the card package information comprises a plurality of cards and card parameter information corresponding to each card;
and the switching unit is used for switching the current default use card of the NFC device according to the card parameter information of the current default use card of the NFC device and the card packet information until the current default use card of the NFC device is read by a target near field communication card reader.
9. A readable medium comprising executable instructions that, when executed by a processor of an electronic device, cause the electronic device to perform the method of any one of claims 1-7.
10. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any one of claims 1-7 when the processor executes the execution instructions stored by the memory.
CN202211638253.2A 2022-12-20 2022-12-20 Card switching method and device based on near field communication Active CN115618899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211638253.2A CN115618899B (en) 2022-12-20 2022-12-20 Card switching method and device based on near field communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211638253.2A CN115618899B (en) 2022-12-20 2022-12-20 Card switching method and device based on near field communication

Publications (2)

Publication Number Publication Date
CN115618899A true CN115618899A (en) 2023-01-17
CN115618899B CN115618899B (en) 2023-04-18

Family

ID=84880911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211638253.2A Active CN115618899B (en) 2022-12-20 2022-12-20 Card switching method and device based on near field communication

Country Status (1)

Country Link
CN (1) CN115618899B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841604A (en) * 2010-06-02 2010-09-22 中兴通讯股份有限公司 Method and device for automatically displaying near field communication transaction information on mobile terminal
CN102195994A (en) * 2010-03-05 2011-09-21 中国移动通信集团公司 File delivery method and file receiving terminal based on unidirectional file delivery protocol
CN102956081A (en) * 2012-10-19 2013-03-06 深圳桑菲消费通信有限公司 NFC (Near Field Communication) mobile payment terminal
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment
CN113343732A (en) * 2021-06-30 2021-09-03 Oppo广东移动通信有限公司 Method, device, terminal, card reader and system for determining near field communication card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195994A (en) * 2010-03-05 2011-09-21 中国移动通信集团公司 File delivery method and file receiving terminal based on unidirectional file delivery protocol
CN101841604A (en) * 2010-06-02 2010-09-22 中兴通讯股份有限公司 Method and device for automatically displaying near field communication transaction information on mobile terminal
WO2011150611A1 (en) * 2010-06-02 2011-12-08 中兴通讯股份有限公司 Method and apparatus for automatically displaying near field communication transaction information on mobile terminal
CN102956081A (en) * 2012-10-19 2013-03-06 深圳桑菲消费通信有限公司 NFC (Near Field Communication) mobile payment terminal
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment
CN113343732A (en) * 2021-06-30 2021-09-03 Oppo广东移动通信有限公司 Method, device, terminal, card reader and system for determining near field communication card

Also Published As

Publication number Publication date
CN115618899B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN111241856B (en) Method for selecting NFC analog card and watch
JP5758120B2 (en) Method for processing application commands from physical channels using portable electronic devices and corresponding devices and systems
US9031503B2 (en) Wireless data communications
US11068676B2 (en) Service processing method, device and apparatus
CN109257071B (en) Equipment control method, device and equipment
EP3236636B1 (en) Information push method and device
CN110267314B (en) Method and device for switching network slices
CN102802156B (en) A kind of method for authenticating and relevant device
WO2016138009A1 (en) Methods, apparatus, and systems for identity authentication
CN104616142B (en) Data transfer method, server, mobile terminal and system
CN107484215B (en) Method for recommending access base station based on antenna received signal strength and mobile terminal
CN108173725A (en) Apparatus control method, device, terminal and computer readable storage medium
CN110610347A (en) Park visitor message notification method and device, computer equipment and storage medium
CN102833074A (en) Authentication method and related equipment
CN110557742A (en) Default binding card switching method, device, equipment and storage medium for near field communication
CN104991919A (en) Information pushing method and apparatus for intelligent mobile terminal
US20200187095A1 (en) Wi-fi hotspot sharing method for terminal, and terminal
CN103268262A (en) Method for multiple basebands to access single-user identification card, and processor
CN115618899B (en) Card switching method and device based on near field communication
CN114223222A (en) Terminal payment method and device, terminal equipment and computer readable storage medium
CN102857624B (en) Notification method, notification device and source electronic equipment
CN107633583B (en) Access control system and method supporting IOS equipment
CN113691609A (en) Data acquisition method and device, electronic equipment and storage medium
CN115668989B (en) Scene recognition method and electronic equipment
CN113395741B (en) Network distribution system, method and device of equipment, electronic equipment and storage medium

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