CN114580451A - Antenna parameter configuration method and device, storage medium and electronic equipment - Google Patents

Antenna parameter configuration method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114580451A
CN114580451A CN202011390253.6A CN202011390253A CN114580451A CN 114580451 A CN114580451 A CN 114580451A CN 202011390253 A CN202011390253 A CN 202011390253A CN 114580451 A CN114580451 A CN 114580451A
Authority
CN
China
Prior art keywords
card
read
nfc
written
antenna
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.)
Pending
Application number
CN202011390253.6A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011390253.6A priority Critical patent/CN114580451A/en
Publication of CN114580451A publication Critical patent/CN114580451A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/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
    • 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/10198Methods 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 setting parameters for the interrogator, e.g. programming parameters and operating modes
    • 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/10316Methods 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 using at least one antenna particularly designed for interrogating the wireless record carriers
    • G06K7/10336Methods 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 using at least one antenna particularly designed for interrogating the wireless record carriers the antenna being of the near field type, inductive coil
    • 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

Abstract

The embodiment of the application discloses an antenna parameter configuration method, an antenna parameter configuration device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a card to be read and written is detected in an NFC reader-writer mode, a card identification corresponding to the card to be read and written is identified, a first configuration parameter of an NFC antenna is determined based on the card identification, the NFC antenna is configured based on the first configuration parameter, and the card to be read and written is read and written by the configured NFC antenna. By adopting the embodiment of the application, the power consumption of the read-write card can be reduced.

Description

Antenna parameter configuration method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an antenna parameter configuration method and apparatus, a storage medium, and an electronic device.
Background
Near Field Communication (NFC) is a short-range Communication technology, which combines a non-contact radio frequency identification technology and a wireless technology, in recent years, with the development of the NFC technology, many terminals integrate an NFC function, and the terminals perform identification and data interaction with compatible entities (corresponding electronic devices and NFC tags) in a short distance through the NFC technology, so that operations such as identity identification, mobile payment and information interaction can be quickly realized.
The NFC (Near-field-communication) operation mode mainly includes three types: a reader/writer mode, a card emulation mode, and a peer-to-peer mode. The terminal is in an NFC reader-writer mode, and can perform read-write operation on a corresponding card to be read and written, which supports an NFC function.
Disclosure of Invention
The embodiment of the application provides an antenna parameter configuration method, an antenna parameter configuration device, a storage medium and electronic equipment, which can reduce the power consumption of a read-write card. The technical scheme of the embodiment of the application is as follows:
in a second aspect, an embodiment of the present application provides an antenna parameter configuration method, where the method includes:
when a card to be read and written is detected in an NFC reader-writer mode, identifying a card identification corresponding to the card to be read and written;
determining a first configuration parameter of the NFC antenna based on the card identification;
and configuring the NFC antenna based on the first configuration parameter, and reading and writing the card to be read and written by adopting the configured NFC antenna.
In a second aspect, an embodiment of the present application provides an antenna parameter configuration apparatus, where the apparatus includes:
the identification recognition module is used for recognizing a card identification corresponding to a card to be read and written when the card to be read and written is detected in an NFC reader-writer mode;
the parameter determining module is used for determining a first configuration parameter of the NFC antenna based on the card identifier;
and the card reading and writing module is used for configuring the NFC antenna based on the first configuration parameter and reading and writing the card to be read and written by adopting the configured NFC antenna.
In a third aspect, an embodiment of the present application provides an NFC antenna, which includes an NFC coil, an antenna tuner, a controller, and a signal sensor, where:
the signal sensor is connected with the NFC coil and the antenna tuner;
the controller is connected with the signal sensor and the antenna tuner; wherein, the first and the second end of the pipe are connected with each other,
the NFC coil transmits a detection signal and receives an electromagnetic wave signal generated when the card to be read and written is close to the NFC coil, the electromagnetic wave signal is transmitted to the antenna tuner through the controller, the antenna tuner carries out configuration parameters on the NFC coil based on the electromagnetic wave signal, and the adjusted NFC coil reads and writes the card to be read and written.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fifth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, when a terminal detects a card to be read and written in an NFC reader mode, a card identifier corresponding to the card to be read and written is identified, a first configuration parameter of an NFC antenna is determined based on the card identifier, the NFC antenna is configured based on the first configuration parameter, and the card to be read and written is read and written by using the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an antenna parameter configuration method according to an embodiment of the present application;
fig. 2 is a schematic view of a scenario in which a terminal provided in an embodiment of the present application operates in an NFC passive mode;
fig. 3 is a schematic flowchart of another antenna parameter configuration method according to an embodiment of the present application;
fig. 4 is an exemplary schematic diagram of an NFC antenna structure provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an antenna parameter configuration apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an identification module according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an identifier determining unit according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a parameter determining module according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a card read/write module according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a parameter matching unit according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 12 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 13 is an architectural diagram of the android operating system of FIG. 11;
FIG. 14 is an architectural diagram of the IOS operating system of FIG. 11.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part 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.
In the description of the present application, it is to be understood that the terms "second," "A," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
In one embodiment, as shown in fig. 1, an antenna parameter configuration method is specifically proposed, which can be implemented by means of a computer program and can run on an antenna parameter configuration device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the antenna parameter configuration method includes:
step S101: and when the card to be read and written is detected in the NFC reader-writer mode, identifying the card identification corresponding to the card to be read and written.
The NFC (Near-field-communication) working modes mainly include three types: a reader/writer mode, a card emulation mode, and a peer-to-peer mode. In the application, the terminal is mainly applied to an NFC reader-writer mode, and parameter configuration of an NFC antenna is achieved.
For the terminal, when a user on the terminal inputs an NFC reader start instruction for the NFC reader mode, the terminal may respond to the NFC reader start instruction, so as to start the NFC reader mode, operate in the NFC reader mode, and perform detection on a card to be read and written.
Specifically, the NFC reader start instruction may be triggered by the user based on selection of an NFC service (such as an NFC application and an NFC plug-in) on the terminal, and if the user starts and runs an application program for reading a bus card on the terminal, an NFC module or an NFC chip included in the terminal operates in an NFC card reader mode at this time.
The terminal having the NFC function can operate in a reader/writer mode for an NFC tag, a peer-to-peer mode for other NFC devices, and a card emulation mode for other NFC readers, and terminals based on different NFC standards support different data transmission rates of 106kbps (kilobits per second), 212kbps, and 424 kbps. Two communication modes are supported between the terminal and corresponding entities (such as cards to be detected and other NFC equipment): an active mode (such as a point-to-point mode) in which the communication initiating device and the target communication device are both powered by themselves and alternately transmit data; the method comprises the steps that a communication initiating device generates a wireless signal and supplies power to a target communication device through an electromagnetic field, and the target communication device responds to a passive mode (such as an NFC reader mode and a card simulation mode) of the communication initiating device through modulation of the existing electromagnetic field, wherein in the application, a terminal in the NFC reader mode is started, the communication mode is generally passive communication in active communication and passive communication (such as NFC-A, POLL and passive communication), at the moment, the terminal with the NFC function works in the NFC reader mode, and the NFC-A is a proper term in NFC specification
Further, in the reader/writer mode, a terminal (e.g., a mobile phone supporting NFC communication) serving as an NFC reader/writer is close to a card to be read/written, where the card to be read/written may be regarded as a passive NFC tag and generates a detection signal, an antenna of the NFC tag captures electric energy from an electromagnetic field of the detection signal to supply power to a memory, and transmits data stored in the memory to the terminal serving as the NFC reader/writer by modulating the electromagnetic field. Because the passive NFC tag (namely the card to be read and written in the application) can assist the terminal to complete the reading and writing of the card to be read and written only by the antenna and the corresponding storage device without an additional battery.
In addition, in this application, the card identifier is used to uniquely represent a certain type of card to be read and written or a card to be read and written corresponding to a certain single entity, and the card identifier may be represented in the form of numbers, characters, character strings, and the like.
Explaining the detailed process of identifying the card identification corresponding to the card to be read and written by the terminal as follows:
specifically, in a scenario of performing card data reading and writing by using the NFC technology, a device supporting NFC is generally referred to as a device in which a host device starts NFC communication, and is also referred to as an NFC host device, and a radio frequency field (i.e., RF) is provided in the whole communication process. Generally, one transmission speed of 106kbps, 212kbps or 424kbps can be selected for reading and writing data, a detection signal (which can be understood as a radio frequency signal) is emitted to the outside through an included NFC antenna, a radio frequency field is provided based on the continuously emitted radio frequency signal, when a card to be read and written is identified, if the card to be read and written is close to a terminal at the moment, so as to enter the range of the radio frequency field of the terminal, the terminal can identify the card to be read and written, and card information of the card to be read and written can be obtained, so that the card identification of the card to be read and written is determined. In addition, in the whole process of the card to be read and written as the NFC tag, a radio frequency field does not need to be generated, and a load modulation technology is used, so that corresponding NFC communication data (such as an induction command, card information, and the like) can be transmitted back to the host device, that is, the terminal, at the same transmission speed.
In a specific embodiment, the NFC operating mode is divided into a passive mode and an active mode. The passive mode is as shown in fig. 2, fig. 2 is a scene schematic diagram of a terminal operating in the NFC passive mode, where an NFC initiator is a terminal (i.e., a master device), the terminal is used as the master device to continuously transmit a radio frequency signal by using energy of a contained power supply component (e.g., an internal battery) to provide a radio frequency field (i.e., RF), and if a card to be read and written approaches the terminal and enters a range of the radio frequency field of the terminal, the NFC card induces the radio frequency signal sent by an NFC card reader to generate a corresponding electromagnetic wave signal in the radio frequency field, so that the terminal can recognize the card to be read and written, and the terminal can determine to detect the card to be read and written based on the electromagnetic wave signal by controlling a contained NFC antenna to collect the electromagnetic wave signal, and further obtain card information of the card to be read and written to determine an identification card of the card to be read and written, in practical applications, the NFC card does not generate a radio frequency field, and transmits response data (such as card information and corresponding sensing commands) back to the host device at the same speed by using a load modulation technique. In the passive mode, when the NFC master device-terminal can detect the card to be read and written, the card information corresponding to the card to be read and written is acquired, so that the terminal can analyze the card information conveniently, and can determine the card identifier of the card to be read and written.
In some embodiments, the obtained card information of the card to be read/written may be understood as a signal information, and in some embodiments, the signal information may also be characterized by a signal characteristic; in addition, the card information may be physical signal information, or may be data information stored in a memory of the card to be read and written.
Wherein physical signals can be understood as:
the terminal can generate induction with a radio frequency signal sent by an NFC card reader based on an NFC card, so that a corresponding electromagnetic wave signal is generated in a radio frequency field, the electromagnetic wave signal can be a signal characteristic which does not contain data information stored in a memory in the card to be read and written, namely, for the terminal, the detailed information of the card to be read and written can be identified only by physical characteristics of the electromagnetic wave signal, such as circuit parameter (current, voltage and the like) characteristics, amplitude-frequency characteristics, transmission rate characteristics, magnetic field signal characteristics, NFC label protocol characteristics and other physical characteristics, such as card identification of the card to be read and written is determined, and the card identification can be the unique representation of the card type, card ID and the like of the card to be read and written.
The data information stored in the memory of the card to be read/written can be understood as:
the data information is information of the NFC card to be read and written, including the capacity, the type, the creating time, the card identification, the data abstract, the check code of the data, the data name and the like of the NFC card.
The designated range is a range in which the NFC card and the NFC card reader can implement near field communication, and the designated range is a range specified by the near field communication technology, for example, NFC operates at 13.56MHZ, and requires a communication distance within a range of 20 cm.
The storage space of the NFC card is divided into a boot area, a data storage page area, a data description area and a data area.
The boot area is used for storing basic information of the NFC card, and the basic information comprises information such as capacity, type, creation time, card identification, data abstract, data check code and data name of the NFC card.
The data storage page area indicates the use condition of the storage page of the NFC card and represents a linked list structure of the page stored by the file data;
and the data description area is used for describing information of the stored files, each item of the data description area corresponds to the file description of one file stored in the card, and the content of the data description area is the file information and the initial page number of the file.
And the data area is used for storing written data contents and occupies most of the pages of the FLASH storage area.
In practical implementation, the terminal provides a radio frequency field by using energy of a contained power supply component (such as an internal battery), when a radio frequency range corresponding to the radio frequency field can cover a card to be read and written, the card to be read and written can receive a radio frequency signal of the terminal, at this time, the target device feeds back response data (such as part or all of stored data) to the terminal in the form of an electromagnetic wave signal at the same speed by using a load modulation technology, and the terminal can analyze card data carried by the electromagnetic wave signal and determine a card identifier corresponding to the card to be read and written.
Step S102: and determining first configuration parameters of the NFC antenna based on the card identification.
Specifically, the terminal is pre-established with a mapping relationship between at least one reference card identifier and configuration parameters, the mapping relationship may be represented in the form of a linear list, a parameter set, a parameter configuration distribution map, and the like, and in the related art, in the performance indexes of the NFC card reader, the configuration parameters such as the similar receiving sensitivity and the similar transmitting field strength indexes have been specified in ISO/IEC 10373-6. Because the simulated return of the NFC card reader generally adopts a passive load modulation mode, the return signal strength is in positive correlation with the configuration parameters of the terminal in the card reader mode. Therefore, the sensitivity of reading and writing the card to be read and written is usually improved by increasing the value corresponding to each configuration parameter of the card reader as much as possible, for example, the NFC antenna is controlled to work by the maximum value corresponding to each configuration parameter, so that the communication sensing distance of NFC can be increased as much as possible, and the card to be read and written can be identified. In the application, it is considered that the power consumption of the terminal is undoubtedly wasted by adopting the method, and in an actual application environment, when a scene of the NFC read-write card is involved, a user usually attaches the "card to be read-written" to the terminal, so that higher configuration parameters are not required to be maintained actually.
In this application, when the terminal detects a card to be read and written in the NFC reader mode, the terminal may configure a configuration parameter of a current NFC antenna in a process of reading and writing the "card to be read and written", so as to select an appropriate configuration parameter to control the NFC antenna to operate, it may be understood that the determined first configuration parameter may be determined based on a working threshold value that ensures that the card to be read and written can be read and written, for example, the first configuration parameter may be the working threshold value, and for example, a difference between the first configuration parameter and the working threshold value is smaller than a certain threshold value.
Optionally, the mapping relationship between the reference card identifier and the configuration parameter may be a configuration parameter with lower power consumption determined by debugging the configuration parameter of the type of reference card when the terminal identifies the type of reference card for the first time; the terminal can acquire the data from a cloud server maintaining the type of reference card based on a big data technology, the cloud server acquires a large amount of sample data in an actual NFC read-write scene in advance, and the sample data is analyzed in a mathematical statistics mode so as to determine the mapping relation between the reference card identification and the configuration parameters.
Further, configuration parameters of the NFC antenna are used for determining an operating state of the NFC, and different configuration parameters are different from each other in performance indexes of the NFC antenna, where the configuration parameters include but are not limited to resonant frequency characteristic parameters; a quality factor characteristic parameter; matching impedance Z characteristic parameters; inductance L characteristic parameters; sensing a distance S characteristic parameter; modulating a depth characteristic parameter; field intensity characteristic parameters; a signal integrity characteristic parameter; power characteristic parameters, etc. In addition, the first configuration parameter is a mapping relationship between a terminal country reference card identifier and a configuration parameter, and the configuration parameter corresponding to the card identifier is determined, that is, the first configuration parameter.
Step S103: and configuring the NFC antenna based on the first configuration parameter, and reading and writing the card to be read and written by adopting the configured NFC antenna.
Specifically, after the terminal determines the first configuration parameter of the NFC antenna based on the card identifier, each parameter index of the current NFC antenna is adjusted according to each parameter value corresponding to the first configuration parameter, for example, each parameter index of the NFC antenna is updated to each parameter value corresponding to the first configuration parameter, for example, the modulation depth index is updated to the modulation depth characteristic parameter indicated by the first configuration parameter, the inductance L index is updated to the inductance L characteristic parameter indicated by the first configuration parameter, and the like.
Specifically, after the terminal completes configuration of the NFC antenna based on the first configuration parameter, the card to be read and written may be read and written by using the configured NFC antenna, so as to perform corresponding read and write operations on related data information in the card to be read and written. The terminal can comprise a corresponding read-write module and is used for executing read-write operation or write-write operation on the first NFC card according to the basic information and the read-write instruction of the card to be read and written.
Specifically, the read-write module at least comprises a read-write management unit, a physical addressing IO management unit, a read queue and a write queue. The read-write management unit is used for managing the read-write operation of the data. And the physical addressing IO management unit is used for converting a physical addressing mode into a file storage management mode. The read queue and the write queue are respectively used for reading and writing data. And the read-write management unit, the physical addressing IO management unit, the read queue and the write queue in the read-write module are matched with each other, so that the data reading operation or the data writing operation is executed on the first NFC card according to the basic information and the read-write instruction.
In the embodiment of the application, when a terminal detects a card to be read and written in an NFC reader-writer mode, the terminal identifies a card identifier corresponding to the card to be read and written, determines a first configuration parameter of an NFC antenna based on the card identifier, configures the NFC antenna based on the first configuration parameter, and reads and writes the card to be read and written by adopting the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another embodiment of an antenna parameter configuration method according to the present application. Specifically, the method comprises the following steps:
step S201: when a card to be read and written is detected in an NFC reader-writer mode, acquiring an electromagnetic wave signal generated when the card to be read and written is detected;
according to some embodiments, in the NFC reader mode, a terminal (e.g., a mobile phone supporting NFC communication) serving as an NFC reader is close to a card to be read and written, where the card to be read and written may be regarded as a passive NFC tag, and generates a detection signal when the NFC reader mode is turned on, and generates a corresponding radio frequency field (which may be understood as an electromagnetic field) through the detection signal continuously emitted to the outside, if the card to be read and written enters the range of the radio frequency field, the card to be read and written induces a radio frequency signal emitted by the terminal serving as the NFC reader, an antenna (e.g., an antenna coil) of the NFC tag captures electric energy from the electromagnetic field of the detection signal to power a memory, and generates a corresponding electromagnetic wave signal in the radio frequency field by modulating the electromagnetic field, so that the terminal recognizes the card to be read and written, and the terminal collects the electromagnetic wave signal by controlling an included NFC antenna, the passive NFC tag (i.e., the card to be read and written in the present application) can assist the terminal to complete reading and writing of the card to be read and written only by the antenna and the corresponding memory device without an additional battery.
Step S202: and identifying the electromagnetic wave signals, and determining signal characteristics corresponding to the electromagnetic wave signals.
The signal characteristics include at least one of circuit characteristics, communication transmission characteristics, and NFC protocol characteristics.
The circuit characteristics can be understood as circuit parameters for feeding back the current circuit state of the NFC antenna, the circuit parameters include but are not limited to voltage parameters, current parameters, inductance L parameters and the like, different types or different cards to be read and written can correspondingly generate different circuit parameters when being detected by a terminal, and the cards to be read and written can be identified uniquely based on the circuit characteristics.
The communication transmission characteristics can be understood as feedback of transmission parameters such as transmission rate, modulation depth, transmission power and the like when the card to be read and written and the terminal perform NFC data interaction, it can be understood that different types or different cards to be read and written correspond to different transmission parameters when being detected by the terminal, and based on the transmission parameters, the card to be read and written can be uniquely identified, for example, the card to be read and written of different types, the data transmission rates are mostly inconsistent.
The characteristics of the NFC protocol may be understood that different protocols used by different types of cards to be read and written are different, and may be further identified based on the protocol parameters of the feedback NFC protocol, for example, the characteristics may be a protocol identifier, a protocol frame digest, a check code of a protocol frame, and the like.
The terminal can generally perform signal identification on the electromagnetic wave signal generated when acquiring the card to be read and written, for example, the signal characteristics corresponding to the electromagnetic wave signal can be determined by performing identification means such as analog-to-digital conversion on the electromagnetic wave signal, performing spectrum analysis on the electromagnetic wave signal, and performing gaussian filtering on the electromagnetic wave signal.
Step S203: and determining a target feature matched with the signal feature, and taking a target identifier corresponding to the target feature as a card identifier corresponding to the card to be read and written.
According to some embodiments, the terminal previously represents the identifier mapping relationship between the corresponding card identifier and the reference signal feature corresponding to the electromagnetic wave signal to be read and written, and the identifier mapping relationship may be in the form of a linear list, a parameter set, a parameter configuration distribution map, and the like.
Wherein determining the target feature that matches the signal feature may be:
in practical application, the terminal stores reference signal characteristics corresponding to each reference card identifier in advance, and the reference signal characteristics include, but are not limited to, all types of reference parameters corresponding to at least one of circuit characteristics, communication transmission characteristics and NFC protocol characteristics. In the way of matching each reference signal feature with the target feature: calculating similarity between each reference signal feature and a target feature, or calculating similarity distance between each reference signal feature and a target feature; may be calculating difference feature information for each of the reference signal features and target features, and then ranking or scoring based on the difference feature information; it may also be determined whether the target feature falls within a corresponding reference signal feature range, and so on.
Specifically, after obtaining the analysis processing result corresponding to each reference signal feature according to the matching processing mode, the terminal evaluates the analysis processing result according to a preset evaluation rule, and when the analysis processing result meets the set matching evaluation requirement, the terminal can determine the target feature matched with the signal feature, that is, the current reference signal feature is used as the target feature.
Optionally, when the analysis processing result is based on the similarity between the reference signal feature and the target feature, the evaluation rule may be to set a similarity threshold, and when the similarity of the analysis processing result reaches the similarity threshold, the terminal may determine the target feature matched with the signal feature, that is, the current reference signal feature is used as the target feature.
Optionally, when the analysis processing result is based on the similarity distance between the reference signal feature and the target feature, the evaluation rule may be to set a similarity distance threshold, and when the similarity of the analysis processing result reaches the similarity distance threshold, the terminal may determine the target feature matched with the signal feature, that is, take the current reference signal feature as the target feature.
Optionally, when the analysis processing result is based on the rating or the score of the difference feature information between the reference signal feature and the target feature, the evaluation rule may be to set a similarity level threshold or a similarity score threshold, and when the similarity level of the analysis processing result reaches the similarity level threshold or the similarity score reaches the similarity score threshold, the terminal may determine the target feature matched with the signal feature, that is, the current reference signal feature is used as the target feature.
Optionally, the terminal may determine, for the reference signal feature, whether the target parameter corresponding to the target signal feature falls within the reference parameter range of the same type corresponding to the reference signal feature. For example, the target parameter corresponding to the target signal feature may be represented by a numerical type (e.g., the parameter is represented by a numerical value), and the terminal determines whether the numerical value falls within a reference parameter range of the same type, for example, the numerical value is greater than a certain numerical threshold or less than a certain numerical threshold, so as to determine the target feature matching the signal feature, that is, the current reference signal feature is used as the target feature.
Step S204: and determining a reference configuration parameter corresponding to the card identifier according to a mapping relation between a preset reference identifier and the configuration parameter, and taking the reference configuration parameter as a first configuration parameter of the NFC antenna.
Specifically, after determining the target feature matched with the signal feature and taking the target identifier corresponding to the target feature as the card identifier corresponding to the card to be read and written, the terminal may determine the reference configuration parameter corresponding to the card identifier according to a unique mapping relationship between a preset reference identifier and the configuration parameter, and take the reference configuration parameter as the first configuration parameter of the NFC antenna.
Step S205: acquiring a historical debugging record of a reference card corresponding to the card identification, and acquiring a sensitivity reference value corresponding to the card identification; determining the first configuration parameter for the included NFC antenna based on the historical commissioning record and the sensitivity reference value.
The history debugging record can be understood as follows in the application: carrying out sensitivity debugging on reference cards corresponding to the same type of card identification in advance, setting a plurality of groups of different types of configuration debugging parameters, and then acquiring an actual sensitivity value under an actual application environment, wherein the configuration debugging parameters include but are not limited to resonant frequency test parameters; quality factor test parameters; matching impedance Z test parameters; inductance L test parameters; sensing a distance S test parameter; modulating depth test parameters; testing parameters of field intensity; a signal integrity test parameter; power test parameters, and the like.
The sensitivity reference value is a threshold value of the sensitivity of the card corresponding to the card identifier, and when the actual sensitivity is not less than the threshold value, the NFC reader-writer can perform normal reading and writing on the card corresponding to the card identifier. Further, the sensitivity reference value may be a calibration value preset by the terminal, or a calibration value custom-set by a user at a later stage, or a calibration value specified by an NFC communication protocol adopted by the card corresponding to the card identifier.
In specific implementation, the terminal only needs to search the actual sensitivity value matched with the sensitivity reference value in the historical debugging record, and then obtains a group of configuration debugging parameters adopted during test debugging corresponding to the actual sensitivity value, namely the reference configuration parameters; so that the terminal can use this reference configuration parameter as said first configuration parameter for the included NFC antenna.
Optionally, the historical debugging record may be obtained by the terminal from a local storage space; may be obtained from a cloud server.
Step S206: and when the second configuration parameter of the NFC antenna is not matched with the first configuration parameter, configuring the NFC antenna, and reading and writing the card to be read and written by adopting the configured NFC antenna.
The second configuration parameter is a current configuration parameter of an NFC antenna included in the terminal. In this application, configuring the NFC antenna based on the first configuration parameter may refer to determining whether the current configuration parameter needs to be updated.
Specifically, the terminal may obtain a target sensitivity corresponding to the card to be read and written and a reference sensitivity corresponding to the card identifier, where the target sensitivity is a sensitivity of the card to be read and written detected when the NFC antenna operates with the second configuration parameter;
in practical application, whether the current configuration parameters need to be updated or not is measured mainly based on the sensitivity value of the terminal aiming at the card to be read and written, namely the target sensitivity, in the NFC reader-writer mode; the reference sensitivity is a threshold value of the sensitivity of the card corresponding to the card identifier, and when the actual sensitivity is not less than the threshold value, the NFC reader can perform normal reading and writing on the card corresponding to the card identifier. In practical application, because a terminal usually works with larger configuration parameters and externally transmits a detection signal, when a card to be read and written is detected, the measured actual sensitivity of the card to be read and written is generally higher, mainly for ensuring the maximum NFC communication distance so as to quickly identify the card to be read and written, in the actual user operation process, a user can continuously operate the card to be read and written to be close to the terminal, and the terminal can measure the current sensitivity corresponding to the card to be read and written, so that the target sensitivity is obtained;
then judging whether the target sensitivity is matched with the reference sensitivity, and when the target sensitivity is not matched with the reference sensitivity, the terminal determines that the second configuration parameter of the NFC antenna is not matched with the first configuration parameter; if not, the current configuration parameter is usually too high, and the terminal updates the second configuration parameter of the NFC antenna to the first configuration parameter.
Further, the above-mentioned judging whether the target sensitivity matches with the reference sensitivity may be:
the terminal calculates the sensitivity difference value of the target sensitivity and the reference sensitivity;
and when the sensitivity difference is larger than a difference threshold, the terminal determines that the target sensitivity is not matched with the reference sensitivity.
In the embodiment of the application, when a terminal detects a card to be read and written in an NFC reader-writer mode, the terminal identifies a card identifier corresponding to the card to be read and written, determines a first configuration parameter of an NFC antenna based on the card identifier, configures the NFC antenna based on the first configuration parameter, and reads and writes the card to be read and written by adopting the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters, and through combining with practical application environments, when detecting the card to be read and written, the card to be read and written can be close to the NFC antenna contained in the terminal (if a user can operate the card to be read and written and can be close to the terminal), at the moment, the power consumption resources of the terminal can be wasted by using the default configuration parameters with higher power consumption, the power consumption can be greatly reduced by adopting the antenna parameter configuration method, the electric quantity of the terminal can be saved, and the optimal performance of the terminal in terms of NFC can be realized; and real-time adjustment before reading and writing is carried out according to the card identification (such as the card type) of the card to be read and written, so that the problem of mistaken reading due to overhigh sensitivity can be avoided, the application scene in an NFC reader-writer mode is optimized, and the antenna parameter adjustment is more intelligent.
Referring to fig. 4, fig. 4 is an exemplary schematic diagram of an NFC antenna structure provided in the present application, where the NFC antenna 30 is applied to a terminal, and the terminal may be any device including an NFC antenna. The electronic devices include, but are not limited to: a smart phone, smart tablet, personal computer, tablet computer, in-vehicle device, computing device, or other processing device connected to a wireless modem, etc. Terminals can be called different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), electronic device in a 5G network or future evolution network, and the like.
An NFC antenna 30 comprising an NFC coil 301, an antenna tuner 302, a controller 303, a signal sensor 304, wherein:
the signal sensor 304 is connected to the NFC coil 301 and the antenna tuner 302;
the controller 303 is connected to the signal sensor 304 and the antenna tuner 302; wherein the content of the first and second substances,
the NFC coil 301 transmits a detection signal for a card to be read and written, and receives an electromagnetic wave signal generated when the card to be read and written is close to the NFC coil 301, the electromagnetic wave signal is transmitted to the antenna tuner 302 through the controller 303, and the antenna tuner 302 performs configuration parameter adjustment based on the electromagnetic wave signal.
Optionally, the NFC coil 301 is configured to transmit a detection signal to the outside and receive an electromagnetic wave signal generated when the card to be read and written is close to the NFC coil 301; the NFC coil 301 may be a resonant coil or a resonant array; during specific operation, the alternating current in the NFC coil 301 may periodically or continuously emit a detection signal to the outside, where the detection signal is used to detect whether there is a card to be read or written close to the NFC coil 301, and the NFC coil 301 may generate a corresponding radio frequency field based on the detection signal emitted to the outside.
Optionally, the signal sensor 304 may be a circuit sensing device, which is used for sensing a corresponding electromagnetic wave signal, including but not limited to a voltage sensor, a circuit sensor, an electromagnetic sensor, and the like, and the signal sensor 304 may be used for detecting an operating state of the NFC coil 301, such as whether it is in a low power consumption mode or not and whether an electromagnetic wave signal is collected or not.
The antenna tuner 302 is configured to tune the NFC coil 301, so that the NFC coil 301 operates in a specified frequency band, for example, around 13.56 MHz; in addition, the antenna tuner 302 may be further configured to control an operating state of the NFC coil 301 and adjust configuration parameters of the NFC coil 301. In some embodiments, the antenna tuner 302 may be comprised of an NFC matcher and an NFC processor.
The circuit principles in this application will be explained in detail below with reference to signal trends and specific operating principles:
the NFC coil 301 may emit a detection signal for the card to be read and written to the outside when in an operating state, generally, the NFC coil 301 may operate based on a second configuration parameter set to the current configuration, a corresponding radio frequency field (which may be understood as an electromagnetic field) may be generated by means of the detection signal emitted to the outside continuously, if the card to be read and written enters the range of the radio frequency field, the card to be read and written may induce the radio frequency signal emitted from the terminal of the NFC card reader, an antenna (e.g., an antenna coil) of the card to be read and written (i.e., an NFC tag) captures electrical energy from the electromagnetic field of the detection signal to power the memory, and generates a corresponding electromagnetic wave signal in the radio frequency field by modulating the electromagnetic field, at this time, the NFC coil 301 receives the electromagnetic wave signal generated when the card to be read and written is close to the NFC coil 301, and the electromagnetic wave signal is transmitted to the antenna tuner 302 through the controller 303, the antenna tuner 302 adjusts the configuration parameters of the NFC coil 301 based on the electromagnetic wave signal, so that the card to be read/written can be read/written based on the adjusted NFC coil 301.
In this embodiment of the application, with the structure of the NFC antenna, when the NFC antenna terminal detects a card to be read and written in an NFC reader mode, the card identifier corresponding to the card to be read and written is identified, based on the card identifier, a first configuration parameter of the NFC antenna is determined, the NFC antenna is configured based on the first configuration parameter, and the card to be read and written is read and written by using the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters, and through combining with practical application environments, when detecting the card to be read and written, the card to be read and written can be close to the NFC antenna contained in the terminal (if a user can operate the card to be read and written and can be close to the terminal), at the moment, the power consumption resources of the terminal can be wasted by using the default configuration parameters with higher power consumption, the power consumption can be greatly reduced by adopting the antenna parameter configuration method, the electric quantity of the terminal can be saved, and the optimal performance of the terminal in terms of NFC can be realized; and real-time adjustment before reading and writing is carried out according to the card identification (such as the card type) of the card to be read and written, so that the problem of mistaken reading of the card with overhigh sensitivity can be avoided, the application scene under the NFC reader-writer mode is optimized, and the antenna parameter adjustment is more intelligent.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 5, which shows a schematic structural diagram of an antenna parameter configuration apparatus according to an exemplary embodiment of the present application. The antenna parameter configuration means may be implemented as all or part of the apparatus by software, hardware or a combination of both. The device 1 comprises an identification recognition module 11, a parameter determination module 12 and a day card reading and writing module 13.
The identification recognition module 11 is configured to, when a card to be read and written is detected in an NFC reader mode, recognize a card identification corresponding to the card to be read and written;
a parameter determining module 12, configured to determine a first configuration parameter of the NFC antenna based on the card identifier;
and the card reading and writing module 13 is configured to configure the NFC antenna based on the first configuration parameter, and read and write the card to be read and written by using the configured NFC antenna.
Optionally, as shown in fig. 6, the identifier recognizing module 11 includes:
a signal detection unit 111, configured to acquire an electromagnetic wave signal generated when the card to be read and written is detected;
an identification determination unit 112, configured to determine, based on the electromagnetic wave signal, a card identification corresponding to the card to be read and written.
Optionally, as shown in fig. 7, the identifier determining unit 112 includes:
a feature identification subunit 1121, configured to identify the electromagnetic wave signal and determine a signal feature corresponding to the electromagnetic wave signal, where the signal feature includes at least one of a circuit feature, a communication transmission feature, and an NFC protocol feature;
and an identifier determining subunit 1122, configured to determine a target feature that matches the signal feature, and use a target identifier corresponding to the target feature as a card identifier corresponding to the card to be read and written.
Optionally, as shown in fig. 8, the parameter determining module 12 includes:
the first parameter determining unit 121 is configured to determine a reference configuration parameter corresponding to the card identifier according to a mapping relationship between a preset reference identifier and the configuration parameter, and use the reference configuration parameter as a first configuration parameter of the NFC antenna;
the second parameter determining unit 122 is configured to obtain a historical debugging record of a reference card corresponding to the card identifier, and obtain a sensitivity reference value corresponding to the card identifier; determining the first configuration parameter for the included NFC antenna based on the historical commissioning record and the sensitivity reference value.
Optionally, the card reading and writing module 13 is specifically configured to:
and when the second configuration parameter of the NFC antenna is not matched with the first configuration parameter, configuring the NFC antenna.
Optionally, as shown in fig. 9, the card reading and writing module 13 includes:
the sensitivity obtaining unit 131 is configured to obtain a target sensitivity corresponding to the card to be read and written and a reference sensitivity corresponding to the card identifier, where the target sensitivity is a sensitivity of the card to be read and written detected when the NFC antenna operates with the second configuration parameter;
a parameter matching unit 132, configured to determine that the second configuration parameter of the NFC antenna does not match the first configuration parameter when the target sensitivity does not match the reference sensitivity;
a parameter updating unit 133, configured to update the second configuration parameter of the NFC antenna to the first configuration parameter.
Optionally, as shown in fig. 10, the parameter matching unit 132 includes:
a difference operator unit 1321 for calculating a sensitivity difference between the target sensitivity and the reference sensitivity;
a parameter matching subunit 1322 is configured to determine that the target sensitivity does not match the reference sensitivity when the sensitivity difference is greater than a difference threshold.
Optionally, the apparatus 1 is further configured to:
controlling the NFC antenna to emit a detection signal to the outside when the NFC reader-writer is in the NFC reader-writer mode;
and controlling the NFC antenna to collect electromagnetic wave signals, determining and detecting the card to be read and written based on the electromagnetic wave signals, wherein the electromagnetic wave signals are generated when the card to be read and written is close to the NFC antenna.
It should be noted that, when the antenna parameter configuration apparatus provided in the foregoing embodiment executes the antenna parameter configuration method, only the division of the functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the antenna parameter configuration device and the antenna parameter configuration method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, when a terminal detects a card to be read and written in an NFC reader-writer mode, the terminal identifies a card identifier corresponding to the card to be read and written, determines a first configuration parameter of an NFC antenna based on the card identifier, configures the NFC antenna based on the first configuration parameter, and reads and writes the card to be read and written by adopting the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters, and through combining with practical application environments, when detecting the card to be read and written, the card to be read and written can be close to the NFC antenna contained in the terminal (if a user can operate the card to be read and written and can be close to the terminal), at the moment, the power consumption resources of the terminal can be wasted by using the default configuration parameters with higher power consumption, the power consumption can be greatly reduced by adopting the antenna parameter configuration method, the electric quantity of the terminal can be saved, and the optimal performance of the terminal in terms of NFC can be realized; and real-time adjustment before reading and writing is carried out according to the card identification (such as the card type) of the card to be read and written, so that the problem of mistaken reading of the card with overhigh sensitivity can be avoided, the application scene under the NFC reader-writer mode is optimized, and the antenna parameter adjustment is more intelligent.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the antenna parameter configuration method according to the embodiments shown in fig. 1 to fig. 3, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to fig. 3, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded by the processor and executes the antenna parameter configuration method according to the embodiment shown in fig. 1 to fig. 3, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to fig. 3, and is not described herein again.
Referring to fig. 11, a block diagram of an electronic device according to an exemplary embodiment of the present application is shown. The electronic device in the present application may comprise one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system, including a system based on Android system depth development, an IOS system developed by apple, including a system based on IOS system depth development, or other systems. The data storage area may also store data created by the electronic device during use, such as phone books, audio and video data, chat log data, and the like.
Referring to fig. 12, the memory 120 may be divided into an operating system space, where an operating system is run, and a user space, where native and third-party applications are run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 13, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the electronic device, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game application, an instant messaging program, a photo beautification program, an antenna parameter configuration program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 14, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on the electronic device. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework illustrated in FIG. 14, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a base UI class library for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and so on.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens for receiving touch operations of a user on or near the touch display screens by using any suitable object such as a finger, a touch pen, and the like, and displaying user interfaces of various applications. Touch displays are typically provided on the front panel of an electronic device. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the electronic devices illustrated in the above-described figures do not constitute limitations on the electronic devices, which may include more or fewer components than illustrated, or some components may be combined, or a different arrangement of components. For example, the electronic device further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the electronic device described above. Optionally, the execution subject of each step is an operating system of the electronic device. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
The electronic device of the embodiment of the application can also be provided with a display device, and the display device can be various devices capable of realizing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. A user may utilize a display device on the electronic device 101 to view information such as displayed text, images, video, and the like. The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
In the electronic device shown in fig. 11, where the electronic device may be a terminal, the processor 110 may be configured to invoke an antenna parameter configuration application program stored in the memory 120, and specifically perform the following operations:
when a card to be read and written is detected in an NFC reader-writer mode, identifying a card identification corresponding to the card to be read and written;
determining a first configuration parameter of the NFC antenna based on the card identification;
and configuring the NFC antenna based on the first configuration parameter, and reading and writing the card to be read and written by adopting the configured NFC antenna.
In an embodiment, when the processor 110 executes the step of identifying the card identifier corresponding to the card to be read and written, the following steps are specifically executed:
acquiring an electromagnetic wave signal generated when the card to be read and written is detected;
and determining the card identification corresponding to the card to be read and written based on the electromagnetic wave signal.
In an embodiment, when the processor 110 determines the card identifier corresponding to the card to be read and written based on the electromagnetic wave signal, the following steps are specifically performed:
identifying the electromagnetic wave signals, and determining signal characteristics corresponding to the electromagnetic wave signals, wherein the signal characteristics comprise at least one of circuit characteristics, communication transmission characteristics and NFC protocol characteristics;
and determining a target characteristic matched with the signal characteristic, and taking a target identification corresponding to the target characteristic as a card identification corresponding to the card to be read and written.
In an embodiment, when the processor 110 determines the first configuration parameter for the included NFC antenna based on the card identifier, specifically perform the following steps:
determining a reference configuration parameter corresponding to the card identifier according to a mapping relation between a preset reference identifier and the configuration parameter, and taking the reference configuration parameter as a first configuration parameter of the NFC antenna; or the like, or, alternatively,
acquiring a historical debugging record of a reference card corresponding to the card identification, and acquiring a sensitivity reference value corresponding to the card identification; determining the first configuration parameter for the included NFC antenna based on the historical commissioning record and the sensitivity reference value.
In an embodiment, when the processor 110 configures the NFC antenna based on the first configuration parameter, the following steps are specifically performed:
and when the second configuration parameter of the NFC antenna is not matched with the first configuration parameter, configuring the NFC antenna.
In an embodiment, when the processor 110 performs the configuration on the NFC antenna when the second configuration parameter of the NFC antenna is not matched with the first configuration parameter, the following steps are specifically performed:
acquiring target sensitivity corresponding to the card to be read and written and reference sensitivity corresponding to the card identification, wherein the target sensitivity is the sensitivity of the card to be read and written detected when the NFC antenna works with the second configuration parameter;
determining that a second configuration parameter of the NFC antenna does not match the first configuration parameter when the target sensitivity does not match the reference sensitivity;
updating the second configuration parameter of the NFC antenna to the first configuration parameter.
In an embodiment, when the processor 110 executes the antenna parameter configuration method, the following steps are specifically executed:
calculating a sensitivity difference between the target sensitivity and the reference sensitivity;
determining that the target sensitivity does not match the reference sensitivity when the sensitivity difference is greater than a difference threshold.
In an embodiment, before the processor 110 identifies the card identifier corresponding to the card to be read and written when the card to be read and written is detected in the NFC reader/writer mode, the following operations are further performed:
controlling the NFC antenna to emit a detection signal to the outside when the NFC reader-writer is in the NFC reader-writer mode;
and controlling the NFC antenna to collect electromagnetic wave signals, determining and detecting the card to be read and written based on the electromagnetic wave signals, wherein the electromagnetic wave signals are generated when the card to be read and written is close to the NFC antenna.
In the embodiment of the application, when a card to be read and written is detected in an NFC reader-writer mode, a card identification corresponding to the card to be read and written is identified, a first configuration parameter of an NFC antenna is determined based on the card identification, the NFC antenna is configured based on the first configuration parameter, and the card to be read and written is read and written by the configured NFC antenna. The terminal does not directly read and write the card to be read and written when detecting the card to be read and written according to the default configuration parameters, but adjusts the configuration parameters of the NFC antenna based on the card identification of the card to be read and written, so as to avoid the problem of high power consumption of the card to be read and written when reading and writing according to the default configuration parameters, and through combining with practical application environments, when detecting the card to be read and written, the card to be read and written can be close to the NFC antenna contained in the terminal (if a user can operate the card to be read and written and can be close to the terminal), at the moment, the power consumption resources of the terminal can be wasted by using the default configuration parameters with higher power consumption, the power consumption can be greatly reduced by adopting the antenna parameter configuration method, the electric quantity of the terminal can be saved, and the optimal performance of the terminal in terms of NFC can be realized; and real-time adjustment before reading and writing is carried out according to the card identification (such as the card type) of the card to be read and written, so that the problem of mistaken reading of the card with overhigh sensitivity can be avoided, the application scene under the NFC reader-writer mode is optimized, and the antenna parameter adjustment is more intelligent.
It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-ProgrammaBLE Gate Array (FPGA), an Integrated Circuit (IC), or the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

1. An antenna parameter configuration method, the method comprising:
when a card to be read and written is detected in an NFC reader-writer mode, identifying a card identification corresponding to the card to be read and written;
determining a first configuration parameter of the NFC antenna based on the card identification;
and configuring the NFC antenna based on the first configuration parameter, and reading and writing the card to be read and written by adopting the configured NFC antenna.
2. The method according to claim 1, wherein the identifying the card identifier corresponding to the card to be read and written comprises:
acquiring an electromagnetic wave signal generated when the card to be read and written is detected;
and determining the card identification corresponding to the card to be read and written based on the electromagnetic wave signal.
3. The method according to claim 2, wherein the determining the card identifier corresponding to the card to be read and written based on the electromagnetic wave signal comprises:
identifying the electromagnetic wave signals, and determining signal characteristics corresponding to the electromagnetic wave signals, wherein the signal characteristics comprise at least one of circuit characteristics, communication transmission characteristics and NFC protocol characteristics;
and determining a target feature matched with the signal feature, and taking a target identifier corresponding to the target feature as a card identifier corresponding to the card to be read and written.
4. The method of claim 1, wherein determining the first configuration parameters for the included NFC antenna based on the card identification comprises:
determining a reference configuration parameter corresponding to the card identifier according to a mapping relation between a preset reference identifier and the configuration parameter, and taking the reference configuration parameter as a first configuration parameter of the NFC antenna; or the like, or, alternatively,
acquiring a historical debugging record of a reference card corresponding to the card identification, and acquiring a sensitivity reference value corresponding to the card identification; determining the first configuration parameter for the included NFC antenna based on the historical commissioning record and the sensitivity reference value.
5. The method of claim 1, wherein the configuring the NFC antenna based on the first configuration parameter comprises:
and when the second configuration parameter of the NFC antenna is not matched with the first configuration parameter, configuring the NFC antenna.
6. The method of claim 5, wherein configuring the NFC antenna when the second configuration parameter of the NFC antenna does not match the first configuration parameter comprises:
acquiring target sensitivity corresponding to the card to be read and written and reference sensitivity corresponding to the card identification, wherein the target sensitivity is the sensitivity of the card to be read and written detected when the NFC antenna works with the second configuration parameter;
determining that a second configuration parameter of the NFC antenna does not match the first configuration parameter when the target sensitivity does not match the reference sensitivity;
updating the second configuration parameter of the NFC antenna to the first configuration parameter.
7. The method of claim 6, further comprising:
calculating a sensitivity difference between the target sensitivity and the reference sensitivity;
determining that the target sensitivity does not match the reference sensitivity when the sensitivity difference is greater than a difference threshold.
8. The method according to claim 1, wherein when the card to be read and written is detected in the NFC reader/writer mode, before identifying the card identifier corresponding to the card to be read and written, the method further comprises:
controlling the NFC antenna to emit a detection signal to the outside when the NFC reader-writer is in the NFC reader-writer mode;
and controlling the NFC antenna to collect electromagnetic wave signals, determining and detecting the card to be read and written based on the electromagnetic wave signals, wherein the electromagnetic wave signals are generated when the card to be read and written is close to the NFC antenna.
9. An NFC antenna, comprising an NFC coil, an antenna tuner, a controller, a signal sensor, wherein:
the signal sensor is connected with the NFC coil and the antenna tuner;
the controller is connected with the signal sensor and the antenna tuner; wherein the content of the first and second substances,
the NFC coil transmits a detection signal and receives an electromagnetic wave signal generated when the card to be read and written is close to the NFC coil, the electromagnetic wave signal is transmitted to the antenna tuner through the controller, the antenna tuner carries out configuration parameters on the NFC coil based on the electromagnetic wave signal, and the adjusted NFC coil reads and writes the card to be read and written.
10. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 8.
11. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 8.
CN202011390253.6A 2020-12-02 2020-12-02 Antenna parameter configuration method and device, storage medium and electronic equipment Pending CN114580451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011390253.6A CN114580451A (en) 2020-12-02 2020-12-02 Antenna parameter configuration method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011390253.6A CN114580451A (en) 2020-12-02 2020-12-02 Antenna parameter configuration method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114580451A true CN114580451A (en) 2022-06-03

Family

ID=81767599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011390253.6A Pending CN114580451A (en) 2020-12-02 2020-12-02 Antenna parameter configuration method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114580451A (en)

Similar Documents

Publication Publication Date Title
US10825009B2 (en) Payment additional service information processing method and electronic device for supporting the same
US20190318545A1 (en) Command displaying method and command displaying device
WO2019206213A1 (en) Application program pre-loading method and apparatus, and storage medium and terminal
EP3207757B1 (en) Method, electronic device and computer program for connecting to external devices
EP3654268B1 (en) Card registration method for payment service and mobile electronic device implementing the same
US10972861B2 (en) Electronic device and system for providing point of interest information
US20170004485A1 (en) Method for payment using short range communication and electronic device therefor
US10997582B2 (en) Payment transaction method and electronic device therefor
US10806356B2 (en) Electronic device and method for measuring heart rate based on infrared rays sensor using the same
US20160253318A1 (en) Apparatus and method for processing text
US20200099785A1 (en) Electronic apparatus for providing voice recognition control and operating method therefor
US20200044997A1 (en) Method for providing transaction history-based service and electronic device therefor
KR20160069279A (en) Method for providing point of interest and electronic device thereof
CN114881711B (en) Method for carrying out exception analysis based on request behaviors and electronic equipment
US20180268383A1 (en) Electronic device and method for detecting item in data associated with web
CN112788583A (en) Equipment searching method and device, storage medium and electronic equipment
KR20180040966A (en) Electronic apparatus for transmitting data and method for controlling thereof
CN106503986B (en) Virtual resource transfer method and device
US10210104B2 (en) Apparatus and method for providing handoff thereof
CN111918386A (en) Positioning method, positioning device, storage medium and electronic equipment
CN112306606A (en) Method and equipment for presenting control style
CN108205754B (en) Electronic payment method and electronic device for supporting the same
CN107633188B (en) Information display method and device and user equipment
KR102310296B1 (en) Server operating platform for resale and restoration of used-clothing and methods for operating the same
CN114580451A (en) Antenna parameter configuration method and device, storage medium and electronic equipment

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