CN115001540B - Card simulation method, NFC chip and electronic equipment - Google Patents

Card simulation method, NFC chip and electronic equipment Download PDF

Info

Publication number
CN115001540B
CN115001540B CN202210557712.8A CN202210557712A CN115001540B CN 115001540 B CN115001540 B CN 115001540B CN 202210557712 A CN202210557712 A CN 202210557712A CN 115001540 B CN115001540 B CN 115001540B
Authority
CN
China
Prior art keywords
hardware
parameter
hardware characteristic
nfc chip
nfc
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
CN202210557712.8A
Other languages
Chinese (zh)
Other versions
CN115001540A (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.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology 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 Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Priority to CN202210557712.8A priority Critical patent/CN115001540B/en
Publication of CN115001540A publication Critical patent/CN115001540A/en
Priority to PCT/CN2022/131950 priority patent/WO2023221429A1/en
Application granted granted Critical
Publication of CN115001540B publication Critical patent/CN115001540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • 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/10118Methods 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 sensing being preceded by at least one preliminary step
    • 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/10297Methods 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 arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092

Landscapes

  • Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a card simulation method, an NFC chip and electronic equipment, and relates to the NFC field, wherein the method comprises the following steps: selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter; if the NFC chip is failed to communicate with the second electronic device after the first hardware characteristic parameter is configured, the first hardware characteristic parameter is switched to the second hardware characteristic parameter, and the NFC chip is communicated with the second electronic device again according to the second hardware characteristic parameter. The method provided by the embodiment of the application is beneficial to the NFC equipment working in the CE mode to be compatible with different card reading equipment, so that the stability and compatibility of the NFC equipment working in the CE mode can be improved.

Description

Card simulation method, NFC chip and electronic equipment
Technical Field
The embodiment of the application relates to the field of NFC, in particular to a card simulation method, an NFC chip and electronic equipment.
Background
Near field communication (Near Field Communication, NFC) has been used in great numbers in people's lives as a communication technology. The working modes of the NFC device mainly include two modes, namely a Card Emulation (CE) mode and a Card Reader/Writer (RW) mode. It can be understood that the NFC device is an electronic device with an NFC chip, and when the NFC device is in the CE mode, the NFC device in the CE mode has a card simulation function, and at this time, the NFC device in the CE mode may be simulated as an NFC chip card, for example, an access card, a traffic card, a bank card, or the like, for reading and writing by the card reading device. When the NFC device is in RW mode, the NFC device in RW mode may actively transmit a radio frequency signal to identify and read/write other NFC devices in CE mode, and at this time, the NFC device in RW mode may be considered as an NFC reader, such as a POS device, an access control device, a gate device, etc.
Different NFC devices operating in CE mode may configure different chip card hardware feature parameters (Hardware Feature Parameter) that affect the success rate of NFC instruction interaction. Typically, an NFC device operating in CE mode will be preconfigured with a chip card hardware feature. Therefore, it is difficult for the NFC device operating in the CE mode to be compatible with different card reading devices, where the card reading device may include the NFC device operating in the RW mode as described above, and may also include a common radio frequency identification (Radio Frequency Identification, RFID) device, so that a communication failure between the NFC device operating in the CE mode and the card reading device may occur, for example, an access control is not opened, and a POS payment is failed.
Disclosure of Invention
The embodiment of the application provides a card simulation method, an NFC chip and electronic equipment, which are beneficial to the NFC equipment working in a CE mode to be compatible with different card reading equipment, so that the stability and the compatibility of the NFC equipment working in the CE mode can be improved.
In a first aspect, an embodiment of the present application provides a card simulation method, applied to a first electronic device, where the first electronic device has an NFC chip, the NFC chip works in a CE mode, and the first electronic device presets a plurality of sets of hardware feature parameters, including:
Selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter;
if the NFC chip is failed to communicate with the second electronic device after the first hardware characteristic parameter is configured, the first hardware characteristic parameter is switched to the second hardware characteristic parameter, and the NFC chip is communicated with the second electronic device again according to the second hardware characteristic parameter.
In the embodiment of the application, the hardware characteristic parameters are switched and communicated again after the communication between the NFC equipment working in the CE mode and the card reading equipment fails by presetting the hardware characteristic parameters in the NFC equipment working in the CE mode, so that the NFC equipment working in the CE mode can be facilitated to be compatible with different card reading equipment, and the stability and the compatibility of the NFC equipment working in the CE mode can be improved.
In one possible implementation manner, each set of hardware characteristic parameters in the plurality of sets of hardware characteristic parameters has a mapping relationship with a combination of NFC mode, NFC technology and bit rate.
In the embodiment of the application, by mapping different hardware characteristic parameters with the combination of the NFC mode, the NFC technology and the bit rate, the first electronic device can quickly select the hardware characteristic parameters according to the combination of the NFC mode, the NFC technology and the bit rate, so that the communication efficiency can be improved.
In one possible implementation manner, the NFC technology and/or bit rate corresponding to the first hardware feature parameter and the second hardware feature parameter are different.
The embodiment of the application can realize the switching between hardware characteristic parameters corresponding to different NFC technologies and/or bit rates.
In one possible implementation manner, the NFC technology and bit rate corresponding to the first hardware feature parameter and the second hardware feature parameter are the same, and the parameter values are different.
The embodiment of the application can realize switching in hardware characteristic parameters corresponding to the same NFC technology and the same bit rate.
In one possible implementation, the first hardware characteristic parameter is determined by compatibility and/or coverage.
In the embodiment of the application, the first hardware characteristic parameter is selected through compatibility and/or coverage rate, and the hardware characteristic parameter with higher compatibility and/or coverage rate for the card reading equipment is preferentially selected, so that the success rate of communication can be improved.
In one possible implementation manner, if communication with the second electronic device fails after the NFC chip configures the first hardware feature parameter, switching the first hardware feature parameter to the second hardware feature parameter includes:
and after the timer is overtime, if the NFC chip is failed to communicate with the second electronic equipment after the first hardware characteristic parameter is configured, the first hardware characteristic parameter is switched to the second hardware characteristic parameter, and the timer is started under the condition that the second electronic equipment exists outside.
In the embodiment of the application, the switching of the hardware characteristic parameters is triggered by the timer, so that long-time waiting after communication failure can be avoided, and the sleep can be entered as soon as possible, so that the power consumption is saved.
In one possible implementation manner, if communication with the second electronic device fails after the NFC chip configures the first hardware feature parameter, switching the first hardware feature parameter to the second hardware feature parameter includes:
the first hardware feature parameter is switched to the second hardware feature parameter in response to a detected rapid decrease in the external electromagnetic field.
In the embodiment of the application, the switching of the hardware characteristic parameters is triggered by detecting the intensity of the external electromagnetic field, so that the communication can be initiated again as soon as possible after the communication failure, and the communication efficiency can be improved.
In one possible implementation manner, before the first hardware feature parameter is switched to the second hardware feature parameter, the method further includes:
making the NFC chip enter sleep;
switching the first hardware feature parameter to the second hardware feature parameter includes:
and after the dormancy is finished, waking up the NFC chip, and switching the first hardware characteristic parameter into the second hardware characteristic parameter.
In the embodiment of the application, the NFC chip is in the dormant state before the hardware characteristic parameters are switched, so that the power consumption of the whole NFC system can be reduced.
In a second aspect, an embodiment of the present application further provides a card simulation method, applied to a first electronic device, where the first electronic device has an NFC chip, the NFC chip works in a CE mode, and the first electronic device presets a plurality of sets of hardware feature parameters, including:
selecting a set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as first hardware characteristic parameters, and carrying out hardware detection on an external electromagnetic field by using the first hardware characteristic parameters;
if the first hardware characteristic parameter is matched with the external electromagnetic field, configuring the NFC chip as the first hardware characteristic parameter so that the first electronic device communicates with the second electronic device based on the first hardware characteristic parameter;
if the first hardware characteristic parameter is not matched with the external electromagnetic field, switching the first hardware characteristic parameter into a second hardware characteristic parameter, and carrying out hardware detection on the external electromagnetic field again by using the second hardware characteristic parameter.
In the embodiment of the application, the hardware characteristic parameters are used for adapting in one TD through the hardware detection means, and the software configuration is carried out according to the adapted hardware characteristic parameters after the adaptation, so that the efficiency reduction caused by the multiple configurations of the hardware characteristic parameters due to the switching of the hardware characteristic parameters in a plurality of TD during the software operation can be avoided, and the communication efficiency can be improved.
In a third aspect, an embodiment of the present application provides an NFC chip, including: the card simulation method comprises a selection module and a communication module, wherein the selection module and the communication module are used for executing any one of the card simulation methods provided in the first aspect.
In a fourth aspect, an embodiment of the present application further provides an NFC chip, including: the card simulation method according to the second aspect includes a detection module, a communication module, and a switching module for executing any one of the card simulation methods according to the second aspect.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory for storing a computer program; the processor is configured to execute a computer program for performing the card simulation method as described in the first and second aspects.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to implement the card simulation method according to the first and second aspects.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of a card simulation method provided by the present application;
fig. 2 is a schematic diagram of a TD according to an embodiment of the present application;
Fig. 3 is a schematic diagram of switching hardware feature parameters between TDs according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of another embodiment of a card simulation method according to the present application;
fig. 5a to 5c are schematic diagrams of TD under a hardware detection scenario provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an embodiment of an NFC chip provided by the present application;
fig. 7 is a schematic structural diagram of another embodiment of an NFC chip provided by the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In the embodiment of the present application, unless otherwise specified, the character "/" indicates that the associated object is one or the relationship. For example, A/B may represent A or B. "and/or" describes an association relationship of an association object, meaning that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone.
It should be noted that the terms "first," "second," and the like in the embodiments of the present application are used for distinguishing between description and not necessarily for indicating or implying a relative importance or number of features or characteristics in order.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. Furthermore, "at least one item(s)" below, or the like, refers to any combination of these items, and may include any combination of single item(s) or plural items(s). For example, at least one (one) of A, B or C may represent: a, B, C, a and B, a and C, B and C, or A, B and C. Wherein each of A, B, C may itself be an element or a collection comprising one or more elements.
In embodiments of the application, "exemplary," "in some embodiments," "in another embodiment," etc. are used to indicate an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term use of an example is intended to present concepts in a concrete fashion.
"of", "corresponding" and "corresponding" in the embodiments of the present application may be sometimes used in combination, and it should be noted that the meaning to be expressed is consistent when the distinction is not emphasized. In the embodiments of the present application, communications and transmissions may sometimes be mixed, and it should be noted that, when the distinction is not emphasized, the meaning expressed is consistent. For example, a transmission may include sending and/or receiving, either nouns or verbs.
The equal to that related in the embodiment of the application can be used together with the greater than the adopted technical scheme, can also be used together with the lesser than the adopted technical scheme. It should be noted that when the number is equal to or greater than the sum, the number cannot be smaller than the sum; when the value is equal to or smaller than that used together, the value is not larger than that used together.
Currently, an NFC device operating in CE mode has an NFC chip with a card emulation function, for example, the NFC device operating in CE mode may be emulated as a card, and the NFC chip may be configured with different hardware feature parameters for communicating with a card reader device. The hardware feature parameters may correspond to different NFC technologies, for example, NFC technologies such as A, B, F and V, and therefore, the hardware feature parameters may generally include: the CEA hardware feature parameter, the CEB hardware feature parameter, the CEF hardware feature parameter and the CEV hardware feature parameter, that is, the NFC device working in the CE mode can be pre-configured with any one of the CEA hardware feature parameter, the CEB hardware feature parameter, the CEF hardware feature parameter and the CEV hardware feature parameter to perform card simulation. The card reading device may also be configured with hardware feature parameters in advance, where the hardware feature parameters in the card reading device may include: RWA hardware feature parameters, RWB hardware feature parameters, RWF hardware feature parameters, RWV hardware feature parameters, and the like. The card reading device can search the card according to the preset hardware characteristic parameters. It can be appreciated that the hardware characteristic parameters affect the success rate of NFC instruction interaction. When the hardware characteristic parameters of the NFC equipment working in the CE mode are matched with the hardware characteristic parameters of the card reading equipment, the communication between the NFC equipment working in the CE mode and the card reading equipment can be completed well.
However, in the practical application process, since different NFC devices operating in the CE mode may be preconfigured with hardware feature parameters of different NFC technologies, for a certain NFC device operating in the CE mode, the NFC device operating in the CE mode and the certain card reading device configured with the hardware feature parameters of the certain NFC technology may better complete communication, and another card reading device may preconfigured with different hardware feature parameters, so that communication failure with another card reading device may occur, and thus it is difficult for the different NFC devices operating in the CE mode to be compatible with the different card reading devices.
For example, if the NFC device operating in CE mode configures one of the CEA hardware feature parameters, the card reader device configures one of the RWA hardware feature parameters. Although the technology adopted by the NFC device operating in the CE mode is the same as that adopted by the card reader, the parameter value selected in the CEA hardware feature parameter is not adapted to the parameter value selected in the RWA hardware feature parameter, and at this time, communication failure occurs, that is, the current NFC device operating in the CE mode cannot be compatible with the current card reader.
Based on the above problems, the embodiment of the application provides a card simulation method applied to electronic equipment, wherein the electronic equipment can be a terminal with an NFC card simulation function, such as a mobile phone, a tablet computer, a wearable device and the like; the form of the electronic device is not particularly limited in the embodiment of the application. The method provided by the embodiment of the application can help the NFC equipment working in the CE mode to be compatible with different card reading equipment, thereby improving the stability and compatibility of the NFC equipment working in the CE mode.
A card simulation method provided by an embodiment of the present application will now be described with reference to fig. 1.
Fig. 1 is a schematic flow chart of an embodiment of a card simulation method provided by the present application, where the card simulation method is applied to a first electronic device, the first electronic device has an NFC chip, the NFC chip works in a CE mode, and the first electronic device presets a plurality of sets of hardware feature parameters, and specifically includes the following steps:
step 101, selecting one set of hardware characteristic parameters from a plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter.
Specifically, a plurality of sets of hardware feature parameters may be stored in the first electronic device in advance, and the hardware feature parameters may be used to configure the NFC chip, so that the NFC chip communicates with the second electronic device based on the configured hardware feature parameters. The second electronic device is a card reading device, and the second electronic device may be an NFC device working in a RW mode or a common RFID device. The plurality of sets of hardware characteristic parameters can be stored in the NFC chip in advance, can be stored in a memory or other hardware circuits of the first electronic device, and can be stored in a server, so that a user can remotely update the hardware characteristic parameters preset in the first electronic device. The embodiment of the application does not limit the storage mode of the plurality of sets of hardware characteristic parameters in particular.
It may be appreciated that when the plurality of sets of hardware feature parameters are stored in the first electronic device, the storage space of the first electronic device may also be detected, if the storage space of the first electronic device is sufficient to store the plurality of sets of hardware feature parameters, the plurality of sets of hardware feature parameters may be directly stored in the first electronic device, and if the storage space of the first electronic device is insufficient to store the plurality of sets of hardware feature parameters, the user may be prompted to release a portion of the storage space in the first electronic device so as to store the plurality of sets of hardware feature parameters.
Each set of hardware characteristic parameters can form a mapping relation with the combination of the NFC mode, the NFC technology and the bit rate in advance. Each set of hardware characteristic parameters may include M parameters, M being a positive integer greater than or equal to 1. The NFC mode is used to characterize an operation mode of the NFC chip, and exemplary NFC modes may include two modes, namely CE and RW; NFC technology is used to characterize the technology employed by NFC chips, where NFC technology may include A, B, F and V; the bit rate is used to characterize the data rate of the NFC chip. Taking NFC technology as A, B and F as an example, table 1 exemplarily shows the composition form of hardware characteristic parameters. It will be appreciated that the above examples only illustrate NFC technologies such as A, B and F, but do not limit embodiments of the present application, and in some embodiments, further NFC technologies may be included, for example: v is provided.
TABLE 1
As shown in table 1, 12 sets of hardware feature parameters may be included, including 5 sets of CE-a hardware feature parameters, 5 sets of CE-B hardware feature parameters, and 2 sets of CE-F hardware feature parameters. It can be understood that the 12 sets of hardware feature parameters are hardware feature parameters to be selected, and after a user selects a plurality of sets of hardware feature parameters from the 12 sets of hardware feature parameters, the plurality of sets of hardware feature parameters selected by the user can be stored in the first electronic device in advance. The 12 sets of hardware characterization parameters described above are exemplary only and are not limiting on embodiments of the application, and in some embodiments, more or fewer hardware-specific parameters may be included.
Referring to table 1, "ON" is used to characterize the parameter as available, at this time, the user may preset a corresponding parameter value for the parameter, and "OFF" is used to characterize the parameter as disabled, at this time, the user may not preset a corresponding parameter value for the parameter. The parameter values can be checked when the user sets the parameter values through the flag bits such as ON, OFF and the like, so that the integrity of the hardware characteristic parameters can be checked, and certain parameters in the hardware characteristic parameters are prevented from being null values. In addition, when the user sets the parameter value, the parameter value can be checked for the value range, for example, the value range of any parameter is preset, if the parameter value of any parameter exceeds the preset range, the error can be reported, so that the correctness of the parameter value can be checked, and the setting error of the parameter value caused by human negligence can be avoided.
Through the combination of different NFC modes, NFC technologies and bit rates and the mapping of hardware characteristic parameters, a plurality of sets of different hardware characteristic parameters can be obtained. Among other things, combinations of different NFC modes, NFC technologies and bit rates may include, for example: NFC technology is the same, bit rate is different; also for example: the bit rate is the same, and the NFC technology is different; as another example, the bit rate is different and the NFC technology is different; as another example, NFC technology is the same, bit rate is the same, and parameter values are different. It can be appreciated that in the above combination of NFC mode, NFC technology and bit rate, the NFC mode is the CE mode for the first electronic device.
Table 2 shows exemplary combinations of user-selected sets of hardware feature parameters.
TABLE 2
Referring to table 2, taking a CE-B hardware feature parameter with a bit rate of 106k and a CE-B hardware feature parameter with a bit rate of 212k as examples, NFC technologies between the CE-B hardware feature parameter with a bit rate of 106k and the CE-B hardware feature parameter with a bit rate of 212k are the same, and the bit rates are different; taking a CE-A hardware characteristic parameter with the bit rate of 106k and a CE-B hardware characteristic parameter with the bit rate of 106k as examples, the bit rates of the CE-A hardware characteristic parameter with the bit rate of 106k and the CE-B hardware characteristic parameter with the bit rate of 106k are the same, and NFC technologies are different; taking a CE-A hardware characteristic parameter with a bit rate of 106k and a CE-B hardware characteristic parameter with a bit rate of 212k as examples, the CE-A hardware characteristic parameter with the bit rate of 106k and the CE-B hardware characteristic parameter with the bit rate of 212k are different in bit rate, and the NFC technology is different; taking the CE-A hardware feature parameter with the bit rate of 106k of number 1 and the CE-A hardware feature parameter with the bit rate of 106k of number 2 as examples, the CE-A hardware feature parameter with the bit rate of 106k of number 1 The NFC technology is the same between CE-A hardware characteristic parameters with the bit rate of 106k, the bit rate is the same, and the parameter values are different. Wherein the parameter values may be different parameters, for example, the CE-a hardware feature parameter with the bit rate of 106k numbered 1 has parameter 1, and the CE-a hardware feature parameter with the bit rate of 106k numbered 2 does not have parameter 1; alternatively, the parameter values may be the same, but the same parameters correspond to different parameter values, e.g., parameter value a for parameter 2 in the CE-A hardware feature parameter with bit rate 106k numbered 1 12 And parameter 2 of CE-A hardware feature parameter with bit rate of 106k with parameter value a of number 2 22 Wherein a is 12 And a 22 Different.
It may be appreciated that after the NFC chip is powered up or reset, the NFC chip may be in an Idle state (Idle), which may correspond to an rfst_idle state in the NFC controller interface (NFC Controller Interface, NCI) specification, and a specific description of the rfst_idle state may refer to the NCI specification and will not be described herein. In the idle state, the NFC chip may be considered to be in sleep and not be in communication with the second electronic device, thereby reducing the power consumption of the entire NFC system in the first electronic device.
When the NFC chip is dormant, a DISCOVERY (Discover) state may be entered, which may correspond to the RFST Discover state in the NCI specification. The specific rfst_discover state may be described with reference to the NCI specification and will not be described in detail herein. In the discovery state, the first electronic device may select a set of hardware feature parameters from a plurality of sets of hardware feature parameters stored in advance as a first hardware feature parameter, and may use the first hardware feature parameter to communicate with the second electronic device.
It should be noted that the first hardware feature parameter may be an initially selected hardware feature parameter, that is, a first hardware feature parameter selected by the first electronic device, or a switched hardware feature parameter.
The first hardware characteristic parameters can be randomly selected from a plurality of sets of hardware characteristic parameters stored in the first electronic device in advance. Preferably, the specific selection manner of the first hardware characteristic parameter may be, for example: the first hardware characteristic parameter is determined based on compatibility and/or coverage. Wherein the compatibility is used to characterize the degree to which the NFC technology and the bit rate are compatible with the second electronic device on the market, and the coverage rate is used to characterize the coverage of the NFC technology and the bit rate to the second electronic device on the market. It can be understood that if the coverage rate is higher, it indicates that the NFC technology and the bit rate are covered by more second electronic devices, so that the hardware characteristic parameters corresponding to the NFC technology and the bit rate can be selected, thereby increasing the probability of successful communication. For example, taking table 2 as an example, assuming that the CE-a hardware feature parameter with the bit rate of 106k of the number 1 can cover 70% of the second electronic devices on the market, the CE-a hardware feature parameter with the bit rate of 106k of the number 2 can cover 30% of the second electronic devices on the market, and the coverage rate of the a technology is higher than that of other NFC technologies, the CE-a hardware feature parameter with the bit rate of 106k of the number 1 can be selected as the first hardware feature parameter. That is, the compatibility and/or coverage rate of the first hardware feature parameter is greater than or equal to the second hardware feature parameter after switching. The success rate of communication can be improved and the communication efficiency can be improved by preferentially selecting hardware characteristic parameters with higher compatibility and/or coverage rate for card reading equipment.
Step 102, if the NFC chip configures the initial hardware feature parameter and fails to communicate with the second electronic device, the first hardware feature parameter is switched to the second hardware feature parameter, and communication is performed again with the second electronic device according to the second hardware feature parameter.
Specifically, after the first hardware feature parameter is determined, the NFC chip may be configured based on the first hardware feature parameter, so that the first electronic device may communicate with the second electronic device based on the configured first hardware feature parameter. It may be appreciated that, if the communication is successful, the first electronic device and the second electronic device may perform service interaction based on the NFC manner, for example, swipe the gate, perform mobile payment, and so on.
If the communication fails, that is, the NFC chip cannot decode the data frame sent by the second electronic device using the first hardware feature parameter, the first electronic device may switch the first hardware feature parameter to the second hardware feature parameter, and may communicate with the second electronic device again according to the switched second hardware feature parameter.
In a specific implementation, the triggering manner of switching the hardware feature parameter may be, for example: after the timer is overtime, if the NFC chip fails to communicate with the second electronic device after configuring the first hardware feature parameter, the switching of the hardware feature parameter may be triggered, where the timer may be started under the condition that the second electronic device is detected to exist outside, and may be closed after the first electronic device and the second electronic device successfully communicate, and a specific manner of detecting that the second electronic device exists outside may be: if an external electromagnetic field is detected, it can be considered that the second electronic device is detected. It can be understood that if the timer does not timeout, the first electronic device and the second electronic device successfully communicate, the NFC chip may perform service interaction with the second electronic device and the second electronic device based on the configured first hardware feature parameter, without performing switching of the hardware feature parameter, and may enter sleep after the communication is completed.
Optionally, the triggering mode for switching the hardware characteristic parameters may also be: and detecting an external electromagnetic field, and switching hardware characteristic parameters according to a detection result. And when the rapid weakening of the external electromagnetic field is detected, switching the first hardware characteristic parameter into the second hardware characteristic parameter. For example, if the NFC chip configures the first hardware feature parameter and successfully communicates with the second electronic device, when the first electronic device is far away from the second electronic device, the switching of the hardware feature parameter may be triggered, and in this scenario, it may be considered that the false communication is successful, where the first electronic device may switch the hardware feature parameter and communicate with the second electronic device again; for another example, in the communication process of the NFC chip configuring the first hardware feature parameter and the second electronic device, after detecting that the external electromagnetic field is rapidly weakened, for example, the user moves the first electronic device away from the second electronic device, the first electronic device may switch the hardware feature parameter.
In addition, the specific manner of switching the first hardware feature parameter to the second hardware feature parameter may include the following:
mode 1, a first hardware feature parameter is switched to a second hardware feature parameter, where the first hardware feature parameter is different from an NFC technology and/or a bit rate corresponding to the second hardware feature parameter.
Taking table 2 as an example, if the first hardware feature parameter is a CE-B hardware feature parameter with a bit rate of 106k, after the communication fails, the first hardware feature parameter may be switched to a second hardware feature parameter, where the second hardware feature parameter is a CE-B hardware feature parameter with a bit rate of 212k, and the NFC technology between the CE-B hardware feature parameter with a bit rate of 106k and the CE-B hardware feature parameter with a bit rate of 212k is the same, and the bit rates are different.
Or if the first hardware feature parameter is a CE-a hardware feature parameter with the bit rate of 106k and number 2, after the communication fails, the first hardware feature parameter may be switched to a second hardware feature parameter, where the second hardware feature parameter is a CE-B hardware feature parameter with the bit rate of 106k, the bit rate between the CE-a hardware feature parameter with the bit rate of 106k and the CE-B hardware feature parameter with the bit rate of 106k and number 2 is the same, and the NFC technology is different.
Or, if the first hardware feature parameter is a CE-a hardware feature parameter with a bit rate of 106k and number 2, after the communication fails, the first hardware feature parameter may be switched to a second hardware feature parameter, where the second hardware feature parameter is a CE-B hardware feature parameter with a bit rate of 212k, the bit rates between the CE-a hardware feature parameter with a bit rate of 106k and the CE-B hardware feature parameter with a bit rate of 212k and the NFC technology are different.
And 2, switching the first hardware characteristic parameter into a second hardware characteristic parameter, wherein the NFC technology and the bit rate corresponding to the first hardware characteristic parameter and the second hardware characteristic parameter are the same, and the parameter values are different.
Taking table 2 as an example, if the first hardware feature parameter is a CE-a hardware feature parameter with a bit rate of 106k and number 1, after the communication fails, the first hardware feature parameter may be switched to a second hardware feature parameter, where the second hardware feature parameter is a CE-a hardware feature parameter with a bit rate of 106k and number 2, the bit rates between the CE-a hardware feature parameter with a bit rate of 106k and number 1 are the same, the NFC technology is the same, and the parameter values are different.
Optionally, before the first hardware feature parameter is switched, the NFC chip may also be put into sleep, so that power consumption of the entire NFC system in the first electronic device may be saved. It may be appreciated that, when the sleep is completed, the first electronic device may wake up the NFC chip, and may switch the first hardware feature parameter to the second hardware feature parameter after waking up the NFC chip.
In the embodiment of the application, the hardware characteristic parameters are switched and communicated again after the communication between the NFC equipment working in the CE mode and the card reading equipment fails by presetting the hardware characteristic parameters in the NFC equipment working in the CE mode, so that the NFC equipment working in the CE mode can be facilitated to be compatible with different card reading equipment, and the stability and the compatibility of the NFC equipment working in the CE mode can be improved.
Next, a card simulation method according to an embodiment of the present application will be further described with reference to fig. 2.
Fig. 2 is a schematic diagram of a Total Duration (TD) of NFC. As shown in fig. 2, one TD may include one idle period and one discovery period, wherein the NFC chip may be in an idle state during the idle period, when the NFC chip does not communicate with the second electronic device, that is, the NFC chip is in a power saving state. During the discovery period, the NFC chip is in a discovery state, and the NFC chip may communicate with the second electronic device, for example, may detect an electromagnetic field for discovering the second electronic device, and may receive a data frame sent by the second electronic device for decoding. It will be appreciated that if the decoding is successful, the communication may be considered successful, and if the decoding is unsuccessful, the communication may be considered to be unsuccessful.
Referring to fig. 3, an example will be described in which 6 sets of hardware feature parameters are preset in the first electronic device, where the 6 sets of hardware feature parameters may be respectively represented as CEA1, CEA2, CEB1, CEB2, CEF1, and CEF2, and a specific creation manner of the 6 sets of hardware feature parameters may refer to the foregoing embodiments and will not be described herein again. Illustratively, CEA1 may correspond to the CE-A hardware feature parameter of bit rate 106k in Table 2, CEA2 may correspond to the CE-A hardware feature parameter of bit rate 106k in Table 2, CEB1 may correspond to the CE-B hardware feature parameter of bit rate 106k in Table 2, CEB2 may correspond to the CE-B hardware feature parameter of bit rate 212k in Table 2, CEF1 may correspond to the CE-F hardware feature parameter of bit rate 212k in Table 2, and CEF2 may correspond to the CE-F hardware feature parameter of bit rate 424k in Table 2.
When the NFC chip is powered up, the NFC chip may be initialized, for example, the NFC chip may be set to operate in CE mode, and various NFC technologies in CE mode may be enabled, so that the NFC chip may use the enabled NFC technologies. At this time, the NFC chip is in an idle state. It will be appreciated that embodiments of the present application are illustrated by way of example and not limitation of the present application as an NFC technology combination of A, B and F being enabled, and that in some embodiments more or less other technologies or technology combinations may be included, for example, a technology, or a technology combination of a and F, or a technology combination of B and F, or a technology combination of a and B, or A, B, F and V, etc.
After the NFC chip enters the first TD, the NFC chip enters the discovery period of the first TD, that is, is in a discovery state. At this time, the NFC chip may select one set of hardware feature parameters from the plurality of sets of hardware feature parameters as the first set of hardware feature parameters. Then, the NFC chip is configured based on the first set of hardware characteristic parameters, and the NFC chip is communicated with the second electronic device through the configured first set of hardware characteristic parameters. Taking CEA1 as an example, the NFC chip can communicate with the second electronic device through the CEA1 hardware characteristic parameter under the A technology. If the communication is successful in the discovery period of the first TD, the NFC chip further performs NFC instruction interaction with the second electronic device by using CEA1 hardware characteristic parameters so as to complete the service. If communication fails in the discovery period of the first TD, the NFC chip enters an idle period of the first TD, so that the NFC chip can enter dormancy, and the power consumption of the whole NFC system of the first electronic device can be saved. In specific implementation, in the discovery period, when the NFC chip detects that the second electronic device exists outside, a timer may be started, where, by way of example, the duration of the timer may be 100ms, or may be other values, and the discovery period is not specifically limited in this embodiment of the present application; when the timer times out, the timer can be considered to be ended, and if the first electronic device still does not successfully communicate with the second electronic device at the moment, the first electronic device can enter into dormancy. It can be understood that if the timer is not overtime and the communication between the first electronic device and the second electronic device is successful, the first electronic device may close the timer and further perform NFC instruction interaction with the second electronic device to complete the service and enter into sleep after the service is completed. It should be noted that, the first electronic device may trigger the switching of the hardware feature parameter by detecting the external electromagnetic field, and if the external electromagnetic field is detected to be rapidly weakened, the communication with the second electronic device may be stopped and the sleep is entered.
After the sleep is finished, the NFC chip enters a discovery period of a second TD. It is understood that the end of sleep refers to the end of the idle period. At this time, the first electronic device may wake up the NFC chip again, and the NFC chip enters the discovery state again. The first electronic device may then switch the first set of hardware feature parameters described above, whereby the first set of hardware feature parameters (i.e., CEA 1) may be switched to another set of hardware feature parameters, e.g., CEA2. The NFC chip may then configure based on the switched hardware feature parameter (e.g., CEA 2) and communicate with the second electronic device via the configured hardware feature parameter. Taking CEA2 as an example of the hardware characteristic parameter after switching, the NFC chip can communicate with the second electronic device through the CEA2 hardware characteristic parameter under the A technology. If the communication is successful in the discovery period of the second TD, the first electronic device and the second electronic device further conduct NFC instruction interaction to complete the service and enter dormancy after the service is completed. If the communication fails in the discovery period of the second TD, the NFC chip enters an idle period of the second TD and enters dormancy again.
After the sleep is finished, the NFC chip enters a discovery period of a third TD. At this time, the first electronic device may wake up the NFC chip again, and the NFC chip enters the discovery state again. The first electronic device may then switch the above-described switched hardware feature parameters (e.g., CEA 2) again. Taking the hardware feature parameter of the present switching as CEB1 as an example, the first electronic device may switch CEA2 to CEB1. The NFC chip is then configured based on the switched hardware feature parameter (e.g., CEB 1) and communicates with the second electronic device via the configured hardware feature parameter. If the communication is successful in the discovery period of the third TD, the first electronic device and the second electronic device further conduct NFC instruction interaction to complete the service and enter dormancy after the service is completed. If the communication fails in the discovery period of the third TD, the NFC chip enters an idle period of the third TD and enters dormancy again.
After the sleep is finished, the NFC chip enters a discovery period of a fourth TD. At this time, the first electronic device may wake up the NFC chip again, and the NFC chip enters the discovery state again. The first electronic device may then switch the switched hardware feature parameter (e.g., CEB 1) again. The switched hardware characteristic parameters (i.e. CEB 1) can thus be switched again, for example to CEB2. The NFC chip is then configured based on the switched hardware feature parameters (e.g., CEB 2) and communicates with the second electronic device via the configured hardware feature parameters. Taking the switched hardware characteristic parameter as CEB2 as an example, the NFC chip may communicate with the second electronic device through the CEB2 hardware characteristic parameter under the B technology. If the communication is successful in the discovery period of the fourth TD, the first electronic device and the second electronic device further conduct NFC instruction interaction to complete the service and enter dormancy after the service is completed. If communication fails in the discovery period of the fourth TD, the NFC chip enters an idle period of the fourth TD and enters dormancy again.
After the sleep is finished, the NFC chip enters a discovery period of a fifth TD. At this time, the first electronic device may wake up the NFC chip again, and the NFC chip enters the discovery state again. The first electronic device may then switch the above-described switched hardware feature parameters (e.g., CEB 2) again. Taking the hardware feature parameter of the present switching as CEF1 as an example, the first electronic device may switch CEB2 to CEF1. The NFC chip is then configured based on the switched hardware feature parameter (e.g., CEF 1) and communicates with the second electronic device via the configured hardware feature parameter. If the communication is successful in the discovery period of the fifth TD, the first electronic device and the second electronic device further conduct NFC instruction interaction to complete the service and enter dormancy after the service is completed. If the communication fails in the discovery period of the fifth TD, the NFC chip enters an idle period of the fifth TD and enters dormancy again.
After the sleep is finished, the NFC chip enters a discovery period of the sixth TD. At this time, the first electronic device may wake up the NFC chip again, and the NFC chip enters the discovery state again. The first electronic device may then switch the switched hardware feature parameter (e.g., CEF 1) again. The switched hardware characteristic parameter (i.e. CEF 1) can thus be switched again, for example to CEF2. The NFC chip is then configured based on the switched hardware feature parameter (e.g., CEF 2) and communicates with the second electronic device via the configured hardware feature parameter. Taking the switched hardware characteristic parameter as CEF2 as an example, the NFC chip can communicate with the second electronic device through the CEF2 hardware characteristic parameter under the F technology. If the communication is successful in the discovery period of the sixth TD, the first electronic device and the second electronic device further conduct NFC instruction interaction to complete the service and enter dormancy after the service is completed. If communication fails in the discovery period of the sixth TD, the NFC chip enters an idle period of the sixth TD and enters dormancy again.
It will be appreciated that when the first electronic device attempts all the preset hardware feature parameters, it is still unable to successfully communicate with the second electronic device, and at this time, the steps from the first TD to the sixth TD may be re-executed.
Next, a card simulation method provided by an embodiment of the present application is further described with reference to fig. 4, 5a, 5b, and 5 c.
Fig. 4 is a schematic flow chart of another embodiment of the card simulation method provided by the present application, where the card simulation method is applied to a first electronic device, the first electronic device has an NFC chip, the NFC chip works in a CE mode, and the first electronic device presets a plurality of sets of hardware feature parameters, and specifically includes the following steps:
step 401, selecting a set of hardware characteristic parameters from a plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter, and performing hardware detection on an external electromagnetic field by using the first hardware characteristic parameter.
In particular, the discovery period in the TD of the NFC chip may be used for hardware detection and/or configuration of hardware feature parameters. After the NFC chip enters the TD, hardware detection may be performed. The hardware for executing the hardware detection may be an NFC chip, or a module in the NFC chip, or a peripheral hardware circuit, and the embodiment of the present application does not specifically limit the type of hardware for executing the hardware detection.
The specific way to perform hardware detection may be: and selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter, and carrying out hardware detection on an external electromagnetic field by using the first hardware characteristic parameter. Wherein the external electromagnetic field may be a radio frequency field of the second electronic device. It can be understood that the selection manner of the first hardware feature parameter may refer to the above embodiment specifically, and will not be described herein.
Step 402, if the first hardware feature parameter is adapted to the external electromagnetic field, configuring the NFC chip to the first hardware feature parameter, so that the first electronic device communicates with the second electronic device based on the first hardware feature parameter; if the first hardware characteristic parameter is not matched with the external electromagnetic field, switching the first hardware characteristic parameter into a second hardware characteristic parameter, and carrying out hardware detection on the external electromagnetic field again by using the second hardware characteristic parameter.
Specifically, if the first hardware feature parameter is adapted to the external electromagnetic field, that is, if it is determined by hardware detection that the first hardware feature parameter is adapted to the second electronic device, the NFC chip may configure the hardware feature parameter in a discovery period of the current TD, for example, the hardware may notify the software of the NFC technology, the bit rate, and the parameter value corresponding to the first hardware feature parameter that is currently adapted, so that when the software is running, the first electronic device may configure according to the notified NFC technology, bit rate, and the parameter value corresponding to the first hardware feature parameter, and may communicate with the second electronic device based on the configured first hardware feature parameter. If the first hardware characteristic parameter is not matched with the external electromagnetic field, the first electronic device can switch the first hardware characteristic parameter into the second hardware characteristic parameter, and the external electromagnetic field is detected again by using the switched second hardware characteristic parameter. It can be understood that if the second hardware feature parameter still fails to be adapted, the switching of the hardware feature parameter may be further performed, and the hardware detection may be performed again based on the switched hardware feature parameter until all the hardware feature parameters stored in the electronic device are adapted, so that the adaptation of the parameters of all the hardware features may be completed in one TD, and efficiency degradation caused by the software configuring the hardware feature parameters in multiple TDs to communicate with the second electronic device may be avoided. The specific switching manner of the hardware feature parameter may refer to the above embodiment, and will not be described herein.
Next, the above-described hardware detection scenario is exemplarily described with reference to fig. 5a and 5 c. Fig. 5a is a schematic diagram of hardware detection. As shown in fig. 5a, the NFC chip may use the first hardware feature parameter to perform hardware detection during the discovery period in any TD (for example, the first TD), where the selection manner of the first hardware feature parameter may refer to the above embodiment, which is not described herein again. If the first hardware feature parameter is adapted to the external electromagnetic field, the NFC chip may be configured within the current TD as shown in fig. 5b based on the first hardware feature parameter, so that the NFC chip communicates with the second electronic device based on the configured hardware feature parameter. If the first hardware feature parameter is not adapted to the external electromagnetic field, the switching of the hardware feature parameter can be performed in the current TD as shown in fig. 5c, and the hardware detection is performed again based on the switched hardware feature parameter until all the hardware feature parameters are adapted in the current TD.
In the embodiment of the application, in the hardware detection stage, different hardware characteristic parameters and card reading equipment can be tried to be matched in the same TD, and the matched hardware characteristic parameters are directly configured to the NFC chip after the matching is successful, so that the matching of the hardware characteristic parameters can be completed in one TD through a hardware detection means, the repeated configuration of the hardware characteristic parameters caused by the switching of the hardware characteristic parameters in a plurality of TD during the running of software can be avoided, and the execution efficiency of the software can be further improved.
Fig. 6 is a schematic structural diagram of an embodiment of an NFC chip provided by the present application, as shown in fig. 6, where the NFC chip 60 is applied to a first electronic device, that is, the first electronic device has the NFC chip 60, and the NFC chip works in a CE mode, where the first electronic device presets multiple sets of hardware feature parameters, and the NFC chip 60 may include: a selection module 61 and a communication module 62; wherein,
a selecting module 61, configured to select one set of hardware feature parameters from the plurality of sets of hardware feature parameters as a first hardware feature parameter;
the communication module 62 is configured to switch the first hardware feature parameter to the second hardware feature parameter if the NFC chip fails to communicate with the second electronic device after the first hardware feature parameter is configured by the NFC chip, and communicate with the second electronic device again according to the second hardware feature parameter.
In one possible implementation manner, each set of hardware characteristic parameters in the plurality of sets of hardware characteristic parameters has a mapping relationship with a combination of NFC mode, NFC technology and bit rate.
In one possible implementation manner, the NFC technology and/or bit rate corresponding to the first hardware feature parameter and the second hardware feature parameter are different.
In one possible implementation manner, the NFC technology and bit rate corresponding to the first hardware feature parameter and the second hardware feature parameter are the same, and the parameter values are different.
In one possible implementation, the first hardware characteristic parameter is determined by compatibility and/or coverage.
In one possible implementation manner, the communication module 62 is specifically configured to switch the first hardware feature parameter to the second hardware feature parameter when the communication between the NFC chip and the second electronic device fails after the timer times out, and the timer is started when the timer detects that the second electronic device exists outside.
In one possible implementation, the communication module 62 is further configured to switch the first hardware feature parameter to the second hardware feature parameter in response to a detected rapid decrease in the external electromagnetic field
In one possible implementation manner, the communication module 62 is specifically configured to put the NFC chip to sleep;
and after the dormancy is finished, waking up the NFC chip, and switching the first hardware characteristic parameter into the second hardware characteristic parameter.
It can be appreciated that the beneficial effects of the chip 60 in the embodiment of the present application may refer to the beneficial effects of the method embodiment described above, and will not be described herein.
Fig. 7 is a schematic structural diagram of another embodiment of an NFC chip provided by the present application, as shown in fig. 7, where the NFC chip 70 is applied to a first electronic device, that is, the first electronic device has the NFC chip 70, and the NFC chip works in a CE mode, and the first electronic device presets multiple sets of hardware feature parameters, where the NFC chip 70 may include: a detection module 71, a communication module 72, and a switching module 73; wherein,
The detection module 71 is configured to select a set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter, and perform hardware detection on the external electromagnetic field by using the first hardware characteristic parameter;
a communication module 72, configured to configure the NFC chip as the first hardware feature parameter if the first hardware feature parameter is adapted to the external electromagnetic field, so that the first electronic device communicates with the second electronic device based on the first hardware feature parameter;
and the switching module 73 is configured to switch the first hardware characteristic parameter to the second hardware characteristic parameter if the first hardware characteristic parameter is not adapted to the external electromagnetic field, and perform hardware detection on the external electromagnetic field again by using the second hardware characteristic parameter.
It can be appreciated that the beneficial effects of the chip 70 in the embodiment of the present application may refer to the beneficial effects of the method embodiment described above, and will not be described herein.
Fig. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present application, where the electronic device 800 may include: at least one processor; and at least one memory communicatively coupled to the processor. The electronic device 800 may be an NFC device. The memory stores program instructions executable by the processor, and the processor can adjust the program instructions to execute actions executed by the NFC device provided by the embodiment of the present application.
As shown in fig. 8, the electronic device 800 may be embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: one or more processors 810, a memory 820, a communication bus 840 that connects the various system components (including the memory 820 and the processor 810), and a communication interface 830.
Communication bus 840 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MAC) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection, PCI) bus.
Electronic device 800 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 800 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 820 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) and/or cache memory. Electronic device 800 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in fig. 8, a disk drive for reading from and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk such as, for example, optical disk read only memory (Compact Disc Read Only Memory, CD-ROM), digital versatile disk read only memory (Digital Video Disc Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to communication bus 840 through one or more data medium interfaces. Memory 820 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
A program/utility having a set (at least one) of program modules may be stored in the memory 820, such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules typically carry out the functions and/or methods of the embodiments described herein.
The electronic device 800 may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), one or more devices that enable a user to interact with the electronic device 800, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may occur through communication interface 830. Moreover, electronic device 800 may also communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as the internet) via a network adapter (not shown in fig. 8) that may communicate with other modules of the electronic device via communication bus 840. It should be appreciated that although not shown in fig. 8, other hardware and/or software modules may be used in connection with electronic device 800, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of Independent Drives, RAID) systems, tape drives, data backup storage systems, and the like.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The card simulation method is characterized by being applied to first electronic equipment, wherein the first electronic equipment is provided with a near field communication NFC chip, the NFC chip works in a card simulation CE mode, and the first electronic equipment presets a plurality of sets of hardware characteristic parameters, and the method comprises the following steps:
selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter;
if the NFC chip is failed to communicate with the second electronic device after the first hardware characteristic parameter is configured, the first hardware characteristic parameter is switched to a second hardware characteristic parameter, and communication is conducted again with the second electronic device according to the second hardware characteristic parameter;
if the communication between the NFC chip and the second electronic device fails after the first hardware feature parameter is configured, the switching the first hardware feature parameter to the second hardware feature parameter includes:
After a timer is overtime, if the NFC chip fails to communicate with the second electronic equipment after the NFC chip configures the first hardware characteristic parameters, the NFC chip enters dormancy, and the timer is started under the condition that the second electronic equipment exists outside;
and after the dormancy is finished, waking up the NFC chip, and switching the first hardware characteristic parameter into a second hardware characteristic parameter.
2. The method of claim 1, wherein each set of hardware characterization parameters in the plurality of sets of hardware characterization parameters has a mapping relationship with a combination of NFC mode, NFC technology, and bit rate.
3. Method according to claim 2, characterized in that the first hardware characteristic parameter is different from the NFC technology and/or bit rate to which the second hardware characteristic parameter corresponds.
4. The method of claim 2, wherein the NFC technology and bit rate corresponding to the first hardware feature parameter and the second hardware feature parameter are the same, and wherein parameter values are different.
5. The method of claim 4, wherein the first hardware characteristic parameter is determined by compatibility and/or coverage.
6. The method of claim 1, wherein switching the first hardware feature parameter to the second hardware feature parameter if communication with the second electronic device fails after the NFC chip configures the first hardware feature parameter comprises:
The first hardware feature parameter is switched to a second hardware feature parameter in response to a detected rapid decrease in the external electromagnetic field.
7. The card simulation method is characterized by being applied to first electronic equipment, wherein the first electronic equipment is provided with a near field communication NFC chip, the NFC chip works in a card simulation CE mode, and the first electronic equipment presets a plurality of sets of hardware characteristic parameters, and the method comprises the following steps:
selecting a set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter, and carrying out hardware detection on an external electromagnetic field by using the first hardware characteristic parameter;
if the first hardware characteristic parameter is matched with the external electromagnetic field, configuring the NFC chip as the first hardware characteristic parameter so that the first electronic device communicates with a second electronic device based on the first hardware characteristic parameter;
and if the first hardware characteristic parameter is not matched with the external electromagnetic field, switching the first hardware characteristic parameter into a second hardware characteristic parameter, and carrying out hardware detection on the external electromagnetic field again by using the second hardware characteristic parameter.
8. The utility model provides a NFC chip, its characterized in that is applied to first electronic equipment, NFC chip work is in card simulation CE mode, first electronic equipment presets many sets of hardware characteristic parameter, NFC chip includes:
The selecting module is used for selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter;
the communication module is used for enabling the NFC chip to enter into dormancy if communication with the second electronic equipment fails after the NFC chip configures the first hardware characteristic parameters after a timer is overtime, and the timer is started under the condition that the second electronic equipment exists outside; and after the dormancy is finished, waking up the NFC chip, switching the first hardware characteristic parameter into a second hardware characteristic parameter, and communicating with the second electronic equipment again according to the second hardware characteristic parameter.
9. The utility model provides a NFC chip, its characterized in that is applied to first electronic equipment, NFC chip work is in card simulation CE mode, first electronic equipment presets many sets of hardware characteristic parameter, NFC chip includes:
the detection module is used for selecting one set of hardware characteristic parameters from the plurality of sets of hardware characteristic parameters as a first hardware characteristic parameter, and carrying out hardware detection on an external electromagnetic field by using the first hardware characteristic parameter;
the communication module is used for configuring the NFC chip into the first hardware characteristic parameters if the first hardware characteristic parameters are matched with the external electromagnetic field, so that the first electronic device communicates with the second electronic device based on the first hardware characteristic parameters;
And the switching module is used for switching the first hardware characteristic parameter into a second hardware characteristic parameter if the first hardware characteristic parameter is not matched with the external electromagnetic field, and carrying out hardware detection on the external electromagnetic field again by using the second hardware characteristic parameter.
10. An electronic device, comprising: a processor and a memory for storing a computer program; the processor is configured to run a computer program to perform the card simulation method according to any of claims 1-6 or to perform the card simulation method according to claim 7.
CN202210557712.8A 2022-05-19 2022-05-19 Card simulation method, NFC chip and electronic equipment Active CN115001540B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210557712.8A CN115001540B (en) 2022-05-19 2022-05-19 Card simulation method, NFC chip and electronic equipment
PCT/CN2022/131950 WO2023221429A1 (en) 2022-05-19 2022-11-15 Card emulation method, and nfc chip and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210557712.8A CN115001540B (en) 2022-05-19 2022-05-19 Card simulation method, NFC chip and electronic equipment

Publications (2)

Publication Number Publication Date
CN115001540A CN115001540A (en) 2022-09-02
CN115001540B true CN115001540B (en) 2023-11-24

Family

ID=83028067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210557712.8A Active CN115001540B (en) 2022-05-19 2022-05-19 Card simulation method, NFC chip and electronic equipment

Country Status (2)

Country Link
CN (1) CN115001540B (en)
WO (1) WO2023221429A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001540B (en) * 2022-05-19 2023-11-24 深圳市汇顶科技股份有限公司 Card simulation method, NFC chip and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487426A (en) * 2016-11-19 2017-03-08 福州大学 A kind of capacitively coupled human body communication transceiver aided design system and method
CN111176924A (en) * 2019-12-21 2020-05-19 苏州浪潮智能科技有限公司 GPU card dropping simulation method, system, terminal and storage medium
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode
CN112395894A (en) * 2019-08-16 2021-02-23 华为技术有限公司 Communication method and device based on NFC
WO2021169774A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Nfc-based communication method, apparatus and system
WO2022057475A1 (en) * 2020-09-17 2022-03-24 Oppo广东移动通信有限公司 Near field communication control method, electronic device, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10631177B1 (en) * 2017-03-31 2020-04-21 Sprint Communications Company L.P. Mobile phone chipset parameter adaptation framework
CN113297020B (en) * 2021-05-20 2023-02-28 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for testing hardware module in chip and readable storage medium
CN113704043A (en) * 2021-08-30 2021-11-26 地平线(上海)人工智能技术有限公司 Chip function verification method and device, readable storage medium and electronic equipment
CN115001540B (en) * 2022-05-19 2023-11-24 深圳市汇顶科技股份有限公司 Card simulation method, NFC chip and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487426A (en) * 2016-11-19 2017-03-08 福州大学 A kind of capacitively coupled human body communication transceiver aided design system and method
CN112395894A (en) * 2019-08-16 2021-02-23 华为技术有限公司 Communication method and device based on NFC
CN111176924A (en) * 2019-12-21 2020-05-19 苏州浪潮智能科技有限公司 GPU card dropping simulation method, system, terminal and storage medium
WO2021169774A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Nfc-based communication method, apparatus and system
WO2022057475A1 (en) * 2020-09-17 2022-03-24 Oppo广东移动通信有限公司 Near field communication control method, electronic device, and storage medium
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode

Also Published As

Publication number Publication date
WO2023221429A1 (en) 2023-11-23
CN115001540A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
EP2132626B1 (en) Boot negotiation among multiple boot-capable devices
US8959326B2 (en) Memory device initiate and terminate boot commands
US20050204181A1 (en) System and method for information handling system multimedia mode boot optimization
CN115001540B (en) Card simulation method, NFC chip and electronic equipment
US20050210299A1 (en) Information handling system including wireless scanning feature
CN102567135B (en) Refreshing/recovering method and electronic equipment
EP2901245A1 (en) Efficient low power exit sequence for peripheral devices
EP3629127A1 (en) System and method for hybrid power supply
CN108536370A (en) A kind of input interface switching method and device, electronic equipment
CN109597653A (en) Method, BIOS and the BMC of BIOS and BMC command interaction
CN105159703B (en) The method and system of factory reset
US7882377B2 (en) Electronic device with flexible processing system
US20170083421A1 (en) System and Method for Policy Based Management of a Communication Device Configuration Persistence
CN104598192A (en) Information processing method and electronic equipment
CN114896997A (en) Card searching method, NFC chip and electronic equipment
CN102884855A (en) Dynamic multiple access protocol for use in an audience response system
CN110162389B (en) Application program starting method and device and intelligent interaction equipment
US7836234B2 (en) Communication in accordance with a master-slave communication protocol
WO2016179944A1 (en) Function multiplexing method and apparatus for communication interface
CN104461767B (en) A kind of information processing method and the first electronic equipment
CN108874595A (en) A kind of HBA card remapping method, system and HBA card and storage medium
CN100518077C (en) Data processing system and method for long-range forbidden network activity in customer computer system
CN102469625B (en) A kind of wireless network card and wireless network card driving method
WO2020263267A1 (en) Storing post codes in electronic tags
US11880575B2 (en) Adaptive memory device power saving setting in an information handling 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