CN113115296A - Near field communication method and related device - Google Patents

Near field communication method and related device Download PDF

Info

Publication number
CN113115296A
CN113115296A CN202110448510.5A CN202110448510A CN113115296A CN 113115296 A CN113115296 A CN 113115296A CN 202110448510 A CN202110448510 A CN 202110448510A CN 113115296 A CN113115296 A CN 113115296A
Authority
CN
China
Prior art keywords
signal
threshold value
environment
near field
field communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110448510.5A
Other languages
Chinese (zh)
Other versions
CN113115296B (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.)
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 CN202110448510.5A priority Critical patent/CN113115296B/en
Publication of CN113115296A publication Critical patent/CN113115296A/en
Application granted granted Critical
Publication of CN113115296B publication Critical patent/CN113115296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a near field communication method and a related device, firstly, detecting a first signal intensity of a first environment signal; then, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field intensity state; and then, when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity. The current environment field intensity state can be judged according to the intensity of the external signal, and the receiving threshold value is flexibly switched according to the current environment field intensity state, so that the stability and flexibility of near field communication are improved.

Description

Near field communication method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a near field communication method and a related apparatus.
Background
Near Field Communication (NFC) is an emerging technology, and devices using the NFC technology can exchange data when being close to each other, and the technology is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection and interworking technology, and by integrating functions of an induction card reader, an induction card and point-to-point Communication on a single chip, applications such as mobile payment, electronic ticketing, door access control, mobile identity recognition and anti-counterfeiting can be realized when the technology is applied to mobile devices.
The existing near field communication is often interfered by the outside and is not stable enough.
Disclosure of Invention
Based on the above problems, the present application provides a near field communication method and a related apparatus, which can dynamically adjust a receiving threshold value of the near field communication method based on the intensity of an environmental signal, thereby improving the stability and flexibility of the near field communication.
In a first aspect, an embodiment of the present application provides a near field communication method, where the method includes:
detecting a first signal strength of a first ambient signal;
when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field strength state;
and when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity.
In a second aspect, an embodiment of the present application provides a near field communication apparatus, including:
a signal detection unit for detecting a first signal strength of the first ambient signal;
the field intensity determining unit is used for demodulating the first environment signal to determine an environment field intensity state when the first signal intensity is greater than or equal to a first receiving threshold value;
and the threshold adjusting unit is used for adjusting the first receiving threshold value to a second receiving threshold value and transmitting the near field communication signal when the environment field intensity state is that no external near field communication field intensity exists, wherein the second receiving threshold value is greater than the first signal intensity.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and one or more programs, stored in the memory and configured to be executed by the processor, the program including instructions for performing the steps in the method according to any one of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any one of the first aspect of the embodiments of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the near field communication method and the related apparatus, first, a first signal strength of a first environmental signal is detected; then, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field intensity state; and then, when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity. The current environment field intensity state can be judged according to the intensity of the external signal, and the receiving threshold value is flexibly switched according to the current environment field intensity state, so that the stability and flexibility of near field communication are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a near field communication method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a near field communication method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another near field communication method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating an application of dynamically configuring a receiving threshold according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a block diagram illustrating functional units of a near field communication device according to an embodiment of the present disclosure;
fig. 7 is a block diagram illustrating functional units of another near field communication device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, 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.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
First, a description is given of a background technology in the embodiment of the present application, and the NFC technology can be applied to interaction between multiple NFC devices to implement multiple functions such as electronic payment, identity authentication, ticketing, data exchange, anti-counterfeiting, and advertisement. According to the existing NFC Forum rule, before transmitting an NFC signal, an NFC device needs to monitor whether other NFC field intensities exist in an external environment, if so, the NFC field intensities cannot be transmitted, and the purpose of doing so is to avoid conflict generated when the NFC device transmits the NFC signal. According to this provision, the NFC device may preset a reception threshold value for comparison with the strength of the external signal to determine whether there are other NFC field strengths in the current environment. Because the existing receiving threshold values are all static parameters, the receiving threshold values are easily interfered by other noises during near field communication, so that the final judgment result is inaccurate, and the user experience is influenced.
Based on the above problems, embodiments of the present application provide a near field communication method and a related apparatus, which can determine a current environmental field strength state according to the strength of an external signal, and flexibly switch a receiving threshold value according to the current environmental field strength state, thereby improving stability and flexibility of near field communication.
Fig. 1 is a schematic view of an application scenario of a near field communication method provided in the embodiment of the present application, and includes a first device 110, a second device 120, and other devices 130, where the first device 110 and the second device 120 include various handheld devices with NFC chips and having a wireless communication function, a vehicle-mounted device, a wireless headset, a computing device, or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), a Mobile Station (MS), a terminal device (terminal device), and the like, and the electronic device may be, for example, a smart phone, a tablet computer, a wearable device, and the like. The first device 110 may transmit near field communication signals with the second device 120, which generally includes three near field communication modes, and before describing the three near field communication modes, the concepts of the master device and the slave device are described.
The master device needs to be powered on, can provide a radio frequency field and transmits data to the slave device, and the transmission rate needs to be selected from one of 106kbps, 212kbps and 424 kbps; the slave device does not generate a radio frequency field, so power supply is not needed, the slave device can convert the radio frequency field generated by the master device into electric energy to supply power to the slave device, and after receiving data sent by the master device, the slave device data can be transmitted back to the master device at the same speed by using a load modulation technology. Note that the slave device also needs to supply power when transmitting data to the master device.
Based on the above explanation, three near field communication modes can be explained:
first, the first device 110 transmits a radio frequency field as a master device and transmits an NFC signal to the second device 120 as a slave device; second, the second device 120 transmits a radio frequency field as a master device, and transmits an NFC signal to the first device 110 as a slave device; third, the first device 110 and the second device 120 transmit NFC signals to each other. It is understood that the near field communication method in the embodiment of the present application may have the first device 110 or the second device 120 as a main body.
In this embodiment, before performing near field communication interaction between the first device 110 and the second device 120, the environmental field strength of the current environment may be detected, the other devices 130 in the current environment may include a plurality of devices, where signals output by the devices include interference signals or noise signals, and when the types of the signals output by the devices are interference signals, the first device 110 or the second device 120 may determine that the external near field communication field strength exists in the current environment according to the interference signals output by the devices, and the near field communication interaction needs to be stopped to avoid collision; when the type of the signal externally output by the first device 110 or the second device 120 is a noise signal, the first device or the second device may determine that no external near field communication field strength exists in the current environment according to the noise signal externally output by the second device, and at this time, the receiving threshold value may be dynamically adjusted to perform near field communication interaction, so as to eliminate interference of the noise signal.
It should be noted that the noise signal may not come from other devices 130, and the above application scenario is only an exemplary illustration, and the components thereof are only one possible application scenario and do not represent a limitation of the present application.
Therefore, through the application scene, the electronic equipment related to the near field communication can judge the current environment field intensity state according to the intensity of the external signal, and flexibly switch the receiving threshold value according to the current environment field intensity state, so that the stability and flexibility of the near field communication are improved.
A near field communication method in the embodiment of the present application is described below with reference to fig. 2, where fig. 2 is a schematic flow chart of the near field communication method provided in the embodiment of the present application, and specifically includes the following steps:
in step 201, a first signal strength of a first environmental signal is detected.
The first environment signal represents a signal of a current environment at a first time, and the first environment signal may include a voltage signal, a near field communication signal, and the like, which is not described herein again. The first signal strength is expressed in units of decibel-milliwatt dbm.
Wherein the probe frame may be transmitted at the first period through the near field communication chip, and the probe frame is described here as:
in near field communication, different transmission rates have different frame structures. At a rate of 106kbps there are three frame structures: the short frame is used for the initialization process of communication and consists of three parts of a start bit, a 7-bit instruction code and an end bit in sequence; the standard frame is used for data exchange and consists of a start bit, an n-byte instruction or data and an end bit sequence; and the detection frame is used for detecting the collision of the communication of a plurality of devices at the same time. And the frame structures of the rates 212kbps and 424kbps are the same, and are composed of a preamble, a synchronization code, a payload length, a payload, and a check code in order. And will not be described in detail herein.
In this way, the sounding frame is transmitted at a first period, which can be used for detecting the first signal strength of the first environment signal of the current environment, and the time interval of the first period is preset, for example, 300 ms.
It can be seen that by detecting the first signal strength of the first environmental signal, a reference can be provided for the subsequent dynamic adjustment of the reception threshold.
Step 202, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field strength state.
The first receiving threshold is a set initial threshold, and is used for comparing with the signal strength of the current environment. The near field communication chip may determine a signal having a signal strength below a first receive threshold as a noise signal and not respond to the noise signal, the noise signal being unable to interfere with the near field communication interaction. And under another condition, that is, when the strength of the first signal is greater than or equal to the first receiving threshold, the near field communication chip triggers a demodulation frame to demodulate the first environment signal to determine the environment field strength state, where the environment field strength state may be that no external near field communication field strength exists or that an external near field communication field strength exists, and in short, whether other radio frequency fields exist outside.
In particular, the demodulation frame is used to demodulate the first environmental signal to determine a signal type of the first environmental signal. The demodulation process needs to be completed in a second period, and the upper limit of times exists, if the demodulation process is carried out for three times, the first environment signal cannot be demodulated if the demodulation process is failed for three times continuously, the signal type of the first environment signal can be determined to be a noise signal, and the environment field intensity state at the moment is that no external near field communication field intensity exists; when the first environment signal is successfully demodulated within the preset times, the signal type of the first environment signal can be determined to be a near field communication interference signal, and the environment field intensity state at this time is the existence of the external near field communication field intensity.
The noise signal is a voltage signal, and the interference signal may be a wireless signal or a near field communication signal, which is not particularly limited herein. It is understood that the entire demodulation process, i.e., the second period, is less than the time interval of the first period, and the second period is located within the first period.
Therefore, the environment field intensity state is determined by demodulating the first environment signal, the situation that an external radio frequency field exists when the environment signal intensity is larger than a receiving threshold value can be avoided, and the stability and flexibility of near field communication are improved.
Step 203, when the environmental field strength state is that no external near field communication field strength exists, adjusting the first receiving threshold value to a second receiving threshold value, and transmitting a near field communication signal.
The second receiving threshold is greater than the first signal strength, and the amplitude of the second receiving threshold greater than the first signal strength is not specifically limited herein. Since no external near field communication field strength exists at this time, near field communication interaction can be started without worrying about collision. After the first receiving threshold value is adjusted to the second receiving threshold value, the noise signal of the first signal strength is not responded to any more subsequently, the influence of the noise signal can be filtered by dynamically adjusting the receiving threshold value, and the stability and the flexibility of near field communication are improved.
Next, another near field communication method in the embodiment of the present application is described with reference to fig. 3, where fig. 3 is a schematic flow chart of another near field communication method provided in the embodiment of the present application, and specifically includes the following steps:
step 301, detecting a third signal strength of a third environment signal in a signal shielding environment according to a preset rule.
Wherein, above-mentioned predetermined rule can include that preset the detection number of times or predetermine detection duration, above-mentioned external signal shielding environment can be signal shielding case, and electronic equipment self opens after the flight mode, lets the near field communication chip of self detect signal intensity, and the signal at this moment is the third environmental signal, and signal intensity at this moment is the third signal intensity. It is understood that, in order to ensure the accuracy of the detection, a preset number of times of detection or a preset detection duration may be set, and all detected third signal intensities may be recorded.
Step 302, determining the first receiving threshold value according to the third signal strength.
Wherein, the maximum value of the recorded third signal strength can be screened out, a first receiving threshold value is set based on the maximum value and a preset margin, and the first receiving threshold value is an initial threshold value of the electronic device, that is:
first receiving threshold value is third signal intensity (maximum value) + preset margin
It can be understood that the device difference of each electronic device may cause the received signal strength to be different, and if the static receiving threshold is uniformly set, it may occur that a certain device regards the current signal as a noise signal and another device regards the current signal as an interference signal, in order to avoid the above situation, it is very important to perform personalized setting of the receiving threshold of step 301 and step 302 on each electronic device, so that the accuracy of near field communication interaction in detecting an external radio frequency field may be greatly improved.
Step 303, detecting a first signal strength of the first environmental signal.
Step 304, transmitting a near field communication signal when the first signal strength is smaller than a first receiving threshold value.
When the first signal strength is smaller than a first receiving threshold value, it may be determined that the first environmental signal is a noise signal at this time, and the near field communication interaction may not be affected.
Step 305, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field strength state.
And step 306, when the environment field intensity state is that an external near field communication field intensity exists, maintaining the first receiving threshold value, and not transmitting the near field communication signal.
Because of the existence of the external near field communication field strength, the near field communication interaction can be interfered, so that the first receiving threshold value is not required to be adjusted, and the near field communication interaction is only required to be stopped.
Step 307, when the environmental field strength state is that no external near field communication field strength exists, adjusting the first receiving threshold value to a second receiving threshold value, and transmitting a near field communication signal.
In step 308, a second signal strength of the current second ambient signal is detected.
The second environment signal represents a signal of the current environment at a second time, and a time interval between the second time and the first time is the first period. The sounding frame may also be transmitted at a second time to detect a second signal strength of the second environment signal, which is not described herein again.
Therefore, by detecting the second signal strength of the current second environment signal, it can be determined whether the signal strength of the current environment is lower than the first receiving threshold value after the receiving threshold value is adjusted, so that the receiving threshold value can be continuously and dynamically adjusted subsequently, and the stability and flexibility of near field communication are improved.
Step 309, when the second signal strength is smaller than the first receiving threshold, adjusting the second receiving threshold to the first receiving threshold, and transmitting the near field communication signal.
When the second signal strength is smaller than the first receiving threshold, it may be determined that the high receiving threshold does not need to be maintained at this time, and in order to improve the stability of the nfc, the second receiving threshold may be adjusted to the first receiving threshold. It is understood that, if the second signal strength is greater than or equal to the first receiving threshold, the second receiving threshold may be maintained to avoid being affected by the noise signal. Therefore, since the strength of the second signal is already smaller than the first receiving threshold value, if the second receiving threshold value is not adjusted to the first receiving threshold value, the problem that the noise signal cannot be identified may occur, and the stability of the near field communication is greatly improved by adjusting the receiving threshold value to avoid the problem.
In summary, according to the method, the electronic device can be calibrated in advance to determine the first receiving threshold, and the receiving threshold of the electronic device can be dynamically adjusted according to the environment signal of the external environment, so that the stability and flexibility of the near field communication are greatly improved.
The steps that are not described in detail above can refer to the steps of the method described in fig. 2, and are not described in detail herein.
For convenience of understanding, an example of a near field communication method in the embodiment of the present application is described below with reference to fig. 4, where fig. 4 is an application schematic diagram of a dynamically configured receiving threshold provided in the embodiment of the present application, and taking a mobile phone as an example, when the mobile phone is in a stationary state, noise signals sent by devices such as a motherboard and the like inside the mobile phone are low, at this time, the signal intensity of an environmental signal is smaller than a first receiving threshold, an NFC chip of the mobile phone may transmit a detection frame to identify that no external near field communication field strength exists in the current environment, at this time, no response is needed, and subsequent near field communication interaction is normally performed;
in the process of a mobile phone call, because a noise signal sent by a device such as a main board becomes larger, an NFC chip of the mobile phone may send a probe frame to detect that the signal intensity of an environmental signal is greater than a first receiving threshold, at this time, a demodulation frame may be triggered to demodulate the currently received environmental signal, a time interval of the demodulation frame (e.g., t1 in the diagram, and if t1 is 20ms) is smaller than a time interval of the probe frame (e.g., t in the diagram, and if t is 300ms), because the noise signal is generated in the call process, the NFC chip cannot correctly demodulate, and after three times of demodulation, the demodulation still fails, the environmental signal may be determined to be a noise signal that cannot be demodulated, and the noise signal has no influence on the near field communication, it is determined that there is no external near field communication field strength in the current environment at this time, and in order to eliminate the interference of the noise signal, the receiving threshold may be adjusted from the, the second receiving threshold value is larger than the intensity of the noise signal at the moment;
then, after the mobile phone call is finished, because the noise signals sent by the devices such as the main board and the like are reduced, the NFC chip transmits the detection frame again to detect that the signal intensity of the current environment is lower than the first receiving threshold value, and at the moment, the receiving threshold value can be adjusted from the second receiving threshold value to the first threshold value, and subsequent near field communication interaction is carried out;
subsequently, when the mobile phone approaches the POS machine, because the POS machine may generate a radio frequency field, the NFC chip transmits a probe frame to detect that the signal strength of the current environment is greater than a first receiving threshold, at this time, the probe frame may be triggered to demodulate the currently received environment signal, at this time, the signal may be correctly demodulated, it may be determined that an external near field communication field strength exists in the current environment, the mobile phone stops transmitting the near field communication signal, the receiving threshold is kept unchanged as the first receiving threshold, and when the mobile phone leaves the POS machine and is in a standing state again, it is detected that the current environment signal is lower than the first receiving threshold, the near field communication signal continues to be transmitted.
It will be understood that the above examples are not intended to limit the embodiments of the present application.
As can be seen from the above example, the near field communication method in the embodiment of the present application first detects the first signal strength of the first environment signal; then, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field intensity state; and then, when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity. The current environment field intensity state can be judged according to the intensity of the external signal, and the receiving threshold value is flexibly switched according to the current environment field intensity state, so that the stability and flexibility of near field communication are improved.
Fig. 5 is a schematic structural diagram of an electronic device provided in the embodiment of the present application, and as shown in fig. 5, the electronic device 500 includes a processor 501, a communication interface 502, a memory 503, and an NFC chip 504, where the processor 501, the communication interface 502, the memory 503, and the NFC chip 504 are connected to each other, where the electronic device 500 may further include a bus 505, and the processor 501, the communication interface 502, the memory 503, and the NFC chip 504 may be connected to each other through the bus 505, and the bus 505 may be a Peripheral Component Interconnect Standard (PCI) bus or an Extended Industrial Standard Architecture (EISA) bus. The bus 505 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The memory 503 is configured to store a computer program, which includes program instructions, and the NFC chip 504 and the processor 501 are configured to call the program instructions to execute all or part of the method described in fig. 2 or fig. 3.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each function module according to each function, a near field communication device in the embodiment of the present application is described below with reference to fig. 6, where fig. 6 is a block diagram of functional units of a near field communication device provided in the embodiment of the present application, and the near field communication device 600 includes:
a signal detection unit 610 for detecting a first signal strength of the first ambient signal;
a field strength determining unit 620, configured to demodulate the first environmental signal to determine an environmental field strength state when the first signal strength is greater than or equal to a first receiving threshold;
a threshold adjusting unit 630, configured to adjust the first receiving threshold to a second receiving threshold when the environmental field strength state is that no external near field communication field strength exists, and transmit a near field communication signal, where the second receiving threshold is greater than the first signal strength.
Firstly, detecting a first signal strength of a first environment signal; then, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field intensity state; and then, when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity. The current environment field intensity state can be judged according to the intensity of the external signal, and the receiving threshold value is flexibly switched according to the current environment field intensity state, so that the stability and flexibility of near field communication are improved.
In the case of using integrated units, the following describes in detail another near field communication apparatus 700 in this embodiment with reference to fig. 7, where the near field communication apparatus 700 includes a processing unit 701 and a communication unit 702, where the processing unit 701 is configured to execute any step in the above method embodiments, and when performing data transmission such as sending, the communication unit 702 is optionally invoked to complete the corresponding operation.
The near field communication device 700 may further comprise a storage unit 703 for storing program codes and data. The processing unit 701 may be a processor and the storage unit 703 may be a memory.
The processing unit 701 is specifically configured to:
detecting a first signal strength of a first ambient signal;
when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field strength state;
and when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity.
It can be seen that, first, a first signal strength of a first ambient signal is detected; then, when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field intensity state; and then, when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity. The current environment field intensity state can be judged according to the intensity of the external signal, and the receiving threshold value is flexibly switched according to the current environment field intensity state, so that the stability and flexibility of near field communication are improved.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again. Both the near field communication apparatus 600 and the near field communication apparatus 700 described above can perform all of the near field communication methods included in the above embodiments.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
The embodiment of the present application further provides a near field communication chip, where the near field communication chip may be used to execute all or part of the steps of the near field communication method in the embodiment of the present application.
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 above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric 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 may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A near field communication method, the method comprising:
detecting a first signal strength of a first ambient signal;
when the first signal strength is greater than or equal to a first receiving threshold value, demodulating the first environment signal to determine an environment field strength state;
and when the environment field intensity state is that no external near field communication field intensity exists, adjusting the first receiving threshold value to be a second receiving threshold value, and transmitting a near field communication signal, wherein the second receiving threshold value is greater than the first signal intensity.
2. The method of claim 1, wherein after demodulating the first ambient signal to determine the ambient field strength state of the first ambient signal, the method further comprises:
and when the environment field intensity state is the existence of external near field communication field intensity, maintaining the first receiving threshold value and not transmitting the near field communication signal.
3. The method of claim 1 or 2, wherein detecting the first signal strength of the first environmental signal comprises:
transmitting a sounding frame at a first period to determine the first signal strength of the first ambient signal within a preset range.
4. The method of claim 3, wherein demodulating the first ambient signal to determine an ambient field strength state comprises:
triggering a demodulation frame when the first signal strength is greater than or equal to the first receiving threshold value, wherein the demodulation frame is used for demodulating the first environment signal to determine the signal type of the first environment signal;
when the first environment signal is failed to be demodulated within the preset times of a second period, determining that the first environment signal is a noise signal, and the environment field intensity state is that no external near field communication field intensity exists, wherein the second period is smaller than the first period;
and when the first environment signal is successfully demodulated within the preset times of the second period, determining that the signal type of the first environment signal is a near field communication interference signal and the environment field intensity state is the existence of external near field communication field intensity.
5. The method of claim 1, wherein after adjusting the first receive threshold to the second receive threshold and transmitting a near field communication signal, the method further comprises:
detecting a second signal strength of a second ambient signal;
and when the second signal strength is smaller than the first receiving threshold value, adjusting the second receiving threshold value to the first receiving threshold value, and transmitting the near field communication signal.
6. The method of claim 1, wherein prior to detecting the first signal strength of the first environmental signal, the method further comprises:
detecting a third signal intensity of a third environment signal in a signal shielding environment according to a preset rule, wherein the preset rule comprises a preset detection time or a preset detection duration;
and determining the first receiving threshold value according to the third signal strength.
7. The method of claim 6, wherein the determining the first receive threshold value based on the third signal strength comprises:
screening out the maximum value in the third signal intensity;
and determining the first receiving threshold value according to a preset margin and the maximum value.
8. A near field communication apparatus, characterized in that the apparatus comprises:
a signal detection unit for detecting a first signal strength of the first ambient signal;
the field intensity determining unit is used for demodulating the first environment signal to determine an environment field intensity state when the first signal intensity is greater than or equal to a first receiving threshold value;
and the threshold adjusting unit is used for adjusting the first receiving threshold value to a second receiving threshold value and transmitting the near field communication signal when the environment field intensity state is that no external near field communication field intensity exists, wherein the second receiving threshold value is greater than the first signal intensity.
9. An electronic device comprising a processor, a memory, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-7.
10. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any of claims 1-7.
CN202110448510.5A 2021-04-25 2021-04-25 Near field communication method and related device Active CN113115296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110448510.5A CN113115296B (en) 2021-04-25 2021-04-25 Near field communication method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110448510.5A CN113115296B (en) 2021-04-25 2021-04-25 Near field communication method and related device

Publications (2)

Publication Number Publication Date
CN113115296A true CN113115296A (en) 2021-07-13
CN113115296B CN113115296B (en) 2022-10-18

Family

ID=76720017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110448510.5A Active CN113115296B (en) 2021-04-25 2021-04-25 Near field communication method and related device

Country Status (1)

Country Link
CN (1) CN113115296B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115113135A (en) * 2022-06-21 2022-09-27 Oppo广东移动通信有限公司 Method for determining angle of arrival and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117775A (en) * 2011-09-23 2013-05-22 美国博通公司 Varying load modulation in an NFC-enabled device over a range of field strength
WO2014037888A1 (en) * 2012-09-07 2014-03-13 Koninklijke Philips N.V. User feedback for near field communications
US20150178525A1 (en) * 2013-03-07 2015-06-25 Samsung Electronics Co., Ltd. Contactless communication device and user device including the same
CN108449742A (en) * 2018-03-13 2018-08-24 北京邮电大学 A kind of aid demodulation system and method for near-field communication
CN108964721A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 A kind of interference treating method and apparatus
CN112311424A (en) * 2019-08-01 2021-02-02 恩智浦有限公司 Dynamic sensitivity control in near field communication receivers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117775A (en) * 2011-09-23 2013-05-22 美国博通公司 Varying load modulation in an NFC-enabled device over a range of field strength
WO2014037888A1 (en) * 2012-09-07 2014-03-13 Koninklijke Philips N.V. User feedback for near field communications
US20150178525A1 (en) * 2013-03-07 2015-06-25 Samsung Electronics Co., Ltd. Contactless communication device and user device including the same
CN108964721A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 A kind of interference treating method and apparatus
CN108449742A (en) * 2018-03-13 2018-08-24 北京邮电大学 A kind of aid demodulation system and method for near-field communication
CN112311424A (en) * 2019-08-01 2021-02-02 恩智浦有限公司 Dynamic sensitivity control in near field communication receivers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115113135A (en) * 2022-06-21 2022-09-27 Oppo广东移动通信有限公司 Method for determining angle of arrival and related device

Also Published As

Publication number Publication date
CN113115296B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
EP3211567B1 (en) Mobile radio communication apparatus
US8630585B2 (en) Method and apparatus for communicating with external interface device using contactless
CN105813115B (en) WIFI network configuration method and device
US8442586B2 (en) Determining USB/ISO interface and power supply voltage in mobile device
US8843065B2 (en) Method and device for managing information exchange between for example a NFC controller and a set of at least two secure elements
EP3139667B1 (en) Hybrid rf polling loop for nfc device and retry mechanism
CN102215050B (en) Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
CN112738745B (en) Method for controlling network connection and related product
US9967798B2 (en) NFC routing method
CN113115296B (en) Near field communication method and related device
EP3633880A1 (en) Radio frequency interference processing method and electronic device
US9697396B2 (en) Interactive processing method and device and electronic apparatus
CN109257732B (en) Equipment control method and device and electronic equipment
CN104994224A (en) Antitheft method and device for mobile terminal
US6388562B1 (en) Contactless IC card communication system and related method
CN104980420A (en) Business processing method, device, terminal and server
CN112329904A (en) Mobile phone user identification card, face identification device and identification method
CN103916856A (en) Method for establishing wireless communication, user equipment and access point
CN110493455B (en) Equipment control method and device and mobile terminal
CN116887236A (en) Near field communication interaction method, user terminal, card swiping terminal, medium and product
US9547781B2 (en) Method for recognizing tag in environment using same frequency band and NFC device for the same
CN113766406B (en) Earphone testing method, system and device
CN107659341B (en) Near field communication-type B device
US9191052B2 (en) Universal subscriber identification module card, including security chip, for mobile terminal and communication method using the same
CN104077155B (en) The startup of application program in mobile device

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