WO2015103787A1 - Near field communication method, apparatus and system - Google Patents

Near field communication method, apparatus and system Download PDF

Info

Publication number
WO2015103787A1
WO2015103787A1 PCT/CN2014/070533 CN2014070533W WO2015103787A1 WO 2015103787 A1 WO2015103787 A1 WO 2015103787A1 CN 2014070533 W CN2014070533 W CN 2014070533W WO 2015103787 A1 WO2015103787 A1 WO 2015103787A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc
mobile terminal
communication
nfc communication
antenna
Prior art date
Application number
PCT/CN2014/070533
Other languages
French (fr)
Chinese (zh)
Inventor
张广煜
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2014/070533 priority Critical patent/WO2015103787A1/en
Publication of WO2015103787A1 publication Critical patent/WO2015103787A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0834Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection based on external parameters, e.g. subscriber speed or location
    • H04B5/72
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching

Definitions

  • the present invention relates to the field of near field communication technologies, and in particular, to a wireless communication method, related apparatus, and system. Background technique
  • Non-contact communication is a wireless communication technology that performs data transmission between two coils (antennas) based on a magnetic field coupling method, so the effective distance and effective range of communication are very limited.
  • NFC Near Field Communication
  • NFC technology is a non-contact very short-range communication technology.
  • the three basic functions are card mode similar to contactless cards such as bus cards, and contactless card readers. Or the card reader's read and write mode, and the Peer to Peer (P2P) mode for fast delivery of small-capacity data.
  • Non-contact close-range communication is often caused by metal blocking magnetic lines of force, so that the working range of the antenna is affected and limited by the terminal metal structure. It is often necessary to use a specified position at a certain distance and angle for non-contact communication. That is, through a single antenna, the mobile terminal must perform contactless communication within a specified structural plane (for example, the back of the mobile terminal) and an angle range, and cannot perform non-contact communication in any handheld mode and at any angle, so that the NFC communication of the mobile terminal is achieved. Poor function, NFC communication is inefficient. Summary of the invention
  • the technical problem to be solved by the embodiments of the present invention is to provide a wireless communication method, related device and system, which solves the problem that the mobile terminal must perform problems within a specified structural plane and angle range in the prior art.
  • an embodiment of the present invention provides a near field communication method for multiple NFC handovers, including:
  • the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
  • NFC communication indication information of the mobile terminal Determining NFC communication indication information of the mobile terminal according to the working status, the NFC communication
  • the letter indication information is used to indicate an NFC antenna for performing NFC communication
  • determining, according to the working status, determining NFC communication indication information of the mobile terminal Specifically include:
  • the NFC antenna for performing NFC communication is instructed according to the determined NFC operation mode.
  • the determining, according to the determined NFC communication indication information, from multiple NFC antennas Selecting at least one NFC antenna for NFC communication with an external device includes: triggering, by an external card reader, one of the at least two NFC antennas provided for powering, selecting the triggered NFC antenna and the external card reader The device performs NFC communication.
  • the data collected by the sensor is a Obtaining the physical posture information and the mobile trend information of the mobile terminal; when the working status is the data collected by the sensor, determining the NFC communication indication information of the mobile terminal according to the working status, specifically:
  • the selecting when the NFC communication indication information indicates that at least two NFC antennas perform NFC communication, the selecting, according to the determined NFC communication indication information, selecting at least one NFC antenna from a plurality of NFC antennas to perform NFC communication with an external device. Specifically, including: Prioritizing the use of at least two NFC antennas indicated by the NFC communication indication information by using statistical data obtained by using the usage convention of the NFC antenna;
  • an embodiment of the present invention provides a NFC switching near field communication device, including:
  • a working state obtaining module configured to acquire a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
  • a communication indication determining module configured to determine, according to the working state, NFC communication indication information of the current device, where the NFC communication indication information is used to indicate an NFC antenna that performs NFC communication;
  • an antenna selection module configured to select at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
  • the communication indication determining module when the working status is the application information triggered by the mobile terminal, includes:
  • a working module determining unit configured to determine an NFC working mode according to an application triggered by the mobile terminal
  • an indicating unit configured to indicate, according to the determined NFC working mode, an NFC antenna that performs NFC communication.
  • the data collected by the sensor is physical posture information of the mobile terminal acquired by the sensing device, and Moving trend information; when the working state is data collected by the sensor, the communication indication determining module includes:
  • a first operation acquiring unit configured to perform operation on the data collected by the sensor according to the sensing algorithm, to obtain a physical posture and a moving tendency of the mobile terminal
  • a first indication communication unit configured to perform, according to the physical posture and the movement trend indication NFC antenna for NFC communication
  • a second operation acquiring unit configured to perform operation on the data collected by the sensor according to the sensing algorithm, to obtain distance and angle information of the mobile terminal and the external device; and a second indication communication unit, configured to indicate according to the distance and the angle information NFC antenna for NFC communication.
  • the antenna selection module when the NFC communication indication When the information indicates that at least two NFC antennas perform NFC communication, the antenna selection module includes: a priority sorting unit, configured to collect at least two indications of the NFC communication indication information by collecting statistical data obtained by using the NFC antenna.
  • the root NFC antenna performs priority ordering; the selecting unit is configured to select an NFC antenna with a high priority to perform NFC communication with an external device.
  • an embodiment of the present invention provides a mobile terminal having multiple NFC antennas, including: a first processor, a control switch, at least two NFC antennas, and at least one sensor;
  • the mobile terminal performs data collected by the mobile terminal;
  • the NFC communication indication information of the mobile terminal Determining, by the first processor, the NFC communication indication information of the mobile terminal according to the working state, where the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
  • the first processor selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device by using the control switch according to the determined NFC communication indication information.
  • the first processor determines, according to the working status, the NFC of the mobile terminal.
  • the communication indication information specifically includes:
  • the first processor determines that the NFC working mode is a card mode
  • the first processor is determined according to the determined
  • Determining the NFC communication indication information selecting at least one NFC antenna from the plurality of NFC antennas 904 through the control switch 902 to perform NFC communication with the external device includes:
  • One of the at least two NFC antennas provided by the external card reader is used for powering, and the triggered NFC antenna is selected to perform NFC communication with the external card reader.
  • the data collected by the sensor is Determining, by the at least one sensor, physical posture information and movement trend information of the mobile terminal; when the working state is data collected by the sensor, the first processor determines, according to the working state, the NFC communication of the mobile terminal Instructions, including: Performing operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal; and an NFC antenna for performing NFC communication according to the physical posture and the moving trend indication; or
  • the first processor performs NFC communication with the external device by selecting at least one NFC antenna from the plurality of NFC antennas according to the determined NFC communication indication information, and specifically includes:
  • the at least two NFC antennas indicated by the NFC communication indication information are prioritized by using statistical data obtained by using the NFC antenna usage habits;
  • the mobile terminal further includes a second processor, where the second processor is a main processor running each program of the mobile terminal;
  • the switch selects at least one NFC antenna from the plurality of NFC antennas for NFC communication with an external device.
  • the NFC communication indication information of the mobile terminal is determined according to the current working state of the mobile terminal, and at least one NFC antenna is selected from the plurality of NFC antennas to perform NFC communication with the external device, thereby solving the mobile terminal in the prior art.
  • the problem must be carried out within the specified structural plane and angle range, which greatly improves the success rate of NFC communication, and enables the user to perform non-contact communication through any handheld mode or any angle, thereby improving the NFC communication function and NFC communication efficiency of the mobile terminal.
  • the power consumption of the mobile device's main processor can be reduced by triggering a low-power processor to control the contactless communication of the antenna.
  • FIG. 1 is a schematic flow chart of an embodiment of a near field communication method for multiple NFC handovers provided by the present invention
  • FIG. 2 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention.
  • FIG. 3 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention.
  • FIG. 4 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a plurality of NFC-switched near field communication devices according to the present invention
  • FIG. 6 is a schematic structural diagram of an embodiment of a communication indication determining module of the present invention
  • FIG. 7 is a schematic structural diagram of another embodiment of a communication indication determining module of the present invention.
  • FIG. 8 is a schematic structural view of another embodiment of a plurality of NFC switched near field communication devices according to the present invention.
  • FIG. 9 is a schematic structural view of an embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention.
  • FIG. 10 is a schematic structural view of another embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention.
  • Figure 11 is a schematic structural view of another embodiment of a mobile terminal having a plurality of NFC antennas of the present invention. detailed description
  • left, right, upper, lower, and the like orientations in this embodiment are merely relative concepts or reference to the normal use state of the product, and should not be considered as limiting.
  • the short-range contactless communication in the embodiment of the present invention includes, but is not limited to, radio frequency identification communication such as NFC communication, as long as the short-distance non-contact communication with the external device is required through the antenna, the embodiment of the present invention is implemented.
  • NFC communication is used as an example:
  • FIG. 1 is a schematic flowchart of an embodiment of a NFC switching near field communication method provided by the present invention, the method includes:
  • Step S100 The mobile terminal acquires a current working state of the mobile terminal.
  • the working state in the embodiment of the present invention is application information triggered by the mobile terminal itself and/or data collected by the sensor;
  • the application program triggered by the mobile terminal may include an NFC payment program, an NFC home appliance control program, or an NFC file transmission program.
  • the data collected by the sensor may include data collected by sensors collected by at least one sensor such as a gyroscope, an accelerometer, a displacement sensor, a compass, a proximity light/light sensor, a camera, etc., such as physical attitude information and movement trend information of the mobile terminal.
  • the physical posture is a tilting posture such as a horizontally upward direction of the mobile terminal, a horizontally facing downward, a vertical erect, an inverted erect, a front positive tilt, or a left tilt.
  • the mobile trend is a mobile terminal motion trajectory and a motion trend. .
  • Step S102 The mobile terminal determines NFC communication indication information of the mobile terminal according to the working state; the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
  • Step S104 The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
  • the mobile terminal is provided with at least two NFC antennas for non-contact communication with an external device.
  • each of the front and the back of the mobile terminal is provided with an antenna, and then the NFC communication indication information determined by the mobile terminal indicates the back of the mobile terminal.
  • the mobile terminal selects the NFC antenna on the back side for NFC communication; when the determined NFC communication indication information indicates that the antenna on the front side of the mobile terminal performs contactless communication with the external device, the front NFC is selected.
  • the antenna performs NFC communication.
  • the NFC communication indication information of the mobile terminal is determined according to the current working state of the mobile terminal, and at least one NFC antenna is selected from the plurality of NFC antennas to perform NFC communication with the external device, thereby solving the mobile terminal in the prior art.
  • the problem must be carried out within the specified structural plane and angle range, which greatly improves the success rate of NFC communication, and enables the user to perform non-contact communication through any handheld mode or any angle, thereby improving the NFC communication function and NFC communication efficiency of the mobile terminal.
  • the power consumption of the mobile device's main processor can be reduced by triggering a low-power processor to control the contactless communication of the antenna.
  • FIG. 2 a schematic flowchart of another embodiment of a plurality of NFC-switched near field communication methods provided by the present invention, as shown in FIG. 2, when the working state is application information triggered by the mobile terminal, the method includes:
  • Step S200 The mobile terminal acquires a current working state of the mobile terminal.
  • Step S202 The mobile terminal determines an NFC working mode according to an application triggered by the mobile terminal.
  • the NFC working mode can be divided into a card mode, a read/write mode, and a P2P mode, wherein the card mode refers to the NFC communication device being simulated into a card, and after the card is downloaded and applied, the card can be consumed.
  • the read/write mode means that the NFC communication device can read the card, such as reading the balance on the bank card, the balance of the bus card, etc., and can also be used as a POS machine.
  • P2P mode means that two NFC communication devices can exchange data. Then, according to the application triggered by the mobile terminal, the NFC working mode can be determined.
  • the working mode is the card mode
  • the working mode can be determined to be the read/write mode
  • the working mode can be determined to be the P2P mode, and so on.
  • Step S204 The mobile terminal instructs the NFC antenna that performs NFC communication according to the determined NFC working mode.
  • the default setting may be used to indicate that a specific NFC working mode corresponds to an NFC antenna that the user prefers to use.
  • the NFC working mode is the card mode
  • the user may prefer NFC communication on the back or front side of the handheld mobile terminal. , then it can be instructed to use the back NFC antenna of the mobile terminal or the front NFC antenna for NFC communication; and when the NFC working mode is the read/write mode, the user tends to use the front side, the left side or the right side for NFC communication, then Instructing to use the front side NFC antenna of the mobile terminal, the left side NFC antenna, or the right side NFC antenna for NFC communication;
  • Step S206 The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
  • the NFC antenna when there is only one NFC antenna indicating the NFC communication, the NFC antenna is directly selected to perform NFC communication with the external device; when the NFC antenna indicating the NFC communication is at least two, the NFC antenna can be statistically compared. Using the statistical data obtained by the usage habit, the at least two NFC antennas indicated by the NFC communication indication information are prioritized; then the NFC antenna with a high priority is selected to perform NFC communication with the external device.
  • an NFC antenna is provided on the front, the back, and the front side of the mobile terminal, and the two NFC antennas provided may be prioritized according to the user's usage habits, for example, when the NFC working mode is When the card mode corresponds to the NFC communication using the back NFC antenna or the front NFC antenna of the mobile terminal, the user can be more accustomed to using the front NFC antenna for contactless communication by counting the usage habits of the current user, and then the front NFC can be set.
  • the priority of the antenna is higher than that of the back NFC antenna.
  • the NFC working mode is the read/write mode
  • the mobile terminal can be used to count the usage habits of the current user, and the user is more accustomed to using the NFC antenna on the front side. Non-contact communication, then the front side of the NFC has the highest priority.
  • the user's usage habits may be a user's pre-customized tendency to use according to their own needs, or the system may obtain statistical data obtained by using the user's usage habit information for a period of time.
  • Step S300 The mobile terminal acquires a current working state of the mobile terminal.
  • the mobile terminal may be provided with at least one sensor, including a gyroscope, an accelerometer, a compass, a proximity light/light sensor, a camera, etc.; the data collected by the sensor acquired by the sensor includes physical posture information of the mobile terminal and Mobile trend information.
  • a gyroscope including a Bosch Sensortec BMA150 accelerometer, a Bosch Sensortec BMA150 accelerometer, a Bosch Sensortec BMA150 accelerometer, a compass, a proximity light/light sensor, a camera, etc.
  • the data collected by the sensor acquired by the sensor includes physical posture information of the mobile terminal and Mobile trend information.
  • Step S302 The mobile terminal performs operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal.
  • the physical sensing posture and the moving tendency of the mobile terminal can be obtained by calculating the data collected by the sensor by using an existing sensing algorithm; the physical posture is that the mobile terminal is horizontally facing upward, horizontally facing downward, is standing upright, and is inverted.
  • Various tilting postures such as erecting, front positive tilting, or left tilting, etc.
  • the moving tendency is the moving trajectory of the mobile terminal and the moving tendency.
  • Step S302 The mobile terminal indicates, according to the physical posture and the mobile trend, an NFC antenna that performs NFC communication;
  • the NFC antenna is disposed on both the front and the back of the mobile terminal, and then, if the mobile terminal is currently moving face down, the NFC communication may be indicated by using the front NFC antenna of the mobile terminal; The mobile terminal is tilted forward, and when the back is moved forward, the back NFC antenna of the mobile terminal can be instructed to perform NFC communication.
  • Step S304 The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
  • Step S400 The mobile terminal acquires a current working state of the mobile terminal.
  • the mobile terminal may be provided with at least one sensor, including a gyroscope, and an acceleration The meter, the compass, the proximity light/light sensor, the camera, etc.; the data collected by the sensor obtained by the sensor includes physical attitude information and movement trend information of the mobile terminal.
  • a gyroscope including a gyroscope, and an acceleration The meter, the compass, the proximity light/light sensor, the camera, etc.
  • the data collected by the sensor obtained by the sensor includes physical attitude information and movement trend information of the mobile terminal.
  • Step S402 The mobile terminal performs calculation on the data collected by the sensor according to the sensing algorithm, and obtains distance and angle information between the mobile terminal and the external device.
  • the existing sensor algorithm is used to calculate the distance and angle information of the mobile terminal and the external device by calculating the data collected by the sensor; that is, the distance between the mobile terminal and the external device, and the orientation of the external device relative to the external device What is, or which structural plane of the mobile terminal is approaching to the external device, etc.; for example, the left side of the current mobile terminal is closest to the external device, or the back side of the mobile terminal is facing the external device, and the like.
  • Step S404 The mobile terminal indicates, according to the distance and the angle information, an NFC antenna that performs NFC communication.
  • the NFC antenna is disposed on the left side, the right side, the front side, and the back side of the mobile terminal. If the left side of the current mobile terminal is closest to the external device, the left side of the mobile terminal may be indicated.
  • the NFC antenna performs NFC communication; if the back side of the mobile terminal is facing the external device, the NFC communication using the back NFC antenna of the mobile terminal can be instructed.
  • Step S406 The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
  • the NFC communication indication information of the mobile terminal may be determined according to the application information triggered by the mobile terminal and the data collected by the sensor.
  • the mobile terminal After determining an NFC working mode by using an application triggered by the mobile terminal, and indicating an NFC antenna for performing NFC communication according to the determined NFC working mode, acquiring the mobile terminal according to data collected by the sensor. The physical posture and the movement trend or calculate the distance and angle information of the mobile terminal and the external device, further determine the NFC antenna indicating the NFC communication, and then select the optimal NFC antenna for the contactless communication;
  • the NFC operating mode is determined according to the application triggered by the mobile terminal, and the NFC antenna for performing NFC communication is instructed according to the determined NFC working mode, and the NFC antenna a is selected for non-contact communication; Collected data, obtaining the mobile terminal The physical attitude and the movement trend or the distance and angle information of the mobile terminal and the external device are calculated, and finally the NFC antenna b is selected as the switching backup; when the mobile terminal cannot use the NFC antenna a for the non-contact communication, the NFC antenna b is switched. Perform contactless communication.
  • the at least one NFC antenna is selected from the plurality of NFC antennas according to the determined NFC communication indication information.
  • Performing NFC communication by the external device includes: triggering, by using an external card reader, one of the at least two NFC antennas provided for powering, and selecting the triggered NFC antenna to perform non-contact communication with the external card reader. specifically:
  • the mobile terminal can be manually connected to the external card reader by the user, and the mobile terminal can take power, and trigger an optional NFC antenna of the mobile terminal to perform non-contact communication with the external card reader.
  • the sensor can also be used according to the sensor. The collected data obtains the physical posture and the movement trend of the mobile terminal or calculates the distance and angle information of the mobile terminal from the external device, and selects the backup switching NFC antenna.
  • the mobile terminal may further control, by using the second processor, to trigger the first processor to perform the determining, according to the working state, the NFC communication indication information of the mobile terminal; according to the determined NFC communication indication.
  • the mobile terminal is provided with a first processor and a second processor, wherein the second processor is a main processor running each program of the mobile terminal device, for example, if the mobile terminal device is a mobile smart phone, then the second processor is the The CPU of the mobile smart phone, that is, the CPU that processes various functional programs; the first processor is a low-power processor of the mobile terminal, and is only used for performing NFC antenna selection and control processing in the embodiment of the present invention, thereby achieving the reduction of the The purpose of the two processor power consumption.
  • the switch control signal may be controlled by the first processor or the chip controlled by the first processor, that is, the first processor controls the switch to select an NFC antenna by using the embodiment of the embodiment of the present invention.
  • the NFC antenna chips are connected for contactless communication, and other NFC antennas are not selected for contactless communication.
  • the NFC communication indication information selecting at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device, solves the problem that the mobile terminal in the prior art must perform within a specified structural plane and angle range, and greatly improves the success of the NFC communication.
  • the rate can be achieved by allowing the user to perform contactless communication through any handheld mode or any angle, improving the NFC communication function and NFC communication efficiency of the mobile terminal, and reducing the mobile device by triggering the low-power processor to control the contactless communication of the antenna.
  • the power consumption of the main processor is not limited to perform a processor.
  • FIG. 5 A structural diagram of an embodiment of a plurality of NFC-switched near field communication devices of the present invention shown in FIG. 5 will be described in detail below:
  • the NFC-switched near field communication device 50 includes: an operation status acquisition module 500, a communication indication determination module 502, and an antenna selection module 504, wherein
  • the working state obtaining module 500 is configured to acquire a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
  • the communication indication determining module 502 is configured to determine NFC communication indication information of the current device according to the working state; the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication; and the antenna selection module 504 is configured to use the NFC communication according to the determined The indication information selects at least one NFC antenna from the plurality of NFC antennas for NFC communication with an external device.
  • the communication indication determining module 502 when the working state is application information triggered by the mobile terminal, the communication indication determining module 502 includes: Unit 5020 and indicating unit 5022, wherein
  • the working module determining unit 5020 is configured to determine an NFC working mode according to an application triggered by the mobile terminal;
  • the indicating unit 5022 is configured to indicate an NFC antenna for performing NFC communication according to the determined NFC working mode.
  • the data collected by the sensor is physical posture information and mobile trend information of the mobile terminal acquired by the sensing device;
  • the communication indication is determined
  • the module 502 includes: a first operation obtaining unit 5024 and a first instruction communication unit 5026, wherein the first operation obtaining unit 5024 is configured to perform operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal. ;
  • the first indication communication unit 5026 is configured to perform an NFC antenna for performing NFC communication according to the physical posture and the movement tendency indication;
  • the communication indication determination module 502 includes: a second operation acquisition unit 5028 and a second operation acquisition unit 50210, which in FIG. 7 both include a first operation acquisition unit 5024, a first indication communication unit 5026, a second operation acquisition unit 5028, and The second operation acquisition unit 50210 is described as an example, wherein
  • the second operation obtaining unit 5028 is configured to calculate data collected by the sensor according to the sensing algorithm, and obtain distance and angle information of the mobile terminal and the external device;
  • the second indication communication unit 50210 is configured to indicate an NFC antenna for performing NFC communication based on the distance and angle information.
  • the antenna selection module 504 in the embodiment of the present invention may further include a prioritization unit and a selection unit, where
  • the priority ordering unit is configured to perform priority ordering on at least two NFC antennas indicated by the NFC communication indication information by using statistics obtained by using the NFC antenna usage habit; the selecting unit is configured to select a NFC antenna with a high priority NFC communication with external devices.
  • the plurality of NFC switched near field communication devices 50 include an operation state acquisition module 500, and a communication indication
  • the determination module 502 and the antenna selection module 504 may further include a control trigger receiving module 506, wherein
  • the control trigger receiving module 506 is configured to receive a control trigger instruction sent by the second processor; and trigger the working state obtaining module 500, the communication indication determining module 502, and the antenna selecting module 504 to perform an operation; the second processor is configured to operate the device The main processor of each program.
  • the functions of the functional modules in the NFC-switched near-field communication device 50 in the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, that is, the specific reference may be made to FIG. 1 to FIG. 4 above. The method item embodiment in the description is not repeated here.
  • the present invention also provides related equipment for implementing the above solution.
  • the following is a schematic structural diagram of an embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention shown in FIG. 9, the mobile terminal 90 comprising: a first processor 900, a control switch 902, at least two NFC antennas 904, and at least one sensor 906; where
  • the first processor 900 acquires the current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor; the data collected by the sensor is performed by the at least one sensor 906 on the mobile terminal 90. Collected data;
  • the first processor 900 determines NFC communication indication information of the mobile terminal according to the working state, where the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
  • the first processor 900 selects at least one NFC antenna from the plurality of NFC antennas 904 through the control switch 902 to perform NFC communication with the external device according to the determined NFC communication indication information.
  • the first processor 900 determines the NFC communication indication information of the mobile terminal 90 according to the working status, and specifically includes: an application triggered according to the mobile terminal 90. Determining an NFC operating mode; indicating an NFC antenna for performing NFC communication according to the determined NFC operating mode.
  • NFC communication with external devices includes:
  • One of the at least two NFC antennas 904 provided by the external card reader is used to power up, and the triggered NFC antenna is selected for NFC communication with the external card reader.
  • the data collected by the sensor is physical posture information and movement trend information of the mobile terminal 90 acquired by the at least one sensor 906; when the working state is data collected by the sensor, the first processor 900 is according to the working state. Determining the NFC communication indication information of the mobile terminal 90 includes:
  • the first processor 900 selects at least one NFC antenna and the external device from the plurality of NFC antennas according to the determined NFC communication indication information. Perform NFC communication, including:
  • the statistics of the usage habits of the NFC antenna are used to prioritize at least two NFC antennas indicated by the NFC communication indication information; and the NFC antenna with a high priority is selected to perform NFC communication with an external device.
  • the mobile terminal 90 includes: a first processor 900, a control switch 902, and at least two NFC antennas
  • An 904 and an at least one sensor 906 may further include an NFC chip 908, wherein
  • the first processor 908 connects the NFC chip 908 to the selected at least one NFC antenna 904 via the control switch 902 to process the data received by the selected at least one NFC antenna.
  • the mobile terminal 90 includes: a first processor 900, a control switch 902, and at least two NFC antennas 904.
  • the at least one sensor 906 and the NFC chip 908 may further include a second processor 9010.
  • the second processor 9010 is a main processor that runs the programs for the mobile terminal 90.
  • the second processor 9010 controls the triggering of the first processor 900.
  • the antenna performs NFC communication with an external device.
  • the mobile terminal 90 in the embodiment of the present invention may include, but is not limited to, a mobile phone, a personal digital assistant, and the like.
  • the function of each functional module in the mobile terminal 90 may be according to the method in the foregoing method embodiment.
  • the method item embodiments in the foregoing FIG. 1 to FIG. 4 may be specifically referred to, and details are not described herein again.
  • the embodiment of the present invention implements NFC communication indication information of the mobile terminal based on the current working state of the mobile terminal, and selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device, and solves the problem.
  • the mobile terminal must perform problems within a specified structural plane and angle range, greatly improving the success rate, and enabling the user to pass any handheld party.
  • Non-contact communication at any angle or at any angle improves the NFC communication function and NFC communication efficiency of the mobile terminal, and can reduce the power consumption of the main processor of the mobile device by triggering the low-power processor to control the contactless communication of the antenna.
  • the storage medium may be a magnetic disk, an optical disk, a read-only storage memory, or a random storage memory.

Abstract

Disclosed is a near field communication method for a plurality of NFC switches, comprising: acquiring a current working state of a mobile terminal, wherein the working state is information about an application program triggered by the mobile terminal and/or data collected by a sensor; determining NFC communication indication information about the mobile terminal according to the working state, wherein the NFC communication indication information is used for indicating an NFC antenna to perform NFC communication; and selecting at least one NFC antenna from a plurality of NFC antennas, according to the determined NFC communication indication information, to perform NFC communication with an external device. Correspondingly, also disclosed are a near field communication apparatus for a plurality of NFC switches and a mobile terminal. By employing the present invention, the problem in the prior art that a mobile terminal must perform in an appointed structural plane and angle range is solved, and the success rate of NFC communication is greatly improved.

Description

一种近场通信方法、 装置及系统 技术领域  Near field communication method, device and system
本发明涉及近场通信技术领域, 尤其涉及一种无线通信方法、相关装置及 系统。 背景技术  The present invention relates to the field of near field communication technologies, and in particular, to a wireless communication method, related apparatus, and system. Background technique
非接触通信是基于磁场耦合方式在两个线圈(天线 )间进行数据传输的无 线通讯技术,因此通信的有效距离和有效范围十分有限。例如,近场通信(Near Field Communication , NFC )技术, NFC技术是一种非接触极短距离通信技 术, 三种基本功能分别是类似于非接触卡如公交卡的卡模式、非接触读卡器或 刷卡器的读写模式,以及用于快速传递小容量数据的点对点通信( Peer to Peer, P2P )模式。  Non-contact communication is a wireless communication technology that performs data transmission between two coils (antennas) based on a magnetic field coupling method, so the effective distance and effective range of communication are very limited. For example, Near Field Communication (NFC) technology, NFC technology is a non-contact very short-range communication technology. The three basic functions are card mode similar to contactless cards such as bus cards, and contactless card readers. Or the card reader's read and write mode, and the Peer to Peer (P2P) mode for fast delivery of small-capacity data.
非接触近距离通信往往由于金属会阻隔磁力线,使得天线的工作范围会受 到终端金属结构影响和限制,往往必须使用指定的位置在一定距离和角度上才 能进行非接触通信。 即, 通过单一的天线, 移动终端必须在指定结构面(例如 该移动终端背面 )和角度范围内进行非接触通信, 无法做到任意手持方式和任 意角度进行非接触通信,使得移动终端的 NFC通信功能差, NFC通信效率低。 发明内容  Non-contact close-range communication is often caused by metal blocking magnetic lines of force, so that the working range of the antenna is affected and limited by the terminal metal structure. It is often necessary to use a specified position at a certain distance and angle for non-contact communication. That is, through a single antenna, the mobile terminal must perform contactless communication within a specified structural plane (for example, the back of the mobile terminal) and an angle range, and cannot perform non-contact communication in any handheld mode and at any angle, so that the NFC communication of the mobile terminal is achieved. Poor function, NFC communication is inefficient. Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种无线通信方法、相关装 置及系统,解决了现有技术中移动终端必须在指定结构面和角度范围内进行问 题。  The technical problem to be solved by the embodiments of the present invention is to provide a wireless communication method, related device and system, which solves the problem that the mobile terminal must perform problems within a specified structural plane and angle range in the prior art.
第一方面, 本发明实施例提供了一种多个 NFC切换的近场通信方法, 包 括:  In a first aspect, an embodiment of the present invention provides a near field communication method for multiple NFC handovers, including:
获取移动终端当前的工作状态,所述工作状态为所述移动终端触发的应用 程序信息和 /或传感器采集的数据;  Obtaining a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
根据所述工作状态确定所述移动终端的 NFC通信指示信息,所述 NFC通 信指示信息用于指示进行 NFC通信的 NFC天线; Determining NFC communication indication information of the mobile terminal according to the working status, the NFC communication The letter indication information is used to indicate an NFC antenna for performing NFC communication;
根据确定的所述 NFC通信指示信息从多个 NFC天线中选取至少一个 NFC 天线与外部设备进行 NFC通信。  And selecting at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
结合第一方面,在第一种可能的实现方式中, 当所述工作状态为所述移动 终端触发的应用程序信息时,所述根据所述工作状态确定所述移动终端的 NFC 通信指示信息, 具体包括:  With reference to the first aspect, in a first possible implementation manner, when the working status is application information triggered by the mobile terminal, determining, according to the working status, determining NFC communication indication information of the mobile terminal, Specifically include:
根据所述移动终端触发的应用程序判断出 NFC工作模式;  Determining an NFC working mode according to an application triggered by the mobile terminal;
根据判断出的所述 NFC工作模式指示进行 NFC通信的 NFC天线。  The NFC antenna for performing NFC communication is instructed according to the determined NFC operation mode.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中, 当 判断出 NFC工作模式为卡模式时,所述根据确定的所述 NFC通信指示信息从 多个 NFC天线中选取至少一个 NFC天线与外部设备进行 NFC通信包括: 通过外部读卡器触发设有的至少两个 NFC天线中的一个 NFC天线进行取 电, 选取触发的所述 NFC天线与所述外部读卡器进行 NFC通信。  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, when determining that the NFC working mode is a card mode, the determining, according to the determined NFC communication indication information, from multiple NFC antennas Selecting at least one NFC antenna for NFC communication with an external device includes: triggering, by an external card reader, one of the at least two NFC antennas provided for powering, selecting the triggered NFC antenna and the external card reader The device performs NFC communication.
结合第一方面, 或者第一方面的第一种可能的实现方式, 或者第一方面的 第二种可能的实现方式,在第三种可能的实现方式中, 所述传感器采集的数据 为通过传感器获取的所述移动终端的物理姿态信息和移动趋势信息;当所述工 作状态为传感器采集的数据时, 所述根据所述工作状态确定所述移动终端的 NFC通信指示信息, 具体包括:  With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the data collected by the sensor is a Obtaining the physical posture information and the mobile trend information of the mobile terminal; when the working status is the data collected by the sensor, determining the NFC communication indication information of the mobile terminal according to the working status, specifically:
根据传感算法对所述传感器采集的数据进行运算,获取所述移动终端的物 理姿态和移动趋势; 根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC 天线; 或者  Performing operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal; and an NFC antenna for performing NFC communication according to the physical posture and the moving trend indication; or
根据传感算法对所述传感器采集的数据进行运算,获取所述移动终端与外 部设备的距离和角度信息; 根据所述距离和角度信息指示进行 NFC 通信的 NFC天线。  Performing operations on the data collected by the sensor according to the sensing algorithm to obtain distance and angle information of the mobile terminal and the external device; and indicating the NFC antenna for performing NFC communication according to the distance and angle information.
结合第一方面, 或者第一方面的第一种可能的实现方式, 或者第一方面的 第二种可能的实现方式,或者第一方面的第三种可能的实现方式,在第四种可 能的实现方式中,当所述 NFC通信指示信息指示至少两根 NFC天线进行 NFC 通信时,所述根据确定的所述 NFC通信指示信息从多个 NFC天线中选取至少 一个 NFC天线与外部设备进行 NFC通信, 具体包括: 通过统计对 NFC天线的使用习惯得到的统计数据,对所述 NFC通信指示 信息指示的至少两根 NFC天线进行使用优先级排序; With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible In an implementation manner, when the NFC communication indication information indicates that at least two NFC antennas perform NFC communication, the selecting, according to the determined NFC communication indication information, selecting at least one NFC antenna from a plurality of NFC antennas to perform NFC communication with an external device. Specifically, including: Prioritizing the use of at least two NFC antennas indicated by the NFC communication indication information by using statistical data obtained by using the usage convention of the NFC antenna;
选取优先级高的 NFC天线与外部设备进行 NFC通信。  Select a high priority NFC antenna for NFC communication with an external device.
第二方面, 本发明实施例提供了一种多个 NFC切换的近场通信装置, 包 括:  In a second aspect, an embodiment of the present invention provides a NFC switching near field communication device, including:
工作状态获取模块, 用于获取移动终端当前的工作状态, 所述工作状态为 所述移动终端触发的应用程序信息和 /或传感器采集的数据;  a working state obtaining module, configured to acquire a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
通信指示确定模块, 用于根据所述工作状态确定当前设备的 NFC通信指 示信息, 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线;  a communication indication determining module, configured to determine, according to the working state, NFC communication indication information of the current device, where the NFC communication indication information is used to indicate an NFC antenna that performs NFC communication;
天线选取模块,用于根据确定的所述 NFC通信指示信息从多个 NFC天线 中选取至少一个 NFC天线与外部设备进行 NFC通信。  And an antenna selection module, configured to select at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
结合第二方面,在第一种可能的实现方式中, 当所述工作状态为所述移动 终端触发的应用程序信息时, 所述通信指示确定模块包括:  With reference to the second aspect, in a first possible implementation, when the working status is the application information triggered by the mobile terminal, the communication indication determining module includes:
工作模块判断单元, 用于根据所述移动终端触发的应用程序判断出 NFC 工作模式;  a working module determining unit, configured to determine an NFC working mode according to an application triggered by the mobile terminal;
指示单元, 用于根据判断出的所述 NFC工作模式指示进行 NFC通信的 NFC天线。  And an indicating unit, configured to indicate, according to the determined NFC working mode, an NFC antenna that performs NFC communication.
结合第二方面, 或者第二方面的第一种可能的实现方式,在第二种可能的 实现方式中,所述传感器采集的数据为通过传感设备获取的所述移动终端的物 理姿态信息和移动趋势信息; 当所述工作状态为传感器采集的数据时, 所述通 信指示确定模块包括:  With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner, the data collected by the sensor is physical posture information of the mobile terminal acquired by the sensing device, and Moving trend information; when the working state is data collected by the sensor, the communication indication determining module includes:
第一运算获取单元, 用于根据传感算法对传感器采集的数据进行运算, 获 取所述移动终端的物理姿态和移动趋势; 第一指示通信单元, 用于根据所述物 理姿态和移动趋势指示进行 NFC通信的 NFC天线; 或者  a first operation acquiring unit, configured to perform operation on the data collected by the sensor according to the sensing algorithm, to obtain a physical posture and a moving tendency of the mobile terminal, and a first indication communication unit, configured to perform, according to the physical posture and the movement trend indication NFC antenna for NFC communication; or
第二运算获取单元, 用于根据传感算法对传感器采集的数据进行运算, 获 取所述移动终端与外部设备的距离和角度信息; 第二指示通信单元, 用于根据 所述距离和角度信息指示进行 NFC通信的 NFC天线。  a second operation acquiring unit, configured to perform operation on the data collected by the sensor according to the sensing algorithm, to obtain distance and angle information of the mobile terminal and the external device; and a second indication communication unit, configured to indicate according to the distance and the angle information NFC antenna for NFC communication.
结合第二方面, 或者第二方面的第一种可能的实现方式, 或者第二方面的 第二种可能的实现方式, 在第三种可能的实现方式中, 当所述 NFC通信指示 信息指示至少两根 NFC天线进行 NFC通信时, 所述天线选取模块包括: 优先级排序单元,用于通过统计对 NFC天线的使用习惯得到的统计数据, 对所述 NFC通信指示信息指示的至少两根 NFC天线进行使用优先级排序; 选取单元, 用于选取优先级高的 NFC天线与外部设备进行 NFC通信。 第三方面, 本发明实施例提供了一种具有多个 NFC天线的移动终端, 包 括: 第一处理器、 控制开关、 至少两个 NFC天线和至少一个传感器; With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner, when the NFC communication indication When the information indicates that at least two NFC antennas perform NFC communication, the antenna selection module includes: a priority sorting unit, configured to collect at least two indications of the NFC communication indication information by collecting statistical data obtained by using the NFC antenna. The root NFC antenna performs priority ordering; the selecting unit is configured to select an NFC antenna with a high priority to perform NFC communication with an external device. In a third aspect, an embodiment of the present invention provides a mobile terminal having multiple NFC antennas, including: a first processor, a control switch, at least two NFC antennas, and at least one sensor;
所述第一处理器获取移动终端当前的工作状态,所述工作状态为所述移动 终端触发的应用程序信息和 /或传感器采集的数据; 所述传感器采集的数据为 通过所述至少一个传感器对所述移动终端进行采集得到的数据;  Obtaining, by the first processor, a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor; and the data collected by the sensor is through the at least one sensor pair The mobile terminal performs data collected by the mobile terminal;
所述第一处理器^^据所述工作状态确定所述移动终端的 NFC通信指示信 息, 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线;  Determining, by the first processor, the NFC communication indication information of the mobile terminal according to the working state, where the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
所述第一处理器根据确定的所述 NFC通信指示信息, 通过所述控制开关 从多个 NFC天线中选取至少一个 NFC天线与外部设备进行 NFC通信。  And the first processor selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device by using the control switch according to the determined NFC communication indication information.
结合第三方面,在第一种可能的实现方式中, 当所述工作状态为所述移动 终端触发的应用程序信息时,所述第一处理器根据所述工作状态确定所述移动 终端的 NFC通信指示信息, 具体包括:  With reference to the third aspect, in a first possible implementation manner, when the working status is application information triggered by the mobile terminal, the first processor determines, according to the working status, the NFC of the mobile terminal. The communication indication information specifically includes:
根据所述移动终端触发的应用程序判断出 NFC工作模式; 根据判断出的 所述 NFC工作模式指示进行 NFC通信的 NFC天线。  Determining an NFC operating mode according to an application triggered by the mobile terminal; and indicating an NFC antenna for performing NFC communication according to the determined NFC working mode.
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中, 当 所述第一处理器判断出 NFC工作模式为卡模式时, 所述第一处理器根据确定 的所述 NFC通信指示信息,通过控制开关 902从多个 NFC天线 904中选取至 少一个 NFC天线与外部设备进行 NFC通信包括:  With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner, when the first processor determines that the NFC working mode is a card mode, the first processor is determined according to the determined Determining the NFC communication indication information, selecting at least one NFC antenna from the plurality of NFC antennas 904 through the control switch 902 to perform NFC communication with the external device includes:
通过外部读卡器触发设有的至少两个 NFC天线中的一个 NFC天线进行取 电, 选取触发的所述 NFC天线与所述外部读卡器进行 NFC通信。  One of the at least two NFC antennas provided by the external card reader is used for powering, and the triggered NFC antenna is selected to perform NFC communication with the external card reader.
结合第三方面, 或者第三方面的第一种可能的实现方式, 或者第三方面的 第二种可能的实现方式,在第三种可能的实现方式中,所述传感器采集的数据 为通过所述至少一个传感器获取的所述移动终端的物理姿态信息和移动趋势 信息; 当所述工作状态为传感器采集的数据时, 所述第一处理器根据所述工作 状态确定所述移动终端的 NFC通信指示信息, 具体包括: 根据传感算法对传感器采集的数据进行运算,获取所述移动终端的物理姿 态和移动趋势;根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC天线; 或者 With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner, the data collected by the sensor is Determining, by the at least one sensor, physical posture information and movement trend information of the mobile terminal; when the working state is data collected by the sensor, the first processor determines, according to the working state, the NFC communication of the mobile terminal Instructions, including: Performing operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal; and an NFC antenna for performing NFC communication according to the physical posture and the moving trend indication; or
根据传感算法对传感器采集的数据进行运算,获取所述移动终端与外部设 备的距离和角度信息;根据所述距离和角度信息指示进行 NFC通信的 NFC天 结合第三方面, 或者第三方面的第一种可能的实现方式, 或者第三方面的 第二种可能的实现方式, 或者第三方面的第三种可能的实现方式,在第四种可 能的实现方式中,当所述 NFC通信指示信息指示至少两根 NFC天线进行 NFC 通信时,所述第一处理器根据确定的所述 NFC通信指示信息从多个 NFC天线 中选取至少一个 NFC天线与外部设备进行 NFC通信, 具体包括:  Performing operation on the data collected by the sensor according to the sensing algorithm to obtain distance and angle information of the mobile terminal and the external device; and indicating NFC days for performing NFC communication according to the distance and angle information, combining the third aspect, or the third aspect The first possible implementation manner, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, in the fourth possible implementation manner, when the NFC communication indication When the information indicates that the NFC communication is performed by the at least two NFC antennas, the first processor performs NFC communication with the external device by selecting at least one NFC antenna from the plurality of NFC antennas according to the determined NFC communication indication information, and specifically includes:
通过统计对 NFC天线的使用习惯得到的统计数据,对所述 NFC通信指示 信息指示的至少两根 NFC天线进行使用优先级排序;  The at least two NFC antennas indicated by the NFC communication indication information are prioritized by using statistical data obtained by using the NFC antenna usage habits;
选取优先级高的 NFC天线与外部设备进行 NFC通信。  Select a high priority NFC antenna for NFC communication with an external device.
结合第三方面, 或者第三方面的第一种可能的实现方式, 或者第三方面的 第二种可能的实现方式, 或者第三方面的第三种可能的实现方式, 或者第三方 面的第四种可能的实现方式,在第五种可能的实现方式中, 所述移动终端还包 括第二处理器, 所述第二处理器为所述移动终端运行各程序的主处理器;  With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, or the third aspect In a fifth possible implementation manner, the mobile terminal further includes a second processor, where the second processor is a main processor running each program of the mobile terminal;
通过第二处理器控制触发第一处理器执行获取移动终端当前的工作状态; 根据所述工作状态确定所述移动终端的 NFC通信指示信息, 根据确定的所述 NFC通信指示信息,通过所述控制开关从多个 NFC天线中选取至少一个 NFC 天线与外部设备进行 NFC通信。  And triggering, by the second processor, the first processor to perform acquiring the current working state of the mobile terminal; determining, according to the working state, the NFC communication indication information of the mobile terminal, according to the determined NFC communication indication information, by using the control The switch selects at least one NFC antenna from the plurality of NFC antennas for NFC communication with an external device.
通过实施本发明实施例,基于移动终端当前的工作状态确定所述移动终端 的 NFC通信指示信息, 从多个 NFC天线中选取至少一个 NFC天线与外部设 备进行 NFC通信, 解决了现有技术中移动终端必须在指定结构面和角度范围 内进行问题, 大大提高了 NFC通信的成功率, 可以实现让用户通过任意手持 方式或任意角度进行非接触通信,提高了移动终端的 NFC通信功能和 NFC通 信效率, 并可以通过触发低功耗处理器控制天线的非接触通信, 降低移动设备 的主处理器的功耗。 附图说明 The NFC communication indication information of the mobile terminal is determined according to the current working state of the mobile terminal, and at least one NFC antenna is selected from the plurality of NFC antennas to perform NFC communication with the external device, thereby solving the mobile terminal in the prior art. The problem must be carried out within the specified structural plane and angle range, which greatly improves the success rate of NFC communication, and enables the user to perform non-contact communication through any handheld mode or any angle, thereby improving the NFC communication function and NFC communication efficiency of the mobile terminal. The power consumption of the mobile device's main processor can be reduced by triggering a low-power processor to control the contactless communication of the antenna. DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需 要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1是本发明提供的多个 NFC切换的近场通信方法的实施例的流程示意 图;  1 is a schematic flow chart of an embodiment of a near field communication method for multiple NFC handovers provided by the present invention;
图 2是本发明提供的多个 NFC切换的近场通信方法的另一实施例的流程 示意图;  2 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention;
图 3是本发明提供的多个 NFC切换的近场通信方法的另一实施例的流程 示意图;  3 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention;
图 4是本发明提供的多个 NFC切换的近场通信方法的另一实施例的流程 示意图;  4 is a schematic flow chart of another embodiment of a near field communication method for multiple NFC handovers provided by the present invention;
图 5是本发明的多个 NFC切换的近场通信装置的实施例的结构示意图; 图 6是本发明的通信指示确定模块的实施例的结构示意图;  5 is a schematic structural diagram of an embodiment of a plurality of NFC-switched near field communication devices according to the present invention; FIG. 6 is a schematic structural diagram of an embodiment of a communication indication determining module of the present invention;
图 7是本发明的通信指示确定模块的另一实施例的结构示意图; 图 8是本发明的多个 NFC切换的近场通信装置的另一实施例的结构示意 图;  7 is a schematic structural diagram of another embodiment of a communication indication determining module of the present invention; FIG. 8 is a schematic structural view of another embodiment of a plurality of NFC switched near field communication devices according to the present invention;
图 9是本发明的具有多个 NFC天线的移动终端的实施例的结构示意图; 图 10是本发明的具有多个 NFC天线的移动终端的另一实施例的结构示意 图;  9 is a schematic structural view of an embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention; and FIG. 10 is a schematic structural view of another embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention;
图 11是本发明的具有多个 NFC天线的移动终端的另一实施例的结构示意 图。 具体实施方式  Figure 11 is a schematic structural view of another embodiment of a mobile terminal having a plurality of NFC antennas of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 需要说明的是, 当元件被称为 "固定于" 或 "设置于" 另一个元件, 它可 以直接在另一个元件上或者可能同时存在居中元件。 当一个元件被称为是 "连 接于"另一个元件, 它可以是直接连接到另一个元件或者可能同时存在居中元 件。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, one of ordinary skill in the art does not create All other embodiments obtained under the premise of sexual labor are within the scope of protection of the present invention. It should be noted that when an element is referred to as being "fixed" or "in" another element, the element can be directly on the other element or possibly at the same time. When an element is referred to as being "connected" to another element, it can be either directly connected to the other element or the.
还需要说明的是, 本实施例中的左、 右、 上、 下等方位用语, 仅是互为相 对概念或是以产品的正常使用状态为参考的, 而不应该认为是具有限制性的。  It should also be noted that the left, right, upper, lower, and the like orientations in this embodiment are merely relative concepts or reference to the normal use state of the product, and should not be considered as limiting.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨 在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的 "一 种"、 "所述"和 "该"也旨在包括多数形式, 除非上下文清楚地表示其他含义。 还应当理解, 本文中使用的术语 "和 /或" 是指并包含一个或多个相关联的列 出项目的任何或所有可能组合。  The terms used in the embodiments of the present invention are for the purpose of describing particular embodiments only, and are not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解, 尽管在本发明实施例中可能采用术语第一、 第二、 第三等来描 述各种功能模块或单元,但这些功能模块或单元不应限于这些术语。这些术语 仅用来将各功能模块或单元彼此区分开。  It should be understood that although the terms first, second, third, etc. may be used to describe various functional modules or units in the embodiments of the present invention, these functional modules or units should not be limited to these terms. These terms are only used to distinguish each functional module or unit from one another.
需要说明的是, 本发明实施例中的近距离非接触通信包括但不限于 NFC 通信等射频识别通信,只要须通过天线与外部设备进行近距离非接触通信即可 本发明实施例, 本发明实施例以 NFC通信为例进行说明:  It should be noted that the short-range contactless communication in the embodiment of the present invention includes, but is not limited to, radio frequency identification communication such as NFC communication, as long as the short-distance non-contact communication with the external device is required through the antenna, the embodiment of the present invention is implemented. For example, NFC communication is used as an example:
参见图 1 , 是本发明提供的多个 NFC切换的近场通信方法的实施例的流 程示意图, 该方法包括:  Referring to FIG. 1 , which is a schematic flowchart of an embodiment of a NFC switching near field communication method provided by the present invention, the method includes:
步骤 S100: 移动终端获取移动终端当前的工作状态;  Step S100: The mobile terminal acquires a current working state of the mobile terminal.
具体地,本发明实施例中的工作状态为移动终端自身触发的应用程序信息 和 /或传感器采集的数据; 移动终端触发的应用程序可以包括 NFC支付程序、 NFC家电控制程序或 NFC文件传输程序等; 传感器采集的数据可以包括通过 陀螺仪、 加速度计、 位移传感器、 指南针、 接近光 /光感传感器、 照相机等至 少一个传感器采集得到的传感器采集的数据,如移动终端的物理姿态信息和移 动趋势信息等;该物理姿态即移动终端水平正面朝上、水平正面朝下、正竖立、 倒竖立、前正倾斜或左侧倾斜等各种倾斜姿态等, 该移动趋势即移动终端运动 轨迹以及运动趋势等。 步骤 S102: 移动终端根据所述工作状态确定所述移动终端的 NFC通信指 示信息; 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线; Specifically, the working state in the embodiment of the present invention is application information triggered by the mobile terminal itself and/or data collected by the sensor; the application program triggered by the mobile terminal may include an NFC payment program, an NFC home appliance control program, or an NFC file transmission program. The data collected by the sensor may include data collected by sensors collected by at least one sensor such as a gyroscope, an accelerometer, a displacement sensor, a compass, a proximity light/light sensor, a camera, etc., such as physical attitude information and movement trend information of the mobile terminal. The physical posture is a tilting posture such as a horizontally upward direction of the mobile terminal, a horizontally facing downward, a vertical erect, an inverted erect, a front positive tilt, or a left tilt. The mobile trend is a mobile terminal motion trajectory and a motion trend. . Step S102: The mobile terminal determines NFC communication indication information of the mobile terminal according to the working state; the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
步骤 S104: 移动终端根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信。  Step S104: The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
具体地, 移动终端设有至少两个 NFC天线用于与外部设备进行非接触通 信, 如移动终端的正面与背面各设有一个天线, 那么当移动终端确定的 NFC 通信指示信息指示移动终端背面的 NFC天线与外部设备进行非接触通信时, 则移动终端选取背面的 NFC天线进行 NFC通信; 当确定的 NFC通信指示信 息指示移动终端正面的天线与外部设备进行非接触通信时,则选取正面的 NFC 天线进行 NFC通信。  Specifically, the mobile terminal is provided with at least two NFC antennas for non-contact communication with an external device. For example, each of the front and the back of the mobile terminal is provided with an antenna, and then the NFC communication indication information determined by the mobile terminal indicates the back of the mobile terminal. When the NFC antenna performs non-contact communication with an external device, the mobile terminal selects the NFC antenna on the back side for NFC communication; when the determined NFC communication indication information indicates that the antenna on the front side of the mobile terminal performs contactless communication with the external device, the front NFC is selected. The antenna performs NFC communication.
通过实施本发明实施例,基于移动终端当前的工作状态确定所述移动终端 的 NFC通信指示信息, 从多个 NFC天线中选取至少一个 NFC天线与外部设 备进行 NFC通信, 解决了现有技术中移动终端必须在指定结构面和角度范围 内进行问题, 大大提高了 NFC通信的成功率, 可以实现让用户通过任意手持 方式或任意角度进行非接触通信,提高了移动终端的 NFC通信功能和 NFC通 信效率, 并可以通过触发低功耗处理器控制天线的非接触通信, 降低移动设备 的主处理器的功耗。  The NFC communication indication information of the mobile terminal is determined according to the current working state of the mobile terminal, and at least one NFC antenna is selected from the plurality of NFC antennas to perform NFC communication with the external device, thereby solving the mobile terminal in the prior art. The problem must be carried out within the specified structural plane and angle range, which greatly improves the success rate of NFC communication, and enables the user to perform non-contact communication through any handheld mode or any angle, thereby improving the NFC communication function and NFC communication efficiency of the mobile terminal. The power consumption of the mobile device's main processor can be reduced by triggering a low-power processor to control the contactless communication of the antenna.
进一步地, 如图 2示出的本发明提供的多个 NFC切换的近场通信方法的 另一实施例的流程示意图,当所述工作状态为所述移动终端触发的应用程序信 息时, 该方法包括:  Further, a schematic flowchart of another embodiment of a plurality of NFC-switched near field communication methods provided by the present invention, as shown in FIG. 2, when the working state is application information triggered by the mobile terminal, the method Includes:
步骤 S200: 移动终端获取移动终端当前的工作状态;  Step S200: The mobile terminal acquires a current working state of the mobile terminal.
步骤 S202: 移动终端根据所述移动终端触发的应用程序判断出 NFC工作 模式;  Step S202: The mobile terminal determines an NFC working mode according to an application triggered by the mobile terminal.
具体地, NFC工作模式可以分为卡模式、 读写模式和 P2P模式, 其中卡 模式是指 NFC通信装置模拟成一张卡, 这张卡下载应用后, 可以进行刷卡消 费。 读写模式是指 NFC通信装置可以读卡, 比如读银行卡上的余额, 公交卡 余额等,还可以当 POS机用。 P2P模式是指两个 NFC通信装置可以交换数据。 那么, 根据移动终端触发的应用程序可判断出 NFC工作模式, 例如, 若移动 终端触发了 NFC支付应用程序, 那么可判断出工作模式为卡模式; 若移动终 端触发 NFC家电控制应用程序, 那么可判断出工作模式为读写模式; 若移动 终端触发 NFC文件传输应用程序,那么可判断出工作模式为 P2P模式,等等。 Specifically, the NFC working mode can be divided into a card mode, a read/write mode, and a P2P mode, wherein the card mode refers to the NFC communication device being simulated into a card, and after the card is downloaded and applied, the card can be consumed. The read/write mode means that the NFC communication device can read the card, such as reading the balance on the bank card, the balance of the bus card, etc., and can also be used as a POS machine. P2P mode means that two NFC communication devices can exchange data. Then, according to the application triggered by the mobile terminal, the NFC working mode can be determined. For example, if the mobile terminal triggers the NFC payment application, it can be determined that the working mode is the card mode; When the NFC appliance control application is triggered, the working mode can be determined to be the read/write mode; if the mobile terminal triggers the NFC file transfer application, the working mode can be determined to be the P2P mode, and so on.
步骤 S204: 移动终端根据判断出的所述 NFC工作模式指示进行 NFC通 信的 NFC天线;  Step S204: The mobile terminal instructs the NFC antenna that performs NFC communication according to the determined NFC working mode.
具体地, 可以通过默认设定, 设定指示某个具体的 NFC工作模式对应用 户倾向使用的 NFC天线, 比如当 NFC工作模式为卡模式时, 用户会倾向手持 移动终端的背面或者正面进行 NFC 通信, 那么可指示使用移动终端的背面 NFC天线或者正面 NFC天线进行 NFC通信; 又如当 NFC工作模式为读写模 式时, 用户会倾向使用前侧面、 左侧面或右侧面进行 NFC通信, 那么可指示 使用移动终端的正前侧面 NFC天线、 左侧面 NFC天线或右侧面 NFC天线进 行 NFC通信;  Specifically, the default setting may be used to indicate that a specific NFC working mode corresponds to an NFC antenna that the user prefers to use. For example, when the NFC working mode is the card mode, the user may prefer NFC communication on the back or front side of the handheld mobile terminal. , then it can be instructed to use the back NFC antenna of the mobile terminal or the front NFC antenna for NFC communication; and when the NFC working mode is the read/write mode, the user tends to use the front side, the left side or the right side for NFC communication, then Instructing to use the front side NFC antenna of the mobile terminal, the left side NFC antenna, or the right side NFC antenna for NFC communication;
步骤 S206: 移动终端根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信。  Step S206: The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
具体地, 当上述指示进行 NFC通信的 NFC天线只有一根时, 直接选取该 NFC天线与外部设备进行 NFC通信; 当上述指示进行 NFC通信的 NFC天线 有至少两根时, 可以通过统计对 NFC天线的使用习惯得到的统计数据, 对所 述 NFC通信指示信息指示的至少两根 NFC天线进行使用优先级排序;然后选 取优先级高的 NFC天线与外部设备进行 NFC通信。 详细地, 假设在移动终端 的正面、 背面和正前侧面都设有一个 NFC天线, 那么可以根据用户的使用习 惯对设有的该两个 NFC天线进行使用优先级的排序, 比如当 NFC工作模式为 卡模式对应指示使用移动终端的背面 NFC天线或者正面 NFC天线进行 NFC 通信时, 可以通过对当前用户使用习惯的统计, 统计出用户更加习惯使用正面 的 NFC天线进行非接触通信,那么可以设置正面 NFC天线的使用优先级高于 背面 NFC天线;又比如当 NFC工作模式为读写模式对应指示使用移动终端的 可以通过对当前用户使用习惯的统计, 统计出用户更加习惯使用正前侧面的 NFC天线进行非接触通信, 那么正前侧面的 NFC的使用优先级最高。  Specifically, when there is only one NFC antenna indicating the NFC communication, the NFC antenna is directly selected to perform NFC communication with the external device; when the NFC antenna indicating the NFC communication is at least two, the NFC antenna can be statistically compared. Using the statistical data obtained by the usage habit, the at least two NFC antennas indicated by the NFC communication indication information are prioritized; then the NFC antenna with a high priority is selected to perform NFC communication with the external device. In detail, it is assumed that an NFC antenna is provided on the front, the back, and the front side of the mobile terminal, and the two NFC antennas provided may be prioritized according to the user's usage habits, for example, when the NFC working mode is When the card mode corresponds to the NFC communication using the back NFC antenna or the front NFC antenna of the mobile terminal, the user can be more accustomed to using the front NFC antenna for contactless communication by counting the usage habits of the current user, and then the front NFC can be set. The priority of the antenna is higher than that of the back NFC antenna. For example, when the NFC working mode is the read/write mode, the mobile terminal can be used to count the usage habits of the current user, and the user is more accustomed to using the NFC antenna on the front side. Non-contact communication, then the front side of the NFC has the highest priority.
可理解的,用户的使用习惯可以为用户根据自身需要预先自定义的倾向使 用方式, 或者系统通过统计用户一段时间的使用习惯信息得出的统计数据。 再进一步地, 如图 3示出的本发明提供的多个 NFC切换的近场通信方法 的另一实施例的流程示意图, 当所述工作状态为传感器采集的数据时, 该方法 包括: It can be understood that the user's usage habits may be a user's pre-customized tendency to use according to their own needs, or the system may obtain statistical data obtained by using the user's usage habit information for a period of time. Further, a schematic flowchart of another embodiment of a plurality of NFC-switched near field communication methods provided by the present invention, as shown in FIG. 3, when the working state is data collected by a sensor, the method includes:
步骤 S300: 移动终端获取移动终端当前的工作状态;  Step S300: The mobile terminal acquires a current working state of the mobile terminal.
具体地, 所述移动终端可以设有至少一个传感器, 包括通过陀螺仪、 加速 度计、 指南针、 接近光 /光感传感器、 照相机等; 通过传感器获取的传感器采 集的数据包括移动终端的物理姿态信息和移动趋势信息。  Specifically, the mobile terminal may be provided with at least one sensor, including a gyroscope, an accelerometer, a compass, a proximity light/light sensor, a camera, etc.; the data collected by the sensor acquired by the sensor includes physical posture information of the mobile terminal and Mobile trend information.
步骤 S302: 移动终端根据传感算法对所述传感器采集的数据进行运算, 获取所述移动终端的物理姿态和移动趋势;  Step S302: The mobile terminal performs operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal.
具体地,通过现有的传感算法,将传感器采集的数据进行运算可以得出移 动终端的物理姿态和移动趋势; 该物理姿态即移动终端水平正面朝上、水平正 面朝下、 正竖立、 倒竖立、 前正倾斜或左侧倾斜等各种倾斜姿态等, 该移动趋 势即移动终端运动轨迹以及运动趋势等。  Specifically, the physical sensing posture and the moving tendency of the mobile terminal can be obtained by calculating the data collected by the sensor by using an existing sensing algorithm; the physical posture is that the mobile terminal is horizontally facing upward, horizontally facing downward, is standing upright, and is inverted. Various tilting postures such as erecting, front positive tilting, or left tilting, etc., the moving tendency is the moving trajectory of the mobile terminal and the moving tendency.
步骤 S302: 移动终端根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC天线;  Step S302: The mobile terminal indicates, according to the physical posture and the mobile trend, an NFC antenna that performs NFC communication;
具体地, 4叚设移动终端的正面和背面都设有 NFC天线, 那么, 若当移动 终端当前正面朝下向下移动时, 则可以指示使用移动终端的正面 NFC天线来 进行 NFC通信; 若当移动终端前正倾斜, 以背面往前移动时, 则可以指示使 用移动终端的背面 NFC天线来进行 NFC通信。  Specifically, the NFC antenna is disposed on both the front and the back of the mobile terminal, and then, if the mobile terminal is currently moving face down, the NFC communication may be indicated by using the front NFC antenna of the mobile terminal; The mobile terminal is tilted forward, and when the back is moved forward, the back NFC antenna of the mobile terminal can be instructed to perform NFC communication.
步骤 S304: 移动终端根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信。  Step S304: The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
具体地, 可参考图 2实施例中的步骤 S206, 这里不再赘述。 再进一步地, 如图 4示出的本发明提供的多个 NFC切换的近场通信方法 的另一实施例的流程示意图, 当所述工作状态为传感器采集的数据时, 该方法 包括:  Specifically, reference may be made to step S206 in the embodiment of FIG. 2, and details are not described herein again. Further, a flow chart of another embodiment of a plurality of NFC-switched near field communication methods provided by the present invention as shown in FIG. 4, when the working state is data collected by a sensor, the method includes:
步骤 S400: 移动终端获取移动终端当前的工作状态;  Step S400: The mobile terminal acquires a current working state of the mobile terminal.
具体地, 所述移动终端可以设有至少一个传感器, 包括通过陀螺仪、 加速 度计、 指南针、 接近光 /光感传感器、 照相机等; 通过传感器获取的传感器采 集的数据包括移动终端的物理姿态信息和移动趋势信息。 Specifically, the mobile terminal may be provided with at least one sensor, including a gyroscope, and an acceleration The meter, the compass, the proximity light/light sensor, the camera, etc.; the data collected by the sensor obtained by the sensor includes physical attitude information and movement trend information of the mobile terminal.
步骤 S402: 移动终端根据传感算法对所述传感器采集的数据进行运算, 获取所述移动终端与外部设备的距离和角度信息;  Step S402: The mobile terminal performs calculation on the data collected by the sensor according to the sensing algorithm, and obtains distance and angle information between the mobile terminal and the external device.
具体地,通过现有的传感算法,将传感器采集的数据进行运算可以得出移 动终端与外部设备的距离和角度信息; 即移动终端与外部设备的距离是多少, 相对于该外部设备的方位是多少,或移动终端哪个结构面往该外部设备进行靠 近, 等; 例如, 当前移动终端的左侧面距离外部设备最近, 或者移动终端的背 面正对着外部设备, 等。  Specifically, the existing sensor algorithm is used to calculate the distance and angle information of the mobile terminal and the external device by calculating the data collected by the sensor; that is, the distance between the mobile terminal and the external device, and the orientation of the external device relative to the external device What is, or which structural plane of the mobile terminal is approaching to the external device, etc.; for example, the left side of the current mobile terminal is closest to the external device, or the back side of the mobile terminal is facing the external device, and the like.
步骤 S404:移动终端根据所述距离和角度信息指示进行 NFC通信的 NFC 天线;  Step S404: The mobile terminal indicates, according to the distance and the angle information, an NFC antenna that performs NFC communication.
具体地, 假设移动终端的左侧面、 右侧面、 正面和背面都设有 NFC天线, 那么, 若当前移动终端的左侧面距离外部设备最近时, 则可以指示使用移动终 端的左侧面 NFC天线来进行 NFC通信;若移动终端的背面正对着外部设备时, 则可以指示使用移动终端的背面 NFC天线来进行 NFC通信。  Specifically, it is assumed that the NFC antenna is disposed on the left side, the right side, the front side, and the back side of the mobile terminal. If the left side of the current mobile terminal is closest to the external device, the left side of the mobile terminal may be indicated. The NFC antenna performs NFC communication; if the back side of the mobile terminal is facing the external device, the NFC communication using the back NFC antenna of the mobile terminal can be instructed.
步骤 S406: 移动终端根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信。  Step S406: The mobile terminal selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device according to the determined NFC communication indication information.
具体地, 可参考图 2实施例中的步骤 S206, 这里不再赘述。 需要说明的是,本发明实施例可以同时依据移动终端触发的应用程序信息 和传感器采集的数据, 共同来确定所述移动终端的 NFC通信指示信息:  Specifically, reference may be made to step S206 in the embodiment of FIG. 2, and details are not described herein again. It should be noted that, in the embodiment of the present invention, the NFC communication indication information of the mobile terminal may be determined according to the application information triggered by the mobile terminal and the data collected by the sensor.
例如, 可以在使用根据移动终端触发的应用程序判断出 NFC工作模式, 并根据判断出的所述 NFC工作模式指示进行 NFC通信的 NFC天线后, 再通 过根据传感器采集的数据,获取所述移动终端的物理姿态和移动趋势或者计算 得出移动终端与外部设备的距离和角度信息, 进一步确定指示进行 NFC通信 的 NFC天线, 然后选用最佳的 NFC天线进行非接触通信;  For example, after determining an NFC working mode by using an application triggered by the mobile terminal, and indicating an NFC antenna for performing NFC communication according to the determined NFC working mode, acquiring the mobile terminal according to data collected by the sensor. The physical posture and the movement trend or calculate the distance and angle information of the mobile terminal and the external device, further determine the NFC antenna indicating the NFC communication, and then select the optimal NFC antenna for the contactless communication;
又如, 根据移动终端触发的应用程序判断出 NFC工作模式, 并根据判断 出的所述 NFC工作模式指示进行 NFC通信的 NFC天线, 并选取了 NFC天线 a进行非接触通信; 同时, 进行根据传感器采集的数据, 获取所述移动终端的 物理姿态和移动趋势或者计算得出移动终端与外部设备的距离和角度信息,最 终选取了 NFC天线 b作为切换备份; 当移动终端不能使用 NFC天线 a进行非 接触通信时, 则切换使用 NFC天线 b进行非接触通信。 For example, the NFC operating mode is determined according to the application triggered by the mobile terminal, and the NFC antenna for performing NFC communication is instructed according to the determined NFC working mode, and the NFC antenna a is selected for non-contact communication; Collected data, obtaining the mobile terminal The physical attitude and the movement trend or the distance and angle information of the mobile terminal and the external device are calculated, and finally the NFC antenna b is selected as the switching backup; when the mobile terminal cannot use the NFC antenna a for the non-contact communication, the NFC antenna b is switched. Perform contactless communication.
进一步地,本发明实施例中, 当根据移动终端触发的应用程序判断出 NFC 工作模式为卡模式时,所述根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信包括:通过外部读卡器 触发设有的至少两个 NFC天线中的一个 NFC天线进行取电,选取触发的所述 NFC天线与所述外部读卡器进行非接触通信。 具体地:  Further, in the embodiment of the present invention, when the NFC working mode is determined to be the card mode according to the application triggered by the mobile terminal, the at least one NFC antenna is selected from the plurality of NFC antennas according to the determined NFC communication indication information. Performing NFC communication by the external device includes: triggering, by using an external card reader, one of the at least two NFC antennas provided for powering, and selecting the triggered NFC antenna to perform non-contact communication with the external card reader. specifically:
可以通过用户以任意方式手持移动终端靠近该外部读卡器,由移动终端进 行取电, 并触发选择移动终端的某一个 NFC天线与该外部读卡器进行非接触 通信; 另外, 还可以根据传感器采集的数据, 获取所述移动终端的物理姿态和 移动趋势或者计算得出移动终端与外部设备的距离和角度信息,选取备份的切 换 NFC天线。  The mobile terminal can be manually connected to the external card reader by the user, and the mobile terminal can take power, and trigger an optional NFC antenna of the mobile terminal to perform non-contact communication with the external card reader. In addition, the sensor can also be used according to the sensor. The collected data obtains the physical posture and the movement trend of the mobile terminal or calculates the distance and angle information of the mobile terminal from the external device, and selects the backup switching NFC antenna.
再进一步地,本发明实施例中移动终端还可以通过第二处理器控制触发第 一处理器执行所述根据所述工作状态确定所述移动终端的 NFC 通信指示信 息;根据确定的所述 NFC通信指示信息从多个 NFC天线中选取至少一个 NFC 天线与外部设备进行 NFC通信的步骤; 所述第二处理器为移动终端设备运行 各程序的主处理器。 具体地:  Further, in the embodiment of the present invention, the mobile terminal may further control, by using the second processor, to trigger the first processor to perform the determining, according to the working state, the NFC communication indication information of the mobile terminal; according to the determined NFC communication indication. The step of selecting at least one NFC antenna from the plurality of NFC antennas for NFC communication with an external device; the second processor is a main processor that runs each program of the mobile terminal device. specifically:
移动终端设有第一处理器和第二处理器,其中第二处理器为移动终端设备 运行各程序的主处理器, 例如, 假设移动终端设备为移动智能手机, 那么该第 二处理器为该移动智能手机的 CPU, 即处理各种功能程序的 CPU; 第一处理 器为移动终端的低功耗处理器, 只用于进行本发明实施例中的 NFC天线选取 和控制处理, 从而达到降低第二处理器功耗的目的。 可以通过开关控制,开关控制信号来源于该第一处理器或该第一处理器控制的 芯片, 即通过该第一处理器通过本发明实施例的实施方案,控制该开关来选取 某 NFC天线与 NFC天线芯片相连接来进行非接触通信, 不选取其它 NFC天 线进行非接触通信。  The mobile terminal is provided with a first processor and a second processor, wherein the second processor is a main processor running each program of the mobile terminal device, for example, if the mobile terminal device is a mobile smart phone, then the second processor is the The CPU of the mobile smart phone, that is, the CPU that processes various functional programs; the first processor is a low-power processor of the mobile terminal, and is only used for performing NFC antenna selection and control processing in the embodiment of the present invention, thereby achieving the reduction of the The purpose of the two processor power consumption. The switch control signal may be controlled by the first processor or the chip controlled by the first processor, that is, the first processor controls the switch to select an NFC antenna by using the embodiment of the embodiment of the present invention. The NFC antenna chips are connected for contactless communication, and other NFC antennas are not selected for contactless communication.
通过实施本发明实施例,基于移动终端当前的工作状态确定所述移动终端 的 NFC通信指示信息, 从多个 NFC天线中选取至少一个 NFC天线与外部设 备进行 NFC通信, 解决了现有技术中移动终端必须在指定结构面和角度范围 内进行问题, 大大提高了 NFC通信的成功率, 可以实现让用户通过任意手持 方式或任意角度进行非接触通信,提高了移动终端的 NFC通信功能和 NFC通 信效率, 并可以通过触发低功耗处理器控制天线的非接触通信, 降低移动设备 的主处理器的功耗。 为了便于更好地实施本发明实施例的上述方案,本发明还提供了用于配合 实施上述方案的相关装置。 下面结合图 5示出的本发明的多个 NFC切换的近 场通信装置的实施例的结构示意图, 进行详细说明: Determining the mobile terminal based on a current working state of the mobile terminal by implementing an embodiment of the present invention The NFC communication indication information, selecting at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device, solves the problem that the mobile terminal in the prior art must perform within a specified structural plane and angle range, and greatly improves the success of the NFC communication. The rate can be achieved by allowing the user to perform contactless communication through any handheld mode or any angle, improving the NFC communication function and NFC communication efficiency of the mobile terminal, and reducing the mobile device by triggering the low-power processor to control the contactless communication of the antenna. The power consumption of the main processor. In order to facilitate the better implementation of the above described embodiments of the embodiments of the present invention, the present invention also provides related apparatus for cooperating with the implementation of the above aspects. A structural diagram of an embodiment of a plurality of NFC-switched near field communication devices of the present invention shown in FIG. 5 will be described in detail below:
多个 NFC切换的近场通信装置 50包括: 工作状态获取模块 500、 通信指 示确定模块 502和天线选取模块 504, 其中  The NFC-switched near field communication device 50 includes: an operation status acquisition module 500, a communication indication determination module 502, and an antenna selection module 504, wherein
工作状态获取模块 500用于获取移动终端当前的工作状态,所述工作状态 为所述移动终端触发的应用程序信息和 /或传感器采集的数据;  The working state obtaining module 500 is configured to acquire a current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor;
通信指示确定模块 502用于根据所述工作状态确定当前设备的 NFC通信 指示信息; 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线; 天线选取模块 504用于根据确定的所述 NFC通信指示信息从多个 NFC天 线中选取至少一个 NFC天线与外部设备进行 NFC通信。  The communication indication determining module 502 is configured to determine NFC communication indication information of the current device according to the working state; the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication; and the antenna selection module 504 is configured to use the NFC communication according to the determined The indication information selects at least one NFC antenna from the plurality of NFC antennas for NFC communication with an external device.
具体可参考本发明实施例中图 1的实现方式, 这里不再赘述。  For details, refer to the implementation manner of FIG. 1 in the embodiment of the present invention, and details are not described herein again.
进一步地,如图 6示出的本发明的通信指示确定模块的实施例的结构示意 图, 当所述工作状态为所述移动终端触发的应用程序信息时,通信指示确定模 块 502包括: 工作模块判断单元 5020和指示单元 5022, 其中  Further, as shown in FIG. 6, a schematic structural diagram of an embodiment of the communication indication determining module of the present invention, when the working state is application information triggered by the mobile terminal, the communication indication determining module 502 includes: Unit 5020 and indicating unit 5022, wherein
工作模块判断单元 5020 用于根据所述移动终端触发的应用程序判断出 NFC工作模式;  The working module determining unit 5020 is configured to determine an NFC working mode according to an application triggered by the mobile terminal;
指示单元 5022用于根据判断出的所述 NFC工作模式指示进行 NFC通信 的 NFC天线。  The indicating unit 5022 is configured to indicate an NFC antenna for performing NFC communication according to the determined NFC working mode.
再进一步地,如图 7示出的本发明的通信指示确定模块的另一实施例的结 构示意图,传感器采集的数据为通过传感设备获取的所述移动终端的物理姿态 信息和移动趋势信息; 当所述工作状态为传感器采集的数据时,通信指示确定 模块 502包括: 第一运算获取单元 5024和第一指示通信单元 5026, 其中 第一运算获取单元 5024 用于根据传感算法对传感器采集的数据进行运 算, 获取所述移动终端的物理姿态和移动趋势; Further, as shown in FIG. 7 , a schematic structural diagram of another embodiment of the communication indication determining module of the present invention, the data collected by the sensor is physical posture information and mobile trend information of the mobile terminal acquired by the sensing device; When the working state is data collected by the sensor, the communication indication is determined The module 502 includes: a first operation obtaining unit 5024 and a first instruction communication unit 5026, wherein the first operation obtaining unit 5024 is configured to perform operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal. ;
第一指示通信单元 5026用于根据所述物理姿态和移动趋势指示进行 NFC 通信的 NFC天线;  The first indication communication unit 5026 is configured to perform an NFC antenna for performing NFC communication according to the physical posture and the movement tendency indication;
或者, 通信指示确定模块 502包括: 第二运算获取单元 5028和第二运算 获取单元 50210, 图 7中以都包括第一运算获取单元 5024、第一指示通信单元 5026、 第二运算获取单元 5028和第二运算获取单元 50210为例进行了说明, 其中  Alternatively, the communication indication determination module 502 includes: a second operation acquisition unit 5028 and a second operation acquisition unit 50210, which in FIG. 7 both include a first operation acquisition unit 5024, a first indication communication unit 5026, a second operation acquisition unit 5028, and The second operation acquisition unit 50210 is described as an example, wherein
第二运算获取单元 5028 用于根据传感算法对传感器采集的数据进行运 算, 获取所述移动终端与外部设备的距离和角度信息;  The second operation obtaining unit 5028 is configured to calculate data collected by the sensor according to the sensing algorithm, and obtain distance and angle information of the mobile terminal and the external device;
第二指示通信单元 50210用于根据所述距离和角度信息指示进行 NFC通 信的 NFC天线。  The second indication communication unit 50210 is configured to indicate an NFC antenna for performing NFC communication based on the distance and angle information.
再进一步地,本发明实施例中的天线选取模块 504还可以包括优先级排序 单元和选取单元, 其中  Further, the antenna selection module 504 in the embodiment of the present invention may further include a prioritization unit and a selection unit, where
优先级排序单元用于通过统计对 NFC天线的使用习惯得到的统计数据, 对所述 NFC通信指示信息指示的至少两根 NFC天线进行使用优先级排序; 选取单元用于选取优先级高的 NFC天线与外部设备进行 NFC通信。  The priority ordering unit is configured to perform priority ordering on at least two NFC antennas indicated by the NFC communication indication information by using statistics obtained by using the NFC antenna usage habit; the selecting unit is configured to select a NFC antenna with a high priority NFC communication with external devices.
再进一步地, 如图 8示出的本发明的多个 NFC切换的近场通信装置的另 一实施例的结构示意图,多个 NFC切换的近场通信装置 50包括工作状态获取 模块 500、 通信指示确定模块 502和天线选取模块 504外, 还可以包括控制触 发接收模块 506, 其中  Still further, as shown in FIG. 8, a schematic structural diagram of another embodiment of a plurality of NFC-switched near field communication devices of the present invention, the plurality of NFC switched near field communication devices 50 include an operation state acquisition module 500, and a communication indication The determination module 502 and the antenna selection module 504 may further include a control trigger receiving module 506, wherein
控制触发接收模块 506用于接收第二处理器发送的控制触发指令;并触发 工作状态获取模块 500、通信指示确定模块 502和天线选取模块 504执行操作; 所述第二处理器为所述装置运行各程序的主处理器。  The control trigger receiving module 506 is configured to receive a control trigger instruction sent by the second processor; and trigger the working state obtaining module 500, the communication indication determining module 502, and the antenna selecting module 504 to perform an operation; the second processor is configured to operate the device The main processor of each program.
需要说明的是,本发明实施例中的多个 NFC切换的近场通信装置 50中各 功能模块的功能可根据上述方法实施例中的方法具体实现, 即, 具体可以参考 上述图 1至图 4中的方法项实施例, 这里不再赘述。 为了便于更好地实施本发明实施例的上述方案,本发明还提供了用于配合 实施上述方案的相关设备。 下面结合图 9示出的本发明的具有多个 NFC天线 的移动终端的实施例的结构示意图, 移动终端 90包括: 第一处理器 900、 控 制开关 902、 至少两个 NFC天线 904和至少一个传感器 906; 其中 It should be noted that the functions of the functional modules in the NFC-switched near-field communication device 50 in the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, that is, the specific reference may be made to FIG. 1 to FIG. 4 above. The method item embodiment in the description is not repeated here. In order to facilitate the implementation of the above solution of the embodiments of the present invention, the present invention also provides related equipment for implementing the above solution. The following is a schematic structural diagram of an embodiment of a mobile terminal having a plurality of NFC antennas according to the present invention shown in FIG. 9, the mobile terminal 90 comprising: a first processor 900, a control switch 902, at least two NFC antennas 904, and at least one sensor 906; where
第一处理器 900获取移动终端当前的工作状态,所述工作状态为所述移动 终端触发的应用程序信息和 /或传感器采集的数据; 传感器采集的数据为通过 至少一个传感器 906对移动终端 90进行采集得到的数据;  The first processor 900 acquires the current working state of the mobile terminal, where the working state is application information triggered by the mobile terminal and/or data collected by the sensor; the data collected by the sensor is performed by the at least one sensor 906 on the mobile terminal 90. Collected data;
第一处理器 900根据所述工作状态确定所述移动终端的 NFC通信指示信 息, 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线;  The first processor 900 determines NFC communication indication information of the mobile terminal according to the working state, where the NFC communication indication information is used to indicate an NFC antenna for performing NFC communication;
第一处理器 900根据确定的所述 NFC通信指示信息, 通过控制开关 902 从多个 NFC天线 904中选取至少一个 NFC天线与外部设备进行 NFC通信。  The first processor 900 selects at least one NFC antenna from the plurality of NFC antennas 904 through the control switch 902 to perform NFC communication with the external device according to the determined NFC communication indication information.
具体地, 当所述工作状态为移动终端 90触发的应用程序信息时, 第一处 理器 900根据所述工作状态确定移动终端 90的 NFC通信指示信息,具体包括: 根据移动终端 90触发的应用程序判断出 NFC工作模式;根据判断出的所 述 NFC工作模式指示进行 NFC通信的 NFC天线。  Specifically, when the working status is the application information that is triggered by the mobile terminal 90, the first processor 900 determines the NFC communication indication information of the mobile terminal 90 according to the working status, and specifically includes: an application triggered according to the mobile terminal 90. Determining an NFC operating mode; indicating an NFC antenna for performing NFC communication according to the determined NFC operating mode.
进一步地, 当第一处理器 900判断出 NFC工作模式为卡模式时, 第一处 理器 900根据确定的所述 NFC通信指示信息, 通过控制开关 902从多个 NFC 天线 904中选取至少一个 NFC天线与外部设备进行 NFC通信包括:  Further, when the first processor 900 determines that the NFC working mode is the card mode, the first processor 900 selects at least one NFC antenna from the plurality of NFC antennas 904 by using the control switch 902 according to the determined NFC communication indication information. NFC communication with external devices includes:
通过外部读卡器触发设有的至少两个 NFC天线 904中的一个 NFC天线进 行取电, 选取触发的所述 NFC天线与所述外部读卡器进行 NFC通信。  One of the at least two NFC antennas 904 provided by the external card reader is used to power up, and the triggered NFC antenna is selected for NFC communication with the external card reader.
再进一步地,传感器采集的数据为通过至少一个传感器 906获取的移动终 端 90的物理姿态信息和移动趋势信息; 当所述工作状态为传感器采集的数据 时,第一处理器 900根据所述工作状态确定移动终端 90的 NFC通信指示信息 包括:  Further, the data collected by the sensor is physical posture information and movement trend information of the mobile terminal 90 acquired by the at least one sensor 906; when the working state is data collected by the sensor, the first processor 900 is according to the working state. Determining the NFC communication indication information of the mobile terminal 90 includes:
根据传感算法对传感器采集的数据进行运算, 获取移动终端 90的物理姿 态和移动趋势;根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC天线; 或者  Performing operations on the data collected by the sensor according to the sensing algorithm to obtain a physical posture and a moving tendency of the mobile terminal 90; and an NFC antenna for performing NFC communication according to the physical posture and the moving trend indication; or
根据传感算法对传感器采集的数据进行运算, 获取移动终端 90与外部设 备的距离和角度信息;根据所述距离和角度信息指示进行 NFC通信的 NFC天 再进一步地,当所述 NFC通信指示信息指示至少两根 NFC天线进行 NFC 通信时,第一处理器 900根据确定的所述 NFC通信指示信息从多个 NFC天线 中选取至少一个 NFC天线与外部设备进行 NFC通信, 具体包括: Calculating data collected by the sensor according to the sensing algorithm, obtaining distance and angle information of the mobile terminal 90 and the external device; and indicating NFC days for performing NFC communication according to the distance and angle information Further, when the NFC communication indication information indicates that at least two NFC antennas perform NFC communication, the first processor 900 selects at least one NFC antenna and the external device from the plurality of NFC antennas according to the determined NFC communication indication information. Perform NFC communication, including:
通过统计对 NFC天线的使用习惯得到的统计数据,对所述 NFC通信指示 信息指示的至少两根 NFC天线进行使用优先级排序;选取优先级高的 NFC天 线与外部设备进行 NFC通信。  The statistics of the usage habits of the NFC antenna are used to prioritize at least two NFC antennas indicated by the NFC communication indication information; and the NFC antenna with a high priority is selected to perform NFC communication with an external device.
再进一步地,如图 10示出的本发明的具有多个 NFC天线的移动终端的另 一实施例的结构示意图, 移动终端 90包括: 第一处理器 900、 控制开关 902、 至少两个 NFC天线 904和至少一个传感器 906外,还可以包括 NFC芯片 908, 其中  Still further, as shown in FIG. 10, a schematic structural diagram of another embodiment of a mobile terminal having multiple NFC antennas of the present invention, the mobile terminal 90 includes: a first processor 900, a control switch 902, and at least two NFC antennas An 904 and an at least one sensor 906 may further include an NFC chip 908, wherein
第一处理器 908通过控制开关 902将 NFC芯片 908与选取的至少一个 NFC 天线 904相连接, 以处理选取的至少一个 NFC天线接收的数据。  The first processor 908 connects the NFC chip 908 to the selected at least one NFC antenna 904 via the control switch 902 to process the data received by the selected at least one NFC antenna.
再进一步地,如图 11示出的本发明的具有多个 NFC天线的移动终端的另 一实施例的结构示意图, 移动终端 90包括: 第一处理器 900、 控制开关 902、 至少两个 NFC天线 904、 至少一个传感器 906和 NFC芯片 908外, 还可以包 括第二处理器 9010, 第二处理器 9010为移动终端 90运行各程序的主处理器; 第二处理器 9010控制触发第一处理器 900执行获取移动终端 90当前的工 作状态; 根据所述工作状态确定移动终端 90的 NFC通信指示信息,根据确定 的所述 NFC通信指示信息,通过控制开关 902从多个 NFC天线 904中选取至 少一个 NFC天线与外部设备进行 NFC通信。  Further, as shown in FIG. 11, a schematic structural diagram of another embodiment of a mobile terminal having multiple NFC antennas of the present invention, the mobile terminal 90 includes: a first processor 900, a control switch 902, and at least two NFC antennas 904. The at least one sensor 906 and the NFC chip 908 may further include a second processor 9010. The second processor 9010 is a main processor that runs the programs for the mobile terminal 90. The second processor 9010 controls the triggering of the first processor 900. Obtaining a current working state of the mobile terminal 90; determining NFC communication indication information of the mobile terminal 90 according to the working state, and selecting at least one NFC from the plurality of NFC antennas 904 through the control switch 902 according to the determined NFC communication indication information. The antenna performs NFC communication with an external device.
需要说明的是, 本发明实施例中的移动终端 90可以包括但不限用户使用 的手机、 个人数码助理等便携式移动终端; 移动终端 90中各功能模块的功能 可根据上述方法实施例中的方法具体实现, 即, 具体可以参考上述图 1至图 4 中的方法项实施例, 这里不再赘述。  It should be noted that the mobile terminal 90 in the embodiment of the present invention may include, but is not limited to, a mobile phone, a personal digital assistant, and the like. The function of each functional module in the mobile terminal 90 may be according to the method in the foregoing method embodiment. For the specific implementation, that is, the method item embodiments in the foregoing FIG. 1 to FIG. 4 may be specifically referred to, and details are not described herein again.
综上所述, 实施本发明实施例,通过基于移动终端当前的工作状态确定所 述移动终端的 NFC通信指示信息, 从多个 NFC天线中选取至少一个 NFC天 线与外部设备进行 NFC通信, 解决了现有技术中移动终端必须在指定结构面 和角度范围内进行问题, 大大提高了成功率, 可以实现让用户通过任意手持方 式或任意角度进行非接触通信,提高了移动终端的 NFC通信功能和 NFC通信 效率, 并可以通过触发低功耗处理器控制天线的非接触通信, 降低移动设备的 主处理器的功耗。 In summary, the embodiment of the present invention implements NFC communication indication information of the mobile terminal based on the current working state of the mobile terminal, and selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device, and solves the problem. In the prior art, the mobile terminal must perform problems within a specified structural plane and angle range, greatly improving the success rate, and enabling the user to pass any handheld party. Non-contact communication at any angle or at any angle improves the NFC communication function and NFC communication efficiency of the mobile terminal, and can reduce the power consumption of the main processor of the mobile device by triggering the low-power processor to control the contactless communication of the antenna.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体或随机存储记忆体等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only storage memory, or a random storage memory.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发 明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流 程, 并依本发明权利要求所作的等同变化, 仍属于发明所涵盖的范围。  The above is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种多个 NFC切换的近场通信方法, 其特征在于, 包括: 1. A near field communication method for multiple NFC switching, characterized by including:
获取移动终端当前的工作状态,所述工作状态为所述移动终端触发的应用 程序信息和 /或传感器采集的数据; Obtain the current working status of the mobile terminal, which is application information triggered by the mobile terminal and/or data collected by sensors;
才艮据所述工作状态确定所述移动终端的 NFC通信指示信息,所述 NFC通 信指示信息用于指示进行 NFC通信的 NFC天线; Determine the NFC communication indication information of the mobile terminal according to the working state, and the NFC communication indication information is used to indicate the NFC antenna for NFC communication;
根据确定的所述 NFC通信指示信息从多个 NFC天线中选取至少一个 NFC 天线与外部设备进行 NFC通信。 Select at least one NFC antenna from multiple NFC antennas to perform NFC communication with the external device according to the determined NFC communication instruction information.
2、 如权利要求 1所述的方法, 其特征在于, 当所述工作状态为所述移动 终端触发的应用程序信息时,所述根据所述工作状态确定所述移动终端的 NFC 通信指示信息, 具体包括: 2. The method of claim 1, wherein when the working state is application information triggered by the mobile terminal, determining the NFC communication indication information of the mobile terminal according to the working state, Specifically include:
根据所述移动终端触发的应用程序判断出 NFC工作模式; Determine the NFC working mode according to the application triggered by the mobile terminal;
根据判断出的所述 NFC工作模式指示进行 NFC通信的 NFC天线。 The NFC antenna that performs NFC communication is instructed according to the determined NFC working mode.
3、 如权利要求 2所述的方法, 其特征在于, 当判断出 NFC工作模式为卡 模式时,所述根据确定的所述 NFC通信指示信息从多个 NFC天线中选取至少 一个 NFC天线与外部设备进行 NFC通信包括: 3. The method of claim 2, wherein when it is determined that the NFC working mode is the card mode, selecting at least one NFC antenna from a plurality of NFC antennas to communicate with an external device based on the determined NFC communication indication information. Devices performing NFC communication include:
通过外部读卡器触发设有的至少两个 NFC天线中的一个 NFC天线进行取 电, 选取触发的所述 NFC天线与所述外部读卡器进行 NFC通信。 The external card reader triggers one of the at least two NFC antennas provided to obtain power, and selects the triggered NFC antenna to perform NFC communication with the external card reader.
4、 如权利要求 1-3任一项所述的方法, 其特征在于, 所述传感器采集的 数据为通过传感器获取的所述移动终端的物理姿态信息和移动趋势信息;当所 述工作状态为传感器采集的数据时,所述根据所述工作状态确定所述移动终端 的 NFC通信指示信息, 具体包括: 4. The method according to any one of claims 1 to 3, characterized in that, the data collected by the sensor is the physical posture information and movement trend information of the mobile terminal obtained through the sensor; when the working state is When the data collected by the sensor is used, the NFC communication indication information of the mobile terminal is determined according to the working state, specifically including:
根据传感算法对所述传感器采集的数据进行运算,获取所述移动终端的物 理姿态和移动趋势; 根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC 天线; 或者 根据传感算法对所述传感器采集的数据进行运算,获取所述移动终端与外 部设备的距离和角度信息; 根据所述距离和角度信息指示进行 NFC 通信的 NFC天线。 Compute the data collected by the sensor according to the sensing algorithm to obtain the physical posture and movement trend of the mobile terminal; an NFC antenna that performs NFC communication according to the physical posture and movement trend indication; or The data collected by the sensor is calculated according to the sensing algorithm to obtain the distance and angle information between the mobile terminal and the external device; and the NFC antenna for NFC communication is indicated according to the distance and angle information.
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 当所述 NFC通信指 示信息指示至少两根 NFC天线进行 NFC通信时, 所述根据确定的所述 NFC 通信指示信息从多个 NFC天线中选取至少一个 NFC天线与外部设备进行 NFC 通信, 具体包括: 5. The method according to any one of claims 1 to 4, characterized in that, when the NFC communication indication information indicates at least two NFC antennas to perform NFC communication, the determined NFC communication indication information is from Select at least one NFC antenna from multiple NFC antennas to perform NFC communication with external devices, including:
通过统计对 NFC天线的使用习惯得到的统计数据,对所述 NFC通信指示 信息指示的至少两根 NFC天线进行使用优先级排序; Based on statistical data obtained from the usage habits of NFC antennas, prioritize the use of at least two NFC antennas indicated by the NFC communication indication information;
选取优先级高的 NFC天线与外部设备进行 NFC通信。 Select an NFC antenna with a high priority to communicate with external devices via NFC.
6、 一种多个 NFC切换的近场通信装置, 其特征在于, 包括: 6. A multiple NFC switching near field communication device, characterized by including:
工作状态获取模块, 用于获取移动终端当前的工作状态, 所述工作状态为 所述移动终端触发的应用程序信息和 /或传感器采集的数据; A working status acquisition module, used to acquire the current working status of the mobile terminal, where the working status is application information triggered by the mobile terminal and/or data collected by sensors;
通信指示确定模块, 用于根据所述工作状态确定当前设备的 NFC通信指 示信息, 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线; A communication indication determination module, configured to determine the NFC communication indication information of the current device according to the working status, and the NFC communication indication information is used to indicate the NFC antenna for NFC communication;
天线选取模块,用于根据确定的所述 NFC通信指示信息从多个 NFC天线 中选取至少一个 NFC天线与外部设备进行 NFC通信。 An antenna selection module is configured to select at least one NFC antenna from multiple NFC antennas to perform NFC communication with an external device based on the determined NFC communication indication information.
7、 如权利要求 6所述的装置, 其特征在于, 当所述工作状态为所述移动 终端触发的应用程序信息时, 所述通信指示确定模块包括: 7. The device according to claim 6, wherein when the working state is application information triggered by the mobile terminal, the communication indication determination module includes:
工作模块判断单元, 用于根据所述移动终端触发的应用程序判断出 NFC 工作模式; A working module judgment unit, used to judge the NFC working mode according to the application triggered by the mobile terminal;
指示单元, 用于根据判断出的所述 NFC工作模式指示进行 NFC通信的 NFC天线。 An indication unit, configured to instruct an NFC antenna for NFC communication according to the determined NFC working mode.
8、 如权利要求 6或 7所述的装置, 其特征在于, 所述传感器采集的数据 为通过传感设备获取的所述移动终端的物理姿态信息和移动趋势信息;当所述 工作状态为传感器采集的数据时, 所述通信指示确定模块包括: 8. The device according to claim 6 or 7, wherein the data collected by the sensor is the physical posture information and movement trend information of the mobile terminal obtained through a sensing device; when the When the working state is data collected by the sensor, the communication indication determination module includes:
第一运算获取单元, 用于根据传感算法对传感器采集的数据进行运算,获 取所述移动终端的物理姿态和移动趋势; 第一指示通信单元, 用于根据所述物 理姿态和移动趋势指示进行 NFC通信的 NFC天线; 或者 The first calculation and acquisition unit is used to calculate the data collected by the sensor according to the sensing algorithm to obtain the physical posture and movement trend of the mobile terminal; the first instruction communication unit is used to perform instructions based on the physical posture and movement trend. NFC antenna for NFC communication; or
第二运算获取单元, 用于根据传感算法对传感器采集的数据进行运算, 获 取所述移动终端与外部设备的距离和角度信息; 第二指示通信单元, 用于根据 所述距离和角度信息指示进行 NFC通信的 NFC天线。 The second calculation and acquisition unit is used to calculate the data collected by the sensor according to the sensing algorithm, and obtain the distance and angle information between the mobile terminal and the external device; the second instruction communication unit is used to indicate according to the distance and angle information. NFC antenna for NFC communication.
9、 如权利要求 6-8任一项所述的装置, 其特征在于, 当所述 NFC通信指 示信息指示至少两根 NFC天线进行 NFC通信时, 所述天线选取模块包括: 优先级排序单元,用于通过统计对 NFC天线的使用习惯得到的统计数据, 对所述 NFC通信指示信息指示的至少两根 NFC天线进行使用优先级排序; 选取单元, 用于选取优先级高的 NFC天线与外部设备进行 NFC通信。 9. The device according to any one of claims 6 to 8, wherein when the NFC communication indication information indicates at least two NFC antennas to perform NFC communication, the antenna selection module includes: a priority sorting unit, Used to prioritize the use of at least two NFC antennas indicated by the NFC communication indication information based on statistical data obtained by counting the usage habits of NFC antennas; a selection unit used to select NFC antennas with high priority and external devices Perform NFC communication.
10、 一种具有多个 NFC天线的移动终端, 其特征在于, 包括: 第一处理 器、 控制开关、 至少两个 NFC天线和至少一个传感器; 10. A mobile terminal with multiple NFC antennas, characterized in that it includes: a first processor, a control switch, at least two NFC antennas and at least one sensor;
所述第一处理器获取移动终端当前的工作状态,所述工作状态为所述移动 终端触发的应用程序信息和 /或传感器采集的数据; 所述传感器采集的数据为 通过所述至少一个传感器对所述移动终端进行采集得到的数据; The first processor obtains the current working status of the mobile terminal, and the working status is application information triggered by the mobile terminal and/or data collected by the sensor; the data collected by the sensor is the data collected by the at least one sensor. The data collected by the mobile terminal;
所述第一处理器^^据所述工作状态确定所述移动终端的 NFC通信指示信 息, 所述 NFC通信指示信息用于指示进行 NFC通信的 NFC天线; The first processor determines the NFC communication indication information of the mobile terminal according to the working state, and the NFC communication indication information is used to indicate an NFC antenna for NFC communication;
所述第一处理器^^据确定的所述 NFC通信指示信息, 通过所述控制开关 从多个 NFC天线中选取至少一个 NFC天线与外部设备进行 NFC通信。 According to the determined NFC communication instruction information, the first processor selects at least one NFC antenna from a plurality of NFC antennas to perform NFC communication with an external device through the control switch.
11、 如权利要求 10所述的移动终端, 其特征在于, 当所述工作状态为所 述移动终端触发的应用程序信息时,所述第一处理器根据所述工作状态确定所 述移动终端的 NFC通信指示信息, 具体包括: 11. The mobile terminal according to claim 10, wherein when the working state is application information triggered by the mobile terminal, the first processor determines the information of the mobile terminal according to the working state. NFC communication instruction information, specifically including:
根据所述移动终端触发的应用程序判断出 NFC工作模式; 根据判断出的 所述 NFC工作模式指示进行 NFC通信的 NFC天线。 The NFC working mode is determined according to the application program triggered by the mobile terminal; and the NFC antenna for NFC communication is indicated according to the determined NFC working mode.
12、 如权利要求 11所述的移动终端, 其特征在于, 当所述第一处理器判 断出 NFC工作模式为卡模式时,所述第一处理器根据确定的所述 NFC通信指 示信息,通过控制开关 902从多个 NFC天线 904中选取至少一个 NFC天线与 外部设备进行 NFC通信包括: 12. The mobile terminal of claim 11, wherein when the first processor determines that the NFC working mode is the card mode, the first processor passes Controlling the switch 902 to select at least one NFC antenna from multiple NFC antennas 904 to perform NFC communication with an external device includes:
通过外部读卡器触发设有的至少两个 NFC天线中的一个 NFC天线进行取 电, 选取触发的所述 NFC天线与所述外部读卡器进行 NFC通信。 The external card reader triggers one of the at least two NFC antennas provided to obtain power, and selects the triggered NFC antenna to perform NFC communication with the external card reader.
13、 如权利要求 10-12任一项所述的移动终端, 其特征在于, 所述传感器 采集的数据为通过所述至少一个传感器获取的所述移动终端的物理姿态信息 和移动趋势信息; 当所述工作状态为传感器采集的数据时, 所述第一处理器根 据所述工作状态确定所述移动终端的 NFC通信指示信息, 具体包括: 13. The mobile terminal according to any one of claims 10 to 12, wherein the data collected by the sensor is the physical posture information and movement trend information of the mobile terminal obtained through the at least one sensor; when When the working state is data collected by a sensor, the first processor determines the NFC communication indication information of the mobile terminal according to the working state, specifically including:
根据传感算法对传感器采集的数据进行运算,获取所述移动终端的物理姿 态和移动趋势;根据所述物理姿态和移动趋势指示进行 NFC通信的 NFC天线; 或者 Calculate the data collected by the sensor according to the sensing algorithm to obtain the physical posture and movement trend of the mobile terminal; an NFC antenna that performs NFC communication according to the physical posture and movement trend indication; or
根据传感算法对传感器采集的数据进行运算,获取所述移动终端与外部设 备的距离和角度信息;根据所述距离和角度信息指示进行 NFC通信的 NFC天 The data collected by the sensor are calculated according to the sensing algorithm to obtain the distance and angle information between the mobile terminal and the external device; the NFC antenna for NFC communication is indicated according to the distance and angle information.
14、 如权利要求 10-13任一项所述的移动终端, 其特征在于, 当所述 NFC 通信指示信息指示至少两根 NFC天线进行 NFC通信时,所述第一处理器根据 确定的所述 NFC通信指示信息从多个 NFC天线中选取至少一个 NFC天线与 外部设备进行 NFC通信, 具体包括: 14. The mobile terminal according to any one of claims 10 to 13, wherein when the NFC communication indication information indicates that at least two NFC antennas perform NFC communication, the first processor determines The NFC communication instruction information selects at least one NFC antenna from multiple NFC antennas to perform NFC communication with the external device, specifically including:
通过统计对 NFC天线的使用习惯得到的统计数据,对所述 NFC通信指示 信息指示的至少两根 NFC天线进行使用优先级排序; Based on statistical data obtained from the usage habits of NFC antennas, prioritize the use of at least two NFC antennas indicated by the NFC communication indication information;
选取优先级高的 NFC天线与外部设备进行 NFC通信。 Select an NFC antenna with a high priority to communicate with external devices via NFC.
15、 如权利要求 10-14任一项所述的移动终端, 其特征在于, 所述移动终 端还包括第二处理器, 所述第二处理器为所述移动终端运行各程序的主处理 器; 15. The mobile terminal according to any one of claims 10 to 14, characterized in that, the mobile terminal further includes a second processor, and the second processor is the main processor for running various programs in the mobile terminal. device;
通过第二处理器控制触发第一处理器执行获取移动终端当前的工作状态; 根据所述工作状态确定所述移动终端的 NFC通信指示信息, 根据确定的所述 NFC通信指示信息,通过所述控制开关从多个 NFC天线中选取至少一个 NFC 天线与外部设备进行 NFC通信。 The second processor controls and triggers the first processor to perform acquisition of the current working status of the mobile terminal; determines the NFC communication indication information of the mobile terminal according to the working status, and based on the determined NFC communication indication information, through the control The switch selects at least one NFC antenna from the plurality of NFC antennas to perform NFC communication with the external device.
PCT/CN2014/070533 2014-01-13 2014-01-13 Near field communication method, apparatus and system WO2015103787A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/070533 WO2015103787A1 (en) 2014-01-13 2014-01-13 Near field communication method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/070533 WO2015103787A1 (en) 2014-01-13 2014-01-13 Near field communication method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2015103787A1 true WO2015103787A1 (en) 2015-07-16

Family

ID=53523477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070533 WO2015103787A1 (en) 2014-01-13 2014-01-13 Near field communication method, apparatus and system

Country Status (1)

Country Link
WO (1) WO2015103787A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3342057A4 (en) * 2016-01-26 2018-09-05 Samsung Electronics Co., Ltd. Device and method for performing communication
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
CN111610391A (en) * 2020-05-09 2020-09-01 广东雷霆技术有限公司 Power supply efficiency detection method applied to NFC wireless power supply technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100087146A1 (en) * 2008-10-06 2010-04-08 Samsung Electronics Co., Ltd. Method and device for performing short range wireless communication of mobile terminal
CN102542318A (en) * 2011-12-16 2012-07-04 深圳市江波龙电子有限公司 Near-field radiofrequency communication card and communication terminal
US20130189923A1 (en) * 2012-01-20 2013-07-25 Research In Motion Limited Mobile wireless communications device including nfc antenna scanning switch and related methods

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100087146A1 (en) * 2008-10-06 2010-04-08 Samsung Electronics Co., Ltd. Method and device for performing short range wireless communication of mobile terminal
CN102542318A (en) * 2011-12-16 2012-07-04 深圳市江波龙电子有限公司 Near-field radiofrequency communication card and communication terminal
US20130189923A1 (en) * 2012-01-20 2013-07-25 Research In Motion Limited Mobile wireless communications device including nfc antenna scanning switch and related methods

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3342057A4 (en) * 2016-01-26 2018-09-05 Samsung Electronics Co., Ltd. Device and method for performing communication
US10320067B2 (en) 2016-01-26 2019-06-11 Samsung Electronics Co., Ltd. Device and method for performing communication
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
US10917514B1 (en) 2019-09-05 2021-02-09 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for activating near field communication card
CN111610391A (en) * 2020-05-09 2020-09-01 广东雷霆技术有限公司 Power supply efficiency detection method applied to NFC wireless power supply technology

Similar Documents

Publication Publication Date Title
US20180011456A1 (en) Method and apparatus for smart home control based on smart watches
EP2485542B1 (en) Portable electronic device and operation method for establishing a near field communication link
CN104769524B (en) Technology for using the computer input device with multiple computers
JP6475380B2 (en) Terminal and terminal control method
EP2708983B9 (en) Method for auto-switching user interface of handheld terminal device and handheld terminal device thereof
CN105630144B (en) Handheld terminal and its control method for screen display
US9921648B2 (en) Apparatuses, methods and recording medium for control portable communication terminal and its smart watch
CN105101404B (en) Localization method, device and terminal
WO2019127441A1 (en) Method for selecting emulated card, and mobile device
CN105765489A (en) Techniques for detecting sensor inputs on wearable wireless device
CN104539321A (en) Method and device for exchanging contact information, and smart watch
KR20150099272A (en) Power sharing method and electronic device implementing the same
CN107741783B (en) Electronic transfer method and system
WO2013131327A1 (en) Method, device, and system for controlling computer terminal
JP6280921B2 (en) Portable device, method for controlling portable device, recording medium, and program
TW201528148A (en) Wearable apparatus and operating method thereof
WO2015103787A1 (en) Near field communication method, apparatus and system
CN109116983B (en) Mobile terminal control method and device, mobile terminal and computer readable medium
CN111483741A (en) Conveying system and conveying method
CN202385158U (en) Multiple mobile device real time interactive system based on sensors and mobile positioning technology
CN106226795B (en) The implementation method and its system that a kind of double gps antennas intelligently switch
CN104442446A (en) Electric skateboard remotely controlled by intelligent hand-held terminal
KR20120106464A (en) System and method for transferring data
JP2013012858A (en) Communication apparatus, communication apparatus control method, portable communication apparatus provided with communication apparatus, communication apparatus control program, and computer readable recording medium
CN106443695A (en) Laser ranging system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14877620

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14877620

Country of ref document: EP

Kind code of ref document: A1