CN115102583A - NFC communication method, NFC communication device, readable medium and electronic equipment - Google Patents

NFC communication method, NFC communication device, readable medium and electronic equipment Download PDF

Info

Publication number
CN115102583A
CN115102583A CN202211024563.5A CN202211024563A CN115102583A CN 115102583 A CN115102583 A CN 115102583A CN 202211024563 A CN202211024563 A CN 202211024563A CN 115102583 A CN115102583 A CN 115102583A
Authority
CN
China
Prior art keywords
nfc
waveform
instruction
protocol
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211024563.5A
Other languages
Chinese (zh)
Other versions
CN115102583B (en
Inventor
黄金煌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202211024563.5A priority Critical patent/CN115102583B/en
Publication of CN115102583A publication Critical patent/CN115102583A/en
Application granted granted Critical
Publication of CN115102583B publication Critical patent/CN115102583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses an NFC communication method, an NFC communication device, a readable medium and electronic equipment, wherein the method is applied to first-class NFC equipment and comprises the following steps: determining a target NFC protocol, and determining waveform description information corresponding to the first type of NFC equipment according to the target NFC protocol; determining a waveform protocol instruction according to the waveform description information; sending the waveform protocol instruction to a second NFC device corresponding to the first NFC device; after the waveform protocol command is sent, sending an activation command to the second type of NFC equipment so that the second type of NFC equipment replies feedback information; determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment; sending a waveform protocol instruction to a second NFC device through a first NFC device, so that a communication signal waveform protocol between the first NFC device and the second NFC device is realized; the waveform difference between different devices is avoided, the problem of compatibility between different devices is solved, and the communication efficiency is improved.

Description

NFC communication method, NFC communication device, readable medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an NFC communication method, an NFC communication apparatus, a readable medium, and an electronic device.
Background
NFC (Near Field Communication) is a widely used Communication technology. During NFC communication, two NFC devices participating in communication need to be in a "card mode" and a "card reader mode", respectively. The NFC equipment in the card reader mode determines a communication signal with a specific waveform to transmit according to a communication protocol; and the NFC device in "card mode" replies after recognizing the waveform of the communication signal.
However, in the prior art, due to the characteristics and the setting of different NFC devices, waveforms of modulated communication signals may have a certain difference, and the difference may cause a compatibility problem between different devices in many cases, thereby reducing communication efficiency or even failing to achieve normal communication.
Disclosure of Invention
The invention provides an NFC communication method, an NFC communication device, a readable medium and electronic equipment, which are used for realizing a communication signal waveform protocol between first NFC equipment and second NFC equipment.
In a first aspect, the present invention provides an NFC communication method, which is applied to a first class of NFC devices, and includes:
determining a target NFC protocol, and determining waveform description information corresponding to the first type of NFC equipment according to the target NFC protocol;
determining a waveform protocol instruction according to the waveform description information; sending the waveform protocol instruction to a second NFC device corresponding to the first NFC device;
after the waveform protocol command is sent, sending an activation command to the second type of NFC equipment so that the second type of NFC equipment replies feedback information;
and determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment.
Preferably, the waveform description information includes a frame waiting time parameter and a release collision phase parameter; then said determining a waveform agreement instruction according to said waveform description information comprises:
determining an instruction identifier of a waveform agreement instruction;
checking the command identifier, the frame waiting time parameter and the release conflict phase parameter to determine check bytes;
determining the waveform agreement instruction according to the instruction identifier, the frame latency parameter, the put collision phase parameter, and the check byte.
Preferably, the number of the target NFC protocols is multiple, and the determining, according to the target NFC protocol, the waveform description information corresponding to the first type of NFC device includes:
and determining waveform description information corresponding to each target NFC protocol.
Preferably, the determining a waveform protocol command according to the waveform description information includes:
and determining waveform protocol instructions respectively corresponding to the target NFC protocols according to the waveform description information respectively corresponding to the target NFC protocols.
Preferably, the waveform protocol command is sent to a second type of NFC device corresponding to the first type of NFC device; after sending the waveform agreement instruction, sending an activation instruction to the second class of NFC device includes:
sequentially sending the waveform protocol instruction corresponding to each target NFC protocol to the second type of NFC equipment;
and correspondingly sending an activation instruction to the second class of NFC equipment after the waveform agreement instruction is sent each time.
Preferably, the determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC device includes:
sending an activation instruction to the second type of NFC equipment according to each time, and receiving corresponding feedback information;
and determining an agreement result of the waveform agreement instruction corresponding to each target NFC protocol according to each piece of feedback information.
In a second aspect, the present invention provides an NFC communication method, which is applied to an NFC device of a second class, and includes:
receiving a waveform protocol instruction of a first type of NFC equipment, and determining a protocol result according to the waveform protocol instruction;
receiving an activation instruction of the first type of NFC equipment; responding to the activation instruction, carrying the agreement result in feedback information, and sending the feedback information to the first type of NFC equipment;
and determining the waveform of the communication signal according to the waveform protocol command.
Preferably, the method further comprises the following steps:
and after the waveform of the communication signal is determined, the communication signal is utilized to carry out NFC communication with the first class of NFC equipment.
In a third aspect, the present invention provides an NFC communication apparatus, the apparatus being disposed in an NFC device of a first type, the apparatus including:
the description information determining module is used for determining a target NFC protocol and determining waveform description information corresponding to the first type of NFC equipment according to the target NFC protocol;
a protocol instruction determining module for determining a waveform protocol instruction according to the waveform description information; sending the waveform protocol instruction to a second NFC device corresponding to the first NFC device;
an activation instruction determining module, configured to send an activation instruction to the second type of NFC device after sending the waveform agreement instruction, so that the second type of NFC device replies feedback information;
and the agreement result determining module is used for determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment.
In a fourth aspect, the present invention provides an NFC communications apparatus, which is disposed in an NFC device of a second type, the apparatus including:
the NFC equipment comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a waveform protocol command of first-class NFC equipment and determining a protocol result according to the waveform protocol command; receiving an activation instruction of the first type of NFC device;
the sending module is used for responding to the activation instruction, carrying the agreement result in feedback information, and sending the feedback information to the first type of NFC equipment;
and the waveform adjusting module is used for determining the waveform of the communication signal according to the waveform protocol instruction.
In a fifth aspect, the invention provides a readable medium comprising executable instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the method according to any one of the first aspect.
In a sixth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
In a seventh aspect, the present invention provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method according to any one of the second aspects.
In an eighth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the second aspects.
The invention provides an NFC communication method, an NFC communication device, a readable medium and electronic equipment, wherein a first class of NFC equipment sends a waveform protocol instruction to a second class of NFC equipment to realize a communication signal waveform protocol between the first class of NFC equipment and the second class of NFC equipment; the waveform difference between different devices is avoided, the compatibility problem between different devices is solved, the communication efficiency is improved, and the communication fault is also avoided.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart illustrating an NFC communication method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating sequential agreement for multiple NFC protocols in an NFC communication method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another NFC communication method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an NFC apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another NFC apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
During NFC communication, two NFC devices participating in communication need to be in a "card mode" and a "card reader mode", respectively. The NFC equipment in the card reader mode determines a communication signal with a specific waveform to transmit according to a communication protocol; and the NFC device in "card mode" replies after recognizing the waveform of the communication signal.
However, in the prior art, due to characteristics and setting of different NFC devices, waveforms of modulated communication signals of different NFC devices have certain differences. The difference is expressed by the fact that the waveforms differ in phase, modulation depth, and the like. And the difference often causes compatibility problems between different devices, thereby reducing communication efficiency and even failing to realize normal communication.
In view of the above, the present invention provides an NFC communication method. The method is applied to the first type of NFC device. In other words, the main body, i.e., the first type NFC device is executed in the present embodiment. By NFC device of the first type, it is meant an NFC device in "reader mode". And the corresponding NFC device of the second type is an NFC device in "card mode". The first type of NFC device and the second type of NFC device are both parties participating in NFC communication. Referring to fig. 1, a specific embodiment of an NFC communication method provided in the present invention is shown. In this embodiment, the method includes the steps of:
step 101, determining a target NFC protocol, and determining waveform description information corresponding to the first type of NFC equipment according to the target NFC protocol.
A second type of NFC device may support a different NFC protocol. The specific communication signal and waveform characteristics may also vary between different NFC protocols. The target NFC protocol, i.e. the NFC protocol that needs to be agreed on the waveform of the communication signal, should first be determined in this embodiment.
When the first type of NFC device communicates by using the target NFC protocol, its communication signal may exhibit a certain waveform characteristic based on its own property. In this embodiment, the so-called "waveform protocol" is that the NFC device of the second type may adjust its own communication signal according to the waveform characteristics of the NFC device of the first type. The waveform characteristics of the communication signals sent by the second type of NFC equipment are closer to those of the first type of NFC equipment, so that the compatibility and the communication efficiency between the second type of NFC equipment and the first type of NFC equipment are improved.
Therefore, in this step, the waveform description information corresponding to the first type of NFC device is determined according to the target NFC protocol. The waveform description information is information describing waveform characteristics of the first type of NFC device under the target NFC protocol. The waveform description information may specifically include a frame latency parameter and a release collision phase parameter.
Step 102, determining a waveform protocol instruction according to the waveform description information; and sending the waveform protocol command to a second NFC device corresponding to the first NFC device.
After the waveform description information is determined, the waveform protocol command may be further determined according to the waveform description information. That is, the waveform protocol command carries the waveform description information. Under the condition that the waveform description information comprises a frame waiting time parameter and a release conflict phase parameter, the process of determining the waveform agreement instruction specifically comprises the following steps:
determining an instruction identifier of a waveform agreement instruction; checking the command identifier, the frame waiting time parameter and the release conflict phase parameter to determine check bytes; determining the waveform agreement instruction according to the instruction identifier, the frame latency parameter, the put collision phase parameter, and the check byte.
The format of the wave protocol command can be referred to the following table:
CMD FDT Phase CRC
a total of 4 parts are included in the waveform protocol command. Wherein, CMD represents a command identifier of the waveform protocol command, and the command identifier will occupy 1 byte, and may be specifically a character such as a letter, a number, and the like. FDT represents a frame latency parameter, which occupies 1 byte, and is essentially a time parameter in microseconds (μ s), meaning a time difference value that a waveform needs to be adjusted based on a protocol specification. Phase represents the Phase parameter of conflict, occupies 1 byte, is an angle parameter in nature, and means the Phase difference value of the waveform needing to be adjusted on the basis of the protocol specification. The CRC represents a check byte, and is determined by checking the command identifier, the frame latency parameter, and the put collision phase parameter, taking 2 bytes.
After determining the waveform protocol command, the first type of NFC device needs to send the waveform protocol command to the corresponding second type of NFC device. This second type of NFC device, i.e. the "card mode" NFC device, is in the radio frequency field of the first type of NFC device and needs to communicate with it. In this embodiment, the NFC device of the second type does not need to reply to the waveform agreement command.
Step 103, after sending the waveform protocol command, sending an activation command to the second type of NFC device, so that the second type of NFC device replies feedback information.
After sending the waveform agreement instruction to the second type of NFC device, according to a normal NFC communication flow, the first type of NFC device needs to send an activation instruction to the second type of NFC device to activate the second type of NFC device, so as to enter a state where actual communication can start. The activation instruction may specifically be an ALL _ REQ instruction or a SENS _ REQ instruction in the art. Normally, the NFC device of the second type will respond to the activation instruction and send feedback information to the NFC device of the first type. In this embodiment, since the NFC device of the second type does not need to reply to the waveform protocol command, the protocol result of the NFC device of the second type for the waveform protocol command is also carried in the feedback information. Therefore, the number of communication interaction between the two can be reduced, and the communication flow is simplified. And the agreement result shows whether the NFC equipment of the second type can send out communication signals in an agreed manner.
And step 104, determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment.
After receiving the feedback information, the first type of NFC device may resolve the agreement result. Thereby knowing whether the NFC devices of the second type can cooperatively emit communication signals to present a waveform consistent therewith.
It should be further noted in this embodiment that, in some cases, the number of the target NFC protocols may be multiple. I.e. the NFC devices of the second type may support multiple NFC protocols or it may need to be determined which NFC protocol is supported by the NFC devices of the second type at all. In this case, the respective target NFC protocols should be agreed upon in turn, as shown in fig. 2.
That is to say, the first type of NFC device needs to determine waveform description information corresponding to each target NFC protocol, and then determine a waveform protocol instruction corresponding to each target NFC protocol according to the waveform description information corresponding to each target NFC protocol.
Then, sequentially sending the waveform protocol instruction corresponding to each target NFC protocol to the second type of NFC equipment; and correspondingly sending an activation instruction to the second type of NFC equipment after the waveform protocol instruction is sent each time. Sending an activation instruction to the second type of NFC equipment according to each time, and receiving corresponding feedback information; and determining an agreement result of the waveform agreement instruction corresponding to each target NFC protocol according to each piece of feedback information.
For example, in fig. 2, three target NFC protocols, NFC-A, NFC-B and NFC-F, are included. In the flow shown in fig. 2, after one target NFC protocol agreement is completed, the agreement of the next target NFC protocol is performed in sequence. The agreement procedure of each target NFC protocol is consistent with the above steps. The above process is repeated to complete the agreement of multiple target NFC protocols.
So far, the communication signal waveform protocol between the first type of NFC device and the second type of NFC device is implemented in this embodiment.
Fig. 3 shows another specific embodiment of an NFC communication method according to the present invention. The method in this embodiment is applied to the above-described NFC device of the second type. In other words, the main body, i.e., the NFC device of the second type, is implemented in this embodiment. In fact, the method in this embodiment is a communication process performed synchronously by the NFC device of the second type while the method steps in the embodiment shown in fig. 1 are performed. The two cooperate with each other to complete the waveform protocol of the communication signal. The method in this embodiment includes the following steps:
step 301, receiving a waveform protocol command of the first type of NFC device, and determining a protocol result according to the waveform protocol command.
The second type of NFC device may determine a corresponding agreement result after receiving the waveform agreement instruction. I.e. whether a communication signal can be sent out according to an agreement. In some cases, if the second type of NFC device does not support the target NFC protocol, the agreement typically results in an "agreement failure. Otherwise, if the target NFC protocol is supported, the agreement result may be "agreement success".
Step 302, receiving an activation instruction of the first type of NFC equipment; and responding to the activation instruction, carrying the agreement result with feedback information, and sending the feedback information to the first class of NFC equipment.
NFC devices of the second type do not reply to the waveform agreement instruction. But rather needs to reply with feedback information to the NFC device of the first type in response to the activation instruction. At this time, the agreement result may be carried in the feedback information.
Step 303, determining the waveform of the communication signal according to the waveform protocol command.
In the case that the agreement result is "agreement is successful", the NFC device of the second type may determine the waveform of the communication signal according to the waveform agreement instruction. Namely, the waveform in the communication signal is adjusted according to the frame waiting time parameter and the conflict phase parameter in the waveform protocol command.
After the waveform of the communication signal is determined, the second type of NFC equipment can perform NFC communication with the first type of NFC equipment by using the adjusted communication signal in the subsequent actual NFC communication process. Namely, the protocol of communication signals is achieved, and the communication compatibility and the communication efficiency of the two are improved.
As can be seen from the embodiments shown in FIGS. 1 to 3, the beneficial effects of the present invention are: the first class of NFC equipment sends a waveform protocol command to the second class of NFC equipment, so that a communication signal waveform protocol between the first class of NFC equipment and the second class of NFC equipment is realized; the waveform difference between different devices is avoided, the compatibility problem between different devices is solved, the communication efficiency is improved, and the communication fault is also avoided.
Fig. 4 shows an embodiment of an NFC apparatus according to the present invention. The apparatus of this embodiment is a physical apparatus for performing the method described in fig. 1-2. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. In this embodiment, the apparatus is disposed in a first type of NFC device, and the apparatus includes:
the description information determining module 401 is configured to determine a target NFC protocol, and determine waveform description information corresponding to the first type of NFC device according to the target NFC protocol.
A protocol instruction determining module 402, configured to determine a waveform protocol instruction according to the waveform description information; and sending the waveform protocol command to a second NFC device corresponding to the first NFC device.
An activation instruction determining module 403, configured to send an activation instruction to the second class of NFC device after sending the waveform agreement instruction, so that the second class of NFC device replies feedback information.
An agreement result determining module 404, configured to determine an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC device.
Fig. 5 shows an embodiment of an NFC apparatus according to the present invention. The apparatus of this embodiment is a physical apparatus for executing the method described in fig. 3. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. In this embodiment, the apparatus is disposed in a second type of NFC device, and the apparatus includes:
a receiving module 501, configured to receive a waveform protocol instruction of a first type of NFC device, and determine a protocol result according to the waveform protocol instruction; receiving an activation instruction of the first type of NFC device.
A sending module 502, configured to respond to the activation instruction, carry the agreement result in feedback information, and send the feedback information to the first type of NFC device.
The waveform adjusting module 503 is configured to determine a waveform of the communication signal according to the waveform protocol command.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but this does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads corresponding execution instructions from the nonvolatile memory into the memory and then executes the execution instructions, and corresponding execution instructions can also be obtained from other devices, so as to form the NFC communication device on a logic level. The processor executes the execution instruction stored in the memory, so that the NFC communication method provided by any embodiment of the invention is realized through the executed execution instruction.
The method performed by the NFC communication device according to the embodiment of the present invention shown in fig. 5 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the NFC communication method provided in any embodiment of the present invention, and is specifically configured to execute the methods shown in fig. 1 to fig. 2.
The electronic device described in the foregoing embodiments may be a computer.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads corresponding execution instructions from the nonvolatile memory into the memory and then runs the corresponding execution instructions, and corresponding execution instructions can also be obtained from other devices, so as to form the NFC communication device on a logic level. The processor executes the execution instruction stored in the memory, so that the NFC communication method provided by any embodiment of the invention is realized through the executed execution instruction.
The method performed by the NFC communication device according to the embodiment of the present invention shown in fig. 5 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the NFC communication method provided in any embodiment of the present invention, and is specifically configured to execute the method shown in fig. 3.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
All the embodiments in the invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (14)

1. An NFC communication method, wherein the method is applied to a first class of NFC devices, and wherein the method comprises:
determining a target NFC protocol, and determining waveform description information corresponding to the first type of NFC equipment according to the target NFC protocol;
determining a waveform protocol instruction according to the waveform description information; sending the waveform protocol instruction to a second NFC device corresponding to the first NFC device;
after the waveform protocol command is sent, sending an activation command to the second type of NFC equipment so that the second type of NFC equipment replies feedback information;
and determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment.
2. The method of claim 1, wherein the waveform description information comprises a frame latency parameter and a release collision phase parameter; then said determining a waveform agreement instruction according to said waveform description information comprises:
determining an instruction identifier of a waveform agreement instruction;
checking the instruction identifier, the frame latency parameter and the release collision phase parameter to determine check bytes;
determining the waveform agreement instruction according to the instruction identifier, the frame latency parameter, the put collision phase parameter, and the check byte.
3. The method of claim 1, wherein the number of the target NFC protocols is multiple, and the determining the waveform description information corresponding to the first type of NFC device according to the target NFC protocol comprises:
and determining waveform description information corresponding to each target NFC protocol.
4. The method of claim 3, wherein determining a waveform profile command according to the waveform description information comprises:
and determining waveform protocol instructions respectively corresponding to the target NFC protocols according to the waveform description information respectively corresponding to the target NFC protocols.
5. The method of claim 4, wherein said sending the waveform agreement instruction to a second class of NFC device corresponding to the first class of NFC device; after sending the waveform agreement instruction, sending an activation instruction to the second class of NFC device includes:
sequentially sending the waveform protocol instruction corresponding to each target NFC protocol to the second type of NFC equipment;
and correspondingly sending an activation instruction to the second type of NFC equipment after the waveform protocol instruction is sent each time.
6. The method of claim 5, wherein the determining the agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC device comprises:
sending an activation instruction to the second type of NFC equipment according to each time, and receiving corresponding feedback information;
and determining an agreement result of the waveform agreement instruction corresponding to each target NFC protocol according to each piece of feedback information.
7. An NFC communication method, wherein the method is applied to a second class of NFC devices, and wherein the method comprises:
receiving a waveform protocol instruction of a first type of NFC equipment, and determining a protocol result according to the waveform protocol instruction;
receiving an activation instruction of the first type of NFC equipment; responding to the activation instruction, carrying the agreement result in feedback information, and sending the feedback information to the first type of NFC equipment;
and determining the waveform of the communication signal according to the waveform protocol command.
8. The method of claim 7, further comprising:
and after the waveform of the communication signal is determined, the communication signal is utilized to carry out NFC communication with the first class of NFC equipment.
9. An NFC communications apparatus, the apparatus being disposed in a first type of NFC device, the apparatus comprising:
the description information determining module is used for determining a target NFC protocol and determining waveform description information corresponding to the first class of NFC equipment according to the target NFC protocol;
a protocol instruction determining module for determining a waveform protocol instruction according to the waveform description information; sending the waveform protocol instruction to a second NFC device corresponding to the first NFC device;
an activation instruction determining module, configured to send an activation instruction to the second type of NFC device after sending the waveform agreement instruction, so that the second type of NFC device replies feedback information;
and the agreement result determining module is used for determining an agreement result corresponding to the waveform agreement instruction according to the feedback information of the second type of NFC equipment.
10. An NFC communications apparatus, wherein the apparatus is disposed in a second class of NFC device, the apparatus comprising:
the receiving module is used for receiving a waveform protocol instruction of the first type of NFC equipment and determining a protocol result according to the waveform protocol instruction; receiving an activation instruction of the first type of NFC device;
the sending module is used for responding to the activation instruction, carrying the agreement result in feedback information, and sending the feedback information to the first type of NFC equipment;
and the waveform adjusting module is used for determining the waveform of the communication signal according to the waveform protocol instruction.
11. A computer-readable storage medium storing a computer program for executing the NFC communication method according to any one of claims 1 to 6.
12. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the NFC communication method according to any one of claims 1 to 6.
13. A computer-readable storage medium storing a computer program for executing the NFC communication method according to any one of claims 7 to 8.
14. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the NFC communication method according to any one of claims 7 to 8.
CN202211024563.5A 2022-08-25 2022-08-25 NFC communication method, NFC communication device, readable medium and electronic equipment Active CN115102583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211024563.5A CN115102583B (en) 2022-08-25 2022-08-25 NFC communication method, NFC communication device, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211024563.5A CN115102583B (en) 2022-08-25 2022-08-25 NFC communication method, NFC communication device, readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115102583A true CN115102583A (en) 2022-09-23
CN115102583B CN115102583B (en) 2022-10-25

Family

ID=83300715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211024563.5A Active CN115102583B (en) 2022-08-25 2022-08-25 NFC communication method, NFC communication device, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115102583B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115720349A (en) * 2023-01-09 2023-02-28 北京紫光青藤微***有限公司 Method and device for adjusting frame delay time of near field communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662808A (en) * 2012-09-27 2015-05-27 高通股份有限公司 Pulse shaping for generating nfc initiator transmit waveform
US20180020338A1 (en) * 2016-07-13 2018-01-18 Stmicroelectronics International N.V. Method for detecting an adjacent active near-field communication device
CN113329379A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Communication method, device and system based on NFC
CN113965228A (en) * 2021-10-08 2022-01-21 深圳市汇顶科技股份有限公司 Method for expanding NFC card simulation function, NFC expansion device and NFC terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662808A (en) * 2012-09-27 2015-05-27 高通股份有限公司 Pulse shaping for generating nfc initiator transmit waveform
US20180020338A1 (en) * 2016-07-13 2018-01-18 Stmicroelectronics International N.V. Method for detecting an adjacent active near-field communication device
CN113329379A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Communication method, device and system based on NFC
CN113965228A (en) * 2021-10-08 2022-01-21 深圳市汇顶科技股份有限公司 Method for expanding NFC card simulation function, NFC expansion device and NFC terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115720349A (en) * 2023-01-09 2023-02-28 北京紫光青藤微***有限公司 Method and device for adjusting frame delay time of near field communication
CN115720349B (en) * 2023-01-09 2023-06-20 北京紫光青藤微***有限公司 Frame delay time adjustment method and device for near field communication

Also Published As

Publication number Publication date
CN115102583B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN109361703B (en) Voice equipment binding method, device, equipment and computer readable medium
CN115102583B (en) NFC communication method, NFC communication device, readable medium and electronic equipment
US20220335002A1 (en) Control Method and Apparatus
CN112527709B (en) PCIe expansion switching system, method, electronic equipment and storage medium
CN111880916A (en) Multi-drawing task processing method, device, terminal, medium and host in GPU
CN113515420B (en) Test method and test system
CN114826542A (en) Data transmission method, device, equipment and medium based on asynchronous serial communication
CN113010214B (en) BIOS option setting method, system and storage medium
US9560169B2 (en) Method for managing communication between an electronic device, for example a contactless chip card, and a communication apparatus, for example a reader, and corresponding electronic device
CN111654336B (en) Method, device and equipment for determining transmission power
WO2021047561A1 (en) Method and apparatus for migrating subscriber subscription parameter set profile, subscription manager-data preparation+, and operator background system
CN112422485B (en) Communication method and device of transmission control protocol
CN111147597A (en) File transmission method, terminal, electronic device and storage medium
JP6480082B2 (en) Subscriber identification module (SIM) access profile (SAP) improvements
CN110580172A (en) Configuration rule verification method and device, storage medium and electronic device
CN113535578A (en) CTS (clear to send) testing method, device and testing equipment
CN112423284A (en) Zigbee equipment pairing method and device, gateway, electronic equipment and storage medium
CN113746932A (en) Network request merging method and device, electronic device and computer program product
CN113721994A (en) PCIe enumeration method, system, device and storage medium
CN114356541B (en) Configuration method, device and system of computing core and electronic equipment
CN115720349B (en) Frame delay time adjustment method and device for near field communication
CN112770277A (en) Forwarding number verification method and device, mobile terminal and computing equipment
CN115800992B (en) Splitting circuit, splitting method, splitting device, splitting equipment and splitting storage medium for handshake signals
CN106470414B (en) Method and device for accessing SIM card
CN115278807A (en) Routing method and device in NFC communication

Legal Events

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