CN110224725B - Near field communication method, terminal and storage medium - Google Patents

Near field communication method, terminal and storage medium Download PDF

Info

Publication number
CN110224725B
CN110224725B CN201910464720.6A CN201910464720A CN110224725B CN 110224725 B CN110224725 B CN 110224725B CN 201910464720 A CN201910464720 A CN 201910464720A CN 110224725 B CN110224725 B CN 110224725B
Authority
CN
China
Prior art keywords
magnetic field
terminal
real
communication
target area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910464720.6A
Other languages
Chinese (zh)
Other versions
CN110224725A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910464720.6A priority Critical patent/CN110224725B/en
Publication of CN110224725A publication Critical patent/CN110224725A/en
Application granted granted Critical
Publication of CN110224725B publication Critical patent/CN110224725B/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/20Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by the transmission technique; characterised by the transmission medium
    • H04B5/24Inductive coupling
    • H04B5/26Inductive coupling using coils
    • 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/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

The embodiment of the application discloses a near field communication method, a terminal and a storage medium, wherein the terminal comprises an NFC coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the near field communication method comprises the following steps: detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying a communication object; determining a target area corresponding to a communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil.

Description

Near field communication method, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of wireless communication, in particular to a near field communication method, a terminal and a storage medium.
Background
Near Field Communication (NFC), also called short-range wireless Communication, is an emerging short-range high-Frequency wireless Communication technology, which is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection technology. Specifically, NFC allows contactless point-to-point data transmission between electronic devices, exchanging data.
When communicating with other equipment, need guarantee the NFC coil of terminal and the coincidence of the NFC coil position of other equipment, if the position between the NFC coil of the two is misaligned, will exert an influence to communication effect, lead to the defect of unable communication even to communication efficiency has been reduced.
Disclosure of Invention
The embodiment of the application provides a near field communication method, a terminal and a storage medium, which can overcome the defect that communication cannot be performed due to the fact that positions of NFC coils are not overlapped, so that the communication efficiency is improved, and the intelligence of the terminal is improved.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a near field communication method, which is applied to a terminal, wherein the terminal comprises a Near Field Communication (NFC) coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the method comprises the following steps:
detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object;
determining a target area corresponding to the communication object according to the real-time magnetic field data;
driving the connecting rod structure according to the target area to realize the movement of the NFC coil;
and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil.
Optionally, the terminal is configured with a detection device, and the detecting real-time magnetic field data includes:
and carrying out real-time detection through the detection device to obtain the real-time magnetic field data.
Optionally, the real-time magnetic field data includes different magnetic field strengths corresponding to different preset positions, where one preset position corresponds to one magnetic field strength.
Optionally, the determining a target region corresponding to the communication object according to the real-time magnetic field data includes:
when the different magnetic field strengths corresponding to the different preset positions are not equal, determining a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy; the preset selection strategy is used for determining the real-time position of the communication object;
and determining the target area according to the preset position corresponding to the target magnetic field strength.
Optionally, the determining a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy includes:
determining an intensity threshold value according to the different magnetic field strengths;
determining a magnetic field strength in the real-time magnetic field data that is greater than the strength threshold as the target magnetic field strength.
Optionally, the determining a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy includes:
sorting the different magnetic field strengths according to the strength to obtain a strength list;
determining the target magnetic field strength from the strength list.
Optionally, the driving the link structure according to the target area includes:
determining a moving distance corresponding to the connecting rod structure according to the target area;
and driving the connecting rod structure according to the moving distance.
Optionally, the performing, by the NFC coil, near field communication with the communication object in the target area includes:
starting an NFC function;
and establishing connection with the communication object in the target area through the NFC function so as to realize the near field communication through the NFC coil.
Optionally, after the NFC coil performs near field communication with the communication object in the target area, the method further includes:
and closing the NFC function.
The embodiment of the application provides a terminal, the terminal includes: a detection unit, a determination unit, a drive unit and a communication unit,
the detection unit is used for detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object;
the determining unit is used for determining a target area corresponding to the communication object according to the real-time magnetic field data;
the driving unit is used for driving the connecting rod structure according to the target area so as to realize the movement of the NFC coil; wherein the NFC coil is disposed on the link structure;
the communication unit is configured to perform near field communication with the communication object in the target area through the NFC coil after the NFC coil is moved to the target area.
Optionally, the real-time magnetic field data includes different magnetic field strengths corresponding to different preset positions, where one preset position corresponds to one magnetic field strength;
the determining unit is specifically configured to determine a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy when the different magnetic field strengths corresponding to the different preset positions are not equal to each other; the preset selection strategy is used for determining the real-time position of the communication object; and determining the target area according to the preset position corresponding to the target magnetic field strength.
Optionally, the driving unit is specifically configured to determine a moving distance corresponding to the link structure according to the target area; and driving the link structure according to the moving distance.
Optionally, the communication unit is specifically configured to start an NFC function; and establishing a connection with the communication object in the target area through the NFC function to realize the near field communication through the NFC coil.
The embodiment of the application provides a terminal, which comprises a connecting rod structure, an NFC coil, a detection device, a processor and a memory, wherein the memory stores executable instructions of the processor, and when the instructions are executed by the processor, the near field communication method is realized.
The embodiment of the application provides a computer readable storage medium, on which a program is stored, and the program is applied to a terminal, and when the program is executed by a processor, the near field communication method is realized.
The embodiment of the application provides a near field communication method, a terminal and a storage medium, wherein the near field communication method is applied to the terminal, the terminal comprises an NFC coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the near field communication method comprises the following steps: detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying a communication object; determining a target area corresponding to a communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil. That is to say, in the embodiment of this application, the terminal can discern the communication object according to the real-time magnetic field data that real-time detection obtained, determine can carry out near field communication's target area with the communication object, then the connecting rod structure of drive configuration, because the NFC coil sets up on connecting rod structure, therefore the NFC coil can remove to the target area through connecting rod structure, the terminal alright carry out near field communication with the communication object in the target area, and then can overcome the unable defect of communication that position misalignment leads to between terminal NFC coil and the communication object NFC coil, thereby communication efficiency is improved, the intelligence at promotion terminal.
Drawings
Fig. 1 is a schematic diagram of a passive mode of NFC communication;
fig. 2 is a first diagram of NFC communication;
fig. 3 is a diagram illustrating a second NFC communication scheme;
fig. 4 is a schematic flow chart illustrating an implementation of a near field communication method according to an embodiment of the present application;
FIG. 5 is a schematic view of a detection apparatus;
FIG. 6 is a schematic diagram of a middle frame of a terminal;
FIG. 7 is a schematic illustration of detecting real-time magnetic field data;
FIG. 8 is a schematic view of a driving device;
FIG. 9 is a schematic view of the distance traveled;
fig. 10 is a schematic diagram of NFC coil automatic movement;
fig. 11 is a first schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
NFC is also called near field communication, and is a communication method increasingly used in terminal devices. NFC is a short-range, high-frequency wireless communication technology that allows contactless point-to-point data transmission and exchange of data between electronic devices.
In particular, NFC can exchange data through both active and passive modes. Fig. 1 is a schematic diagram of a passive mode of NFC communication, and as shown in fig. 1, in the passive mode, a device that starts near field communication, also called an initiating device or a master device, the master device may provide a radio frequency field during the whole communication process, and may select any one of transmission speeds of 106kbps, 212kbps, or 424kbps to transmit data to a slave device that does not need to generate the radio frequency field, and the slave device uses a load modulation technique to transmit data back to the master device at the same speed. In the active mode, the initiator and the target need to generate rf fields simultaneously for communication.
NFC is a near field communication technology developed based on RFID technology, and like RFID, NFC information is also transmitted by way of electromagnetic induction coupling in a radio frequency portion of a frequency spectrum, but there is still a great difference between the two. The transmission range of the near field communication is smaller than that of the RFID, the transmission range of the RFID can reach 0-1 m, and the near field communication has the characteristics of low cost, high bandwidth, low energy consumption and the like compared with the RFID due to the adoption of a unique signal attenuation technology.
The NFC antenna in the terminal is a coil structure at a fixed certain position, and forms a corresponding NFC coil, and when the terminal communicates with other equipment through an NFC function, the terminal needs to overlap the corresponding NFC coil with the NFC coil corresponding to other equipment in position, so that near field wireless communication can be carried out. That is to say, when the terminal communicates through NFC, the NFC coil of the terminal needs to be overlapped with the NFC coil of other devices, if the positions between the two NFC coils are not overlapped, that is, if the alignment between two NFC devices that need to communicate is not good, the communication effect will be affected, or even the defect that communication cannot be performed is caused, thereby reducing the communication efficiency. Further, due to structural limitation of the terminal, the effective NFC region cannot be enlarged by enlarging the area of the NFC antenna of the terminal, and therefore the defect that communication cannot be performed due to misalignment of NFC coils cannot be effectively overcome.
Fig. 2 is a first diagram of NFC communication, fig. 3 is a second diagram of NFC communication, and as shown in fig. 2 and fig. 3, both the terminal and the device have an NFC function, both the terminal and the device are configured with an NFC antenna having a coil structure, the terminal has an NFC region P corresponding to the NFC coil, and the device has an NFC region Q corresponding to the NFC coil. When the terminal and the device are in communication, if the NFC region P and the NFC region Q are aligned and overlapped, the terminal and the device can transmit data, however, once the NFC region P and the NFC region Q are not aligned and overlapped, the communication effect between the terminal and the device is affected, and even the terminal and the device cannot communicate with each other.
The near field communication method is applied to the terminal, the terminal can freely move the NFC coil through the connecting rod structure, and the effective area of the NFC coil is greatly expanded. In the embodiment of the application, when the terminal performs near field communication with a communication object, the terminal may identify the distribution of a magnetic field generated by the communication object on the terminal by using an internal integrated sensing device, further determine an optimal communication area, and then move the NFC coil by driving the link structure to move the NFC coil to a position where the magnetic field is strongest, that is, to a target area representing the optimal communication area, so that near field communication may be implemented in the target area, and at this time, near field communication between the terminal and the communication object may be maintained in an optimal state. Therefore, the connecting rod device configured at the terminal can drive the NFC coil to move, so that the terminal can be aligned with the NFC coil of a communication object through free movement of the NFC coil, and the defect that communication cannot be performed due to position misalignment between the NFC coil of the terminal and the NFC coil of the communication object can be overcome, so that the communication efficiency is improved, and the intelligence of the terminal is improved.
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.
An embodiment of the present application provides a near field communication method, which is applied to a terminal, where the terminal may include an NFC coil disposed on a link structure, and the link structure is configured to drive the NFC coil to move. Fig. 4 is a schematic implementation flow diagram of a near field communication method provided in an embodiment of the present application, and as shown in fig. 4, in the embodiment of the present application, a method for implementing vibration by a terminal may include the following steps:
step 101, detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying the communication object.
In the embodiment of the application, the terminal can detect and obtain the real-time magnetic field data. The real-time magnetic field data may be real-time data detected by the terminal and used for representing a distribution condition of a magnetic field outside the terminal, and specifically, the real-time magnetic field data may be used for identifying a communication object.
It should be noted that, in the embodiments of the present application, the terminal may be any device having communication and storage functions, for example: tablet computers, mobile phones, electronic readers, remote controllers, Personal Computers (PCs), notebook computers, vehicle-mounted devices, network televisions, wearable devices, and the like.
Further, in implementations of the present application, a terminal may be provided with a link structure and an NFC coil. Specifically, the NFC coil may be provided on the link structure, so that movement of the NFC coil may be achieved by driving the link structure. Wherein, the connecting rod structure can reciprocate between the upper end and the lower extreme at the terminal when driving the NFC coil and transferring.
It should be noted that, in the embodiment of the present application, since the NFC communication is dependent on communication between the NFC coils, a certain magnetic field is generated when a current flows through the NFC coils, and thus, a communication object can be identified and located by detecting real-time magnetic field data of a terminal.
It should be noted that, in the implementation of the present application, the terminal may be provided with a detection device, so that real-time detection may be performed by the detection device to obtain real-time magnetic field data. Further, the detection means may be a sensor for performing magnetic field detection. For example, fig. 5 is a schematic view of a detection device, and as shown in fig. 5, the terminal may integrate a magnetic sensor array on a battery cover, so that an external magnetic field can be detected by the magnetic sensor array in real time.
Further, in an embodiment of the present application, the real-time magnetic field data may include different magnetic field strengths corresponding to different preset positions. Specifically, one preset position corresponds to one magnetic field strength. Further, after the terminal performs real-time detection through the arranged detection device, the magnetic field strength at different preset positions corresponding to the terminal can be obtained, that is, a magnetic field strength corresponding to any one of the different preset positions can be obtained.
In the embodiment of the present application, the terminal and the communication object are both NFC-enabled communication devices each equipped with an NFC coil. In particular, the NFC coil of the terminal configuration may be moved by the link structure.
Further, in the embodiment of the present application, the middle frame is provided in the terminal, and therefore, when the terminal is provided with the link structure, the link structure may be provided on the middle frame. In particular, the middle frame is a structural component of the terminal, may be an intermediate layer as seen from the side of the terminal, and the middle frame may be a carrier for other components of the terminal. Fig. 6 is a schematic diagram of a middle frame of the terminal. As shown in fig. 6, the middle frame of the terminal may be used to carry other components in the terminal, such as a main board, a battery, an antenna platelet, etc.
And 102, determining a target area corresponding to the communication object according to the real-time magnetic field data.
In the embodiment of the application, after the terminal detects the real-time magnetic field data, the terminal may further determine a target area corresponding to the communication object according to the real-time magnetic field data. The target area may represent an optimal location for NFC with the communication object.
Further, in the implementation of the application, when the terminal determines the target area according to the real-time magnetic field data, different magnetic field strengths corresponding to different preset positions obtained through detection may be compared first, and if the different magnetic field strengths corresponding to the different preset positions are equal, it may be considered that there is no communication object that needs to be performed with NFC. If the different magnetic field strengths corresponding to the different preset positions are not equal, the terminal can determine the target magnetic field strength in the real-time magnetic field data according to a preset selection strategy; then, the target area can be determined according to the preset position corresponding to the target magnetic field intensity.
It should be noted that, in the embodiment of the present application, the terminal performs real-time detection by using the set magnetic sensor array, and if the terminal is not in contact with other NFC devices, the intensities of the magnetic fields at different positions sensed by the magnetic sensor array are the same, so that when the different magnetic field intensities corresponding to different preset positions are equal, the terminal may consider that there is no communication object that needs to perform NFC. Based on fig. 5 and fig. 7, which are schematic diagrams illustrating the detection of real-time magnetic field data, as shown in fig. 7, the terminal performs real-time detection by using the magnetic sensor array, and once the terminal contacts another NFC device, the magnetic field intensity detected by the magnetic sensor array at different preset positions is different. If the different magnetic field strengths corresponding to the different preset positions are not equal, the terminal can regard the preset position corresponding to the strongest magnetic field strength as the optimal region for performing NFC with the communication object, and the target region can be determined according to the preset position corresponding to the strongest magnetic field strength.
Further, in the embodiment of the application, when the terminal determines the target magnetic field strength in the real-time magnetic field data according to the preset selection strategy, an intensity threshold may be obtained by first calculating according to different magnetic field strengths corresponding to different preset positions, and then the target magnetic field strength is determined according to the intensity threshold; the magnetic field intensity of different magnetic field intensities corresponding to different preset positions can be sorted to obtain an intensity list, and then the target magnetic field intensity is determined according to the intensity list.
And 103, driving the connecting rod structure according to the target area to realize the movement of the NFC coil.
In the embodiment of the application, after the terminal determines the target area corresponding to the communication object according to the real-time magnetic field data, the connecting rod structure can be driven according to the target area, so that the movement of the NFC coil can be realized.
It should be noted that, in the embodiment of the application, when the terminal drives the link structure according to the target area, the moving distance corresponding to the link structure may be determined according to the target area, and then the link structure is driven according to the moving distance, so that the NFC coil may be moved by the movement of the link structure.
Further, in the practice of the present application, the terminal may also be provided with a drive means, and then the link structure is driven by the drive means. Specifically, the driving device may be a pair of motors symmetrically arranged, and the driving device may also be a pulley for pushing and pulling the connecting rod structure, and the embodiment of the present application is not particularly limited. For example, fig. 8 is a schematic view of a driving apparatus, and as shown in fig. 8, the terminal may be provided with a driving motor at symmetrical positions, respectively, for driving the link structure to move between the upper and lower ends of the terminal. Specifically, after the target area is determined, the terminal may push the link structure to move by the driving motor, so that the NFC coil may be moved into the target area by the link structure. At present, the motors dedicated for terminals mainly include a conventional vibration motor, a linear vibration motor and a voice coil motor. Among them, the conventional vibration motor may include an Eccentric Rotating Mass (ERM) motor or an Eccentric rotor motor; the Linear vibration motor moves in a reciprocating Linear motion, which is also called a Linear Resonant Actuator (LRA); the Voice Coil Motor (VCM) has the same working principle as a loudspeaker, has the characteristics of high frequency response and high precision, and has the main principle that the stretching position of a spring piece is controlled by changing the direct current of a Coil in the Motor in a permanent magnetic field so as to drive the spring piece to move up and down.
It should be noted that, in the embodiment of the application, when the terminal drives the link structure according to the target area, the moving distance corresponding to the link structure may be determined according to the target area, and then the link structure is driven according to the moving distance, so that the NFC coil may be moved into the target area.
And 104, after the NFC coil moves to the target area, performing near field communication with a communication object in the target area through the NFC coil.
In the embodiment of the application, after the terminal drives the link structure according to the target area to realize the movement of the NFC coil, after the NFC coil moves to the target area, the terminal may perform near field communication with a communication object in the target area through the NFC coil.
It should be noted that, in the embodiment of the present application, the terminal drives the NFC coil to move up and down between the upper end and the lower end of the terminal through the link structure, and until after moving to the target area, it can be considered that the NFC coil has realized the requirement of physical position alignment with the NFC coil of the communication object, so that near field communication can be performed with the communication object through the NFC coil.
Further, in the implementation of the present application, after the terminal moves the NFC coil to the target area, the NFC function may be started first, and then a connection is established with the communication object in the target area through the NFC function, so as to implement near field communication through the NFC coil.
It should be noted that, in the embodiment of the present application, the terminal may turn off the NFC function, so as to reduce power consumption.
Further, in the embodiment of the present application, after the terminal completes the near field communication between the target area and the communication object, the terminal may keep the position of the NFC coil unchanged while turning off the NFC function. Specifically, because every user's operating habit all differs with the mode of gripping, so different users correspond the effective area of NFC also not the same, so, to the same communication object, when different users operated, connecting rod structure drove NFC coil shift position in the terminal probably has certain difference, and of course, to different communication objects, when different users operated, connecting rod structure drove NFC coil shift position in the terminal probably has the unanimity. For example, when the user a performs near field communication with the communication partner a using the terminal, the coil is automatically moved to the area above the terminal using the area above the terminal. When the user a uses the terminal to perform near field communication with the information object b, the user may still use the area on the upper end of the terminal, so in order to follow the habit of the user, in the embodiment of the present application, after the terminal completes one near field communication, the position of the NFC coil may be kept unchanged while the NFC function is turned off. Of course, it is also preferable that the NFC coil in the terminal maintains the previous position for repeating the near field communication with the same communication partner.
In the embodiment of the present application, further, the design proposed in the present application, which realizes the free movement of the NFC coil by disposing the NFC coil on the connecting rod structure, may also be applied to a secondary coil on a wireless charging scheme, and the secondary coil is aligned with the primary coil in the wireless charging process.
The near field communication method provided by the embodiment of the application is applied to a terminal, the terminal comprises an NFC coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the near field communication method comprises the following steps: detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying a communication object; determining a target area corresponding to a communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil. That is to say, in the embodiment of this application, the terminal can discern the communication object according to the real-time magnetic field data that real-time detection obtained, determine can carry out near field communication's target area with the communication object, then the connecting rod structure of drive configuration, because the NFC coil sets up on connecting rod structure, therefore the NFC coil can remove to the target area through connecting rod structure, the terminal alright carry out near field communication with the communication object in the target area, and then can overcome the unable defect of communication that position misalignment leads to between terminal NFC coil and the communication object NFC coil, thereby communication efficiency is improved, the intelligence at promotion terminal.
Based on the foregoing embodiment, in another embodiment of the present application, a method for a terminal to determine a target area corresponding to a communication object according to real-time magnetic field data may include the following steps:
step 201, when different magnetic field strengths corresponding to different preset positions are unequal, determining a target magnetic field strength in real-time magnetic field data according to a preset selection strategy; the preset selection strategy is used for determining the real-time position of the communication object.
In the embodiment of the application, after detecting different magnetic field strengths corresponding to different preset positions obtained by the terminal, the terminal may compare the different magnetic field strengths, and if the different magnetic field strengths corresponding to the different preset positions are not equal, the terminal may determine the target magnetic field strength in the real-time magnetic field data including the different magnetic field strengths according to a preset selection strategy. Wherein the target magnetic field strength may be at least one of the different magnetic field strengths.
It should be noted that, in the embodiment of the present application, if the terminal does not make contact with the communication object, the different magnetic field strengths detected by the detection device configured in the terminal at the different preset positions are equal, and once the different magnetic field strengths at the different preset positions are not equal, the terminal may be considered to be in contact with the communication object, so that the target magnetic field strength may be determined among the different magnetic field strengths.
Further, in the embodiment of the present application, the preset selection policy is used to determine the real-time position of the communication object, so that the target area for performing near field communication with the communication object may be further determined according to the real-time position of the communication object. Specifically, in the embodiment of the present application, the closer the NFC coil configured by the communication object is to the terminal, the stronger the magnetic field strength is, accordingly, the terminal may consider that, among different magnetic field strengths corresponding to different preset positions, the preset position corresponding to the magnetic field strength with the strongest strength is the optimal region for performing near field communication with the communication object.
It should be noted that, in the embodiment of the present application, when the terminal determines the target magnetic field strength in the real-time magnetic field data according to the preset selection policy, the target magnetic field strength may be determined in different magnetic field strengths according to one strength threshold, or at least one magnetic field strength with the strongest strength may be directly selected as the target magnetic field strength in the different magnetic field strengths.
Step 202, determining a target area according to a preset position corresponding to the target magnetic field strength.
In the embodiment of the application, after the terminal determines the target magnetic field strength in the real-time magnetic field data according to the preset selection strategy, the target area can be determined according to the preset position corresponding to the target magnetic field strength.
It should be noted that, in the embodiment of the present application, exactly at a position where the terminal and the communication object are closer to each other, the strength of the magnetic field is stronger correspondingly, so that after the terminal determines a target magnetic field strength with a higher strength among different magnetic field strengths, the target area for performing the near field communication may be determined according to a preset position corresponding to the target magnetic field strength.
Further, in the implementation of the present application, since the target magnetic field strength may be at least one of different magnetic field strengths, and thus the target magnetic field strength corresponds to at least one of different preset positions, the terminal may determine the target area according to the at least one position corresponding to the target magnetic field strength. That is, the target region is a region including a preset position corresponding to the target magnetic field strength.
In an embodiment of the present application, further, the method for determining the target magnetic field strength in the real-time magnetic field data by the terminal according to the preset selection policy may include the following steps:
and 301, determining an intensity threshold according to different magnetic field strengths.
And step 302, determining the magnetic field intensity larger than the intensity threshold value in the real-time magnetic field data as the target magnetic field intensity.
In the implementation of the application, if different magnetic field strengths corresponding to different preset positions are not equal, the terminal can determine the strength threshold value according to the different magnetic field strengths, then compare the different magnetic field strengths in the real-time magnetic field with the strength threshold value, and finally determine the magnetic field strength larger than the strength threshold value as the target magnetic field strength.
Further, in the implementation of the present application, when determining the intensity threshold according to different magnetic field strengths, the terminal may perform average calculation on the different magnetic field strengths, and set the average of the different magnetic field strengths as a light threshold. The terminal may also obtain the intensity threshold by performing other data calculations on different magnetic field strengths, which is not specifically limited in this application.
It should be noted that, in the implementation of the present application, the preset intensity may also be a specific magnetic field intensity data preset by the terminal.
Further, in the implementation of the present application, after determining the intensity threshold, the terminal may compare different magnetic field strengths with the intensity thresholds, respectively, so that the magnetic field strength greater than the intensity threshold in the real-time magnetic field data may be determined as the target magnetic field strength.
In an embodiment of the present application, further, the method for determining the target magnetic field strength in the real-time magnetic field data by the terminal according to the preset selection policy may include the following steps:
and 303, sorting the different magnetic field strengths according to the strength to obtain a strength list.
Step 304, determining the target magnetic field strength according to the intensity list.
In the implementation of the application, if the different magnetic field strengths corresponding to the different preset positions are not equal, the terminal may sort the different magnetic field strengths according to the strength to obtain a strength list, and then select the target magnetic field strength from the strength list according to the order.
Further, in the implementation of the present application, when the terminal sorts the different magnetic field strengths according to the strength, the terminal may sort the different magnetic field strengths according to the order from small to large, or may sort the different magnetic field strengths according to the order from large to small, and the present application is not limited specifically.
Further, in an implementation of the present application, the terminal may select at least one magnetic field strength as the target magnetic field strength directly from the intensity list after obtaining the intensity list.
In an embodiment of the present application, further, the method of the terminal driving the link structure according to the target area may include the steps of:
step 401, determining a moving distance corresponding to the connecting rod structure according to the target area.
In the embodiment of the application, after the terminal determines the target area corresponding to the communication object according to the real-time magnetic field data, the terminal may determine the moving distance corresponding to the link structure according to the target area.
It should be noted that, in the embodiment of the present application, after determining an optimal region, that is, a target region, for performing near field communication with a communication object, the terminal may further determine a distance that the link structure needs to move according to the target region, that is, when the terminal needs to calculate that the link structure drives the NFC coil to move to the target region, a specific distance that the terminal needs to move, that is, a movement distance.
Fig. 9 is a schematic diagram of the moving distance, and as shown in fig. 9, after the terminal determines the target area, the terminal may further determine that the moving distance that the link structure needs to move is D according to the target area.
Step 402, driving the connecting rod structure according to the moving distance.
In the implementation of this application, after the terminal determines the travel distance that the connecting rod structure corresponds according to the target area, alright remove according to travel distance drive connecting rod structure to can make connecting rod structure drive NFC coil to target area.
In the embodiment of the present application, the terminal drives the link structure according to the moving distance, and the link structure may further automatically move the moving coil to the target area based on the movement of the moving distance, so that the NFC coil may perform near field communication with the communication object in the target area.
Based on the above fig. 9 and fig. 10 are schematic diagrams of the NFC coil automatic movement, as shown in fig. 10, after the moving distance D is determined, the terminal may drive the link structure to move according to the moving distance D, so that the moving coil automatically moves to the target area.
The near field communication method provided by the embodiment of the application is applied to a terminal, the terminal comprises an NFC coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the near field communication method comprises the following steps: detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying a communication object; determining a target area corresponding to a communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil. That is to say, in the embodiment of this application, the terminal can discern the communication object according to the real-time magnetic field data that real-time detection obtained, determine can carry out near field communication's target area with the communication object, then the connecting rod structure of drive configuration, because the NFC coil sets up on connecting rod structure, therefore the NFC coil can remove to the target area through connecting rod structure, the terminal alright carry out near field communication with the communication object in the target area, and then can overcome the unable defect of communication that position misalignment leads to between terminal NFC coil and the communication object NFC coil, thereby communication efficiency is improved, the intelligence at promotion terminal.
Based on the foregoing embodiments, in yet another embodiment of the present application, fig. 11 is a schematic view of a composition structure of a terminal according to an embodiment of the present application, and as shown in fig. 11, the terminal 1 according to an embodiment of the present application may include a detecting unit 11, a determining unit 12, a driving unit 13, and a communication unit 14.
The detection unit 11 is used for detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object.
The determining unit 12 is configured to determine a target area corresponding to the communication object according to the real-time magnetic field data.
The driving unit 13 is configured to drive the link structure according to the target area, so as to implement movement of the NFC coil; wherein the NFC coil is disposed on the link structure.
The communication unit 14 is configured to perform near field communication with the communication object in the target area through the NFC coil after the NFC coil is moved to the target area.
Further, in an embodiment of the present application, the terminal is configured with a detection device, and the detection unit 11 is specifically configured to perform real-time detection through the detection device to obtain the real-time magnetic field data.
Further, in an embodiment of the present application, the real-time magnetic field data includes different magnetic field strengths corresponding to different preset positions, where one preset position corresponds to one magnetic field strength.
Further, in an embodiment of the present application, the determining unit 12 is specifically configured to determine, when the different magnetic field strengths corresponding to the different preset positions are not equal, a target magnetic field strength in the real-time magnetic field data according to a preset selection policy; the preset selection strategy is used for determining the real-time position of the communication object; and determining the target area according to the preset position corresponding to the target magnetic field strength.
Further, in the embodiment of the present application, the determining unit 12 is further specifically configured to determine an intensity threshold according to the different magnetic field strengths; and determining the magnetic field strength in the real-time magnetic field data that is greater than the strength threshold as the target magnetic field strength.
Further, in an embodiment of the present application, the determining unit 12 is further specifically configured to sort the different magnetic field strengths according to strength, so as to obtain a strength list; and determining the target magnetic field strength from the strength list.
Further, in the embodiment of the present application, the driving unit 13 is specifically configured to determine a moving distance corresponding to the link structure according to the target area; and driving the link structure according to the moving distance.
Further, in the embodiment of the present application, the communication unit 14 is specifically configured to turn on an NFC function; and establishing a connection with the communication object in the target area through the NFC function to realize the near field communication through the NFC coil.
Further, in the embodiment of the present application, the communication unit 14 is further configured to turn off the NFC function after the NFC coil performs near field communication with the communication object in the target area.
Fig. 12 is a schematic diagram of a composition structure of the terminal according to the embodiment of the present application, as shown in fig. 12, the terminal 1 according to the embodiment of the present application may further include a link structure 15, an NFC coil 16, a detection device 17, a processor 18, and a memory 19 storing executable instructions of the processor 18, and further, the terminal 1 may further include a communication interface 110, and a bus 111 for connecting the link structure 15, the NFC coil 16, the detection device 17, the processor 18, the memory 19, and the communication interface 110.
In an embodiment of the present Application, the Processor 18 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The terminal 1 may further comprise a memory 19, which memory 19 may be connected to the processor 18, wherein the memory 19 is adapted to store executable program code comprising computer operating instructions, and wherein the memory 19 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 111 is used to connect the communication interface 110, the processor 18, and the memory 19 and the intercommunication among these devices.
In the embodiments of the present application, the memory 19 is used for storing instructions and data.
Further, in the embodiment of the present application, the processor 18 is configured to detect real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object; determining a target area corresponding to the communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil.
In practical applications, the Memory 19 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 18.
In addition, each functional module in this embodiment 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 or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The terminal provided by the embodiment of the application comprises an NFC coil arranged on a connecting rod structure, wherein the connecting rod structure is used for driving the NFC coil to move, and the near field communication method comprises the following steps: detecting real-time magnetic field data; wherein the real-time magnetic field data is used for identifying a communication object; determining a target area corresponding to a communication object according to the real-time magnetic field data; driving the connecting rod structure according to the target area to realize the movement of the NFC coil; and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil. That is to say, in the embodiment of this application, the terminal can discern the communication object according to the real-time magnetic field data that real-time detection obtained, determine can carry out near field communication's target area with the communication object, then the connecting rod structure of drive configuration, because the NFC coil sets up on connecting rod structure, therefore the NFC coil can remove to the target area through connecting rod structure, the terminal alright carry out near field communication with the communication object in the target area, and then can overcome the unable defect of communication that position misalignment leads to between terminal NFC coil and the communication object NFC coil, thereby communication efficiency is improved, the intelligence at promotion terminal.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, which when executed by a processor implements a near field communication method as described above.
Specifically, the program instructions corresponding to a near field communication method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb flash disk, or the like, and when the program instructions corresponding to a near field communication method in the storage medium are read or executed by an electronic device, the method includes the following steps:
detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object;
determining a target area corresponding to the communication object according to the real-time magnetic field data;
driving the connecting rod structure according to the target area to realize the movement of the NFC coil;
and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (15)

1. A near field communication method is applied to a terminal, the terminal comprises a Near Field Communication (NFC) coil arranged on a connecting rod structure, the connecting rod structure is used for driving the NFC coil to move, and the method comprises the following steps:
detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object;
determining a target area corresponding to the communication object according to the real-time magnetic field data;
driving the connecting rod structure according to the target area to realize the movement of the NFC coil;
and after the NFC coil moves to the target area, performing near field communication with the communication object in the target area through the NFC coil.
2. The method of claim 1, wherein the terminal is configured with a detection device that detects real-time magnetic field data, comprising:
and carrying out real-time detection through the detection device to obtain the real-time magnetic field data.
3. The method of claim 1, wherein the real-time magnetic field data comprises different magnetic field strengths corresponding to different predetermined locations, wherein one predetermined location corresponds to one magnetic field strength.
4. The method of claim 3, wherein determining the target region corresponding to the communication object according to the real-time magnetic field data comprises:
when the different magnetic field strengths corresponding to the different preset positions are not equal, determining a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy; the preset selection strategy is used for determining the real-time position of the communication object;
and determining the target area according to the preset position corresponding to the target magnetic field strength.
5. The method of claim 4, wherein determining a target magnetic field strength in the real-time magnetic field data according to a predetermined selection strategy comprises:
determining an intensity threshold value according to the different magnetic field strengths;
determining a magnetic field strength in the real-time magnetic field data that is greater than the strength threshold as the target magnetic field strength.
6. The method of claim 4, wherein determining a target magnetic field strength in the real-time magnetic field data according to a predetermined selection strategy comprises:
sorting the different magnetic field strengths according to the strength to obtain a strength list;
determining the target magnetic field strength from the strength list.
7. The method of claim 1, wherein said driving the linkage structure in accordance with the target area comprises:
determining a moving distance corresponding to the connecting rod structure according to the target area;
and driving the connecting rod structure according to the moving distance.
8. The method of claim 1, wherein the near field communication with the communication object at the target area through the NFC coil comprises:
starting an NFC function;
and the NFC coil establishes connection with the communication object in the target area through the NFC function so as to realize the near field communication.
9. The method of claim 8, wherein after the near field communication with the communication object in the target area through the NFC coil, the method further comprises:
and closing the NFC function.
10. A terminal, characterized in that the terminal comprises: a detection unit, a determination unit, a drive unit and a communication unit,
the detection unit is used for detecting real-time magnetic field data; wherein the real-time magnetic field data is used to identify a communication object;
the determining unit is used for determining a target area corresponding to the communication object according to the real-time magnetic field data;
the driving unit is used for driving the connecting rod structure according to the target area so as to realize the movement of the NFC coil; wherein the NFC coil is disposed on the link structure;
the communication unit is configured to perform near field communication with the communication object in the target area through the NFC coil after the NFC coil is moved to the target area.
11. The terminal of claim 10, wherein the real-time magnetic field data comprises different magnetic field strengths corresponding to different predetermined locations, wherein one predetermined location corresponds to one magnetic field strength;
the determining unit is specifically configured to determine a target magnetic field strength in the real-time magnetic field data according to a preset selection strategy when the different magnetic field strengths corresponding to the different preset positions are not equal to each other; the preset selection strategy is used for determining the real-time position of the communication object; and determining the target area according to the preset position corresponding to the target magnetic field strength.
12. The terminal of claim 10,
the driving unit is specifically configured to determine a moving distance corresponding to the link structure according to the target area; and driving the link structure according to the moving distance.
13. The terminal of claim 10,
the communication unit is specifically used for starting an NFC function; and establishing a connection with the communication object in the target area through the NFC function to realize the near field communication through the NFC coil.
14. A terminal, characterized in that the terminal comprises a linkage structure, an NFC coil, detection means, a processor, a memory having stored thereon instructions executable by the processor, which instructions, when executed by the processor, carry out the method according to any one of claims 1-9.
15. A computer-readable storage medium, on which a program is stored, for use in a terminal, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-9.
CN201910464720.6A 2019-05-30 2019-05-30 Near field communication method, terminal and storage medium Active CN110224725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910464720.6A CN110224725B (en) 2019-05-30 2019-05-30 Near field communication method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910464720.6A CN110224725B (en) 2019-05-30 2019-05-30 Near field communication method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110224725A CN110224725A (en) 2019-09-10
CN110224725B true CN110224725B (en) 2021-08-24

Family

ID=67818712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910464720.6A Active CN110224725B (en) 2019-05-30 2019-05-30 Near field communication method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110224725B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111211815B (en) * 2020-01-23 2021-10-19 京东方科技集团股份有限公司 Antenna position detection device and detection method
CN112216979B (en) * 2020-09-28 2021-07-20 珠海格力电器股份有限公司 Antenna structure and feed point conversion method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898708B (en) * 2015-05-27 2017-12-05 上海斐讯数据通信技术有限公司 The system of mobile electronic device
US10424977B2 (en) * 2015-06-03 2019-09-24 Rohm Co., Ltd. Charging system using NFC, mobile device chargeable by NFC, and charger
CN107026696B (en) * 2017-03-17 2020-09-22 深圳市信维通信股份有限公司 Authentication test method of NFC antenna with double-antenna mode

Also Published As

Publication number Publication date
CN110224725A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN103348558B (en) Semiconductor equipment, power transfer apparatus, power receiving apparatus, charging system, wireless communication system and charging method
CN102591440B (en) Electronic installation and control method thereof
US10340739B2 (en) Power receiving device, power transmission device, and power feeding system
EP1834394B1 (en) Method and apparatus for near field communications
CN110224725B (en) Near field communication method, terminal and storage medium
CN104038259B (en) Contactless communication device and user apparatus including contactless communication device
KR101265234B1 (en) Nfc device
JP5177270B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
EP3352488A1 (en) Communication apparatus, communication method, and program
CN106100154A (en) System And Method For Safe Wireless Charging Station
JP2008545312A (en) RFID capability optimization negotiation
CN108055089B (en) Method and device for determining working frequency of NFC device
US9325205B2 (en) Method for driving power supply system
CN107277748A (en) A kind of Bluetooth pairing methods, system and its terminal device
US11386774B2 (en) Systems and methods for remote power tool device control
US20180329431A1 (en) Thermal image positioning system and positioning method thereof
CN106101989A (en) A kind of method selecting safe unit and mobile terminal
JP4579233B2 (en) Circuit for contactless devices with active and passive transmission modes
CN110475023B (en) Scene data processing method and device, electronic equipment and computer readable medium
TWI552027B (en) Protocol system and related method of automatically switching connection
CN201345104Y (en) Control switching system for RFID multi-protocols reader
CN116505607A (en) Flashlight charging method and system based on NFC signal control
JP6701410B2 (en) Power transmission device, control method, and program
CN211557262U (en) Transponder
CN109804522B (en) Charging a micro 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