WO2014201943A1 - 一种nfc射频通信的控制方法、装置及系统 - Google Patents

一种nfc射频通信的控制方法、装置及系统 Download PDF

Info

Publication number
WO2014201943A1
WO2014201943A1 PCT/CN2014/078597 CN2014078597W WO2014201943A1 WO 2014201943 A1 WO2014201943 A1 WO 2014201943A1 CN 2014078597 W CN2014078597 W CN 2014078597W WO 2014201943 A1 WO2014201943 A1 WO 2014201943A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc host
nfcc
radio frequency
nfc
frequency communication
Prior art date
Application number
PCT/CN2014/078597
Other languages
English (en)
French (fr)
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 EP14812966.1A priority Critical patent/EP2996256B1/en
Priority to JP2016520255A priority patent/JP2016524880A/ja
Publication of WO2014201943A1 publication Critical patent/WO2014201943A1/zh
Priority to US14/971,735 priority patent/US9736878B2/en

Links

Classifications

    • H04B5/72
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10237Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag
    • G06K7/10247Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag issues specific to the use of single wire protocol [SWP] in NFC like devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • H04B5/48
    • H04B5/77
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the invention relates to a method, device and system for controlling NFC radio frequency communication.
  • the application is submitted to the Chinese Patent Office on June 17, 2013, and the application number is 201310239303.4, and the invention name is "a control method, device and system for NFC radio frequency communication".
  • Priority of Chinese Patent Application the entire contents of which is incorporated herein by reference.
  • Embodiments of the present invention relate to the field of NFC radio frequency communication, and in particular, to a method, device, and system for controlling NFC radio frequency communication. Background technique
  • NFC Near Field Communication
  • RFID Radio Frequency Identification
  • NFC devices are mainly composed of three functional entities: Device Host (DH), NFC Controller (NFC), and Security Element (SE).
  • the DH is responsible for the management of the NFCC, such as initialization, configuration and power management; the NFCC is responsible for the physical transmission of data through the RF interface and antenna, while the SE provides a secure execution environment for NFC applications.
  • the DH corresponds to the CPU of the mobile phone (such as an application processor or a baseband processor), the NFCC corresponds to the NFC chip of the mobile phone, and the SE can be a SIM card or an SD card.
  • the NFC Control Interface defines a logical interface for communication between DH and NFCC.
  • the DH sends a control command to the NFCC through the NCI interface to control the NFCC.
  • the NFCC can also send a response message or an announcement message to the DH through the NCI interface.
  • the DH can also send application data to the NFCC through the NCI interface, and the NFCC forwards the NFC to the remote NFC.
  • the device the same NFCC, can also send data sent by the remote NFC device to the DH through the NCI interface.
  • the NFCC and SE can also pass the host control interface (Host Control Interface (HCI), single wire protocol (Single Wire Protocol, SWP) and other communication protocols for communication.
  • HCI host Control Interface
  • SWP single Wire Protocol
  • Two architectures are defined in NCI: Single host architecture and Multi host architecture.
  • the single master architecture is an architecture in which the NFCC is only connected to the DH and the SE is not connected;
  • the multi-master architecture is an architecture in which the NFCC is connected to the DH and one or more SEs.
  • NFCC can connect multiple SEs.
  • SEs can be SIM cards and SD cards.
  • each SIM card and SD card can correspond to one SE.
  • Different applications can be run in different SEs.
  • the payment card application of Bank A can be run in the SIM card of the first operator
  • the payment application of Bank B can be run in the SIM card of the second operator.
  • the SD card can run the UnionPay payment application, etc., and the applications on these SEs can communicate with the POS machine through NFCC to complete the payment transaction.
  • the host of the NFCC (host) is DH; in the multi-master architecture, the NFCC is a shared resource, and the SEs connected to the DH and NFCC are hosts of the NFCC, which can initiate RF communication to the NFCC. request.
  • the embodiments of the present invention provide a method, a device, and a system for controlling NFC radio frequency communication, which are used to solve the conflict problem caused by multiple NFC hosts simultaneously performing radio frequency communication requests to the NFCC in a multi-master architecture.
  • a method for controlling NFC radio frequency communication includes:
  • the first NFC host determines that the NFCC is in a non-idle state, and performs priority comparison between the second NFC host and the third NFC host, where the third host is the The NFCC currently performs an NFC host corresponding to the radio frequency communication process;
  • the first NFC host When the priority of the second NFC host is higher than the priority of the third NFC host, the first NFC host sends a second message to the NFCC, indicating that the NFCC terminates the current third NFC The radio communication process performed by the host.
  • the second message carries configuration information of the second NFC host, and the second message is further used to indicate that the NFCC is the second NFC host And performing the radio frequency communication process; or, when the priority of the second NFC host is higher than the priority of the third NFC host, the method further includes: sending, by the first NFC host, the second NFC host The third message instructs the second NFC host to re-request radio frequency communication.
  • the first NFC host receives the first message, including:
  • the first NFC host receives the advertisement message sent by the NFCC, and the advertisement message is sent after the NFCC receives the radio frequency communication request sent by the second NFC host; or the first NFC host receives the second message.
  • RF communication request sent by the NFC host With the second possible implementation of the first aspect, in a third possible implementation, the first NFC host determines that the NFCC is currently in a non-idle state, including:
  • the first NFC host determines, when the notification message is received, that the NFCC is currently in a non-idle state
  • the first NFC host receives the advertisement message sent by the NFCC, after receiving the advertisement message, determining, when the NFCC is currently performing a radio frequency communication process for the third NFC host, determining the NFCC Currently in a non-idle state; or,
  • the first NFC host receives the radio frequency communication request sent by the second NFC host, after receiving the radio frequency communication request, when the NFCC is currently performing the radio frequency communication process for the third NFC host, , determining that the NFCC is currently in a non-idle state.
  • the method further includes:
  • the NFCC After the first NFC host receives the advertisement message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the first NFC host learns that the NFCC is currently in an idle state, then The NFCC sends a fourth message indicating the NFCC Performing a radio frequency communication process for the second NFC host.
  • the first NFC host preferentially performs the second NFC host and the third NFC host Level comparison, including:
  • the first NFC host performs priority comparison between the second NFC host and the third NFC host according to the priority information pre-configured by the first NFC host for the second NFC host and the third NFC host Or,
  • the first NFC host performs priority comparison between the second NFC host and the third NFC host according to priority information of the initial configuration of the system;
  • the first NFC host notifies the user of the prompt information of the second NFC host and the third NFC host, and according to the priority set by the user based on the prompt information, the second NFC host and the first The three NFC hosts perform priority comparison.
  • the method further includes:
  • a method for controlling NFC radio frequency communication includes:
  • the third NFC host is the current NFCC. Perform the NFC host corresponding to the RF communication process.
  • the method further includes: the second message carrying configuration information of the second NFC host, after the NFCC receives the second message, further The second NFC host performs a radio frequency communication process; or, the NFCC is receiving After receiving the second message, when receiving the radio communication request resent by the second NFC host, performing a radio frequency communication process for the second NFC host, where the second NFC host receives the When the third message sent by the first NFC host is resent, the radio communication request is resent.
  • the NFCC when the NFCC receives the radio frequency communication request sent by the second NFC host, the first The NFC host sends the first message, including:
  • the NFCC After receiving the radio frequency communication request sent by the second NFC host, the NFCC sends an advertisement message to the first NFC host when determining that the NFCC is currently performing a radio frequency communication process for the third NFC host; or
  • the NFCC After receiving the radio frequency communication request sent by the second NFC host, the NFCC sends an advertisement message to the first NFC host.
  • the method further includes:
  • the NFCC After receiving the radio frequency communication request sent by the second NFC host, the NFCC performs a radio frequency communication process for the second NFC host if it is determined that the NFCC is currently in an idle state.
  • the method further includes:
  • the NFCC After receiving the radio frequency communication request sent by the second NFC host, the NFCC sends the advertisement message to the first NFC host, when receiving the fourth message sent by the first NFC host, The second NFC host performs a radio frequency communication process, where the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • the fifth possible implementation manner further includes:
  • a control device for NFC radio frequency communication includes: a receiving unit, configured to receive a first message, where the first message is used to indicate that the second NFC host requests radio frequency communication;
  • a main control unit configured to perform a priority comparison between the second NFC host and the third NFC host when the near field communication controller NFCC is currently in a non-idle state, wherein the third host is currently executing the NFCC
  • the NFC host corresponding to the radio frequency communication process
  • a sending unit configured to send, by the NFCC, a second message to the NFCC when the priority of the second NFC host is higher than the priority of the third NFC host, indicating that the NFCC termination is currently performed by the third NFC host RF communication process.
  • the second message carries the configuration information of the second NFC host, and the second message is further used to indicate that the NFCC is the second NFC host.
  • the sending unit is further configured to: send a third message to the second NFC host, Instructing the second NFC host to re-request radio frequency communication.
  • the receiving, by the receiving unit, the first message includes:
  • the receiving unit receives a radio frequency communication request sent by the second NFC host.
  • the master control unit determines that the NFCC is currently in a non-idle state, including:
  • the receiving unit receives the advertisement message sent by the NFCC, determining, when the notification message is received, that the NFCC is currently in a non-idle state;
  • the master control unit determines that the NFCC is currently performing the radio frequency communication process for the third NFC host.
  • the NFCC is currently in a non-idle state; or
  • the main control unit learns that the NFCC is currently performing radio frequency for the third NFC host. During the communication process, it is determined that the NFCC is currently in a non-idle state.
  • the sending unit is further configured to:
  • the receiving unit After the receiving unit receives the notification message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the main control unit learns that the NFCC is currently in an idle state, then the NFCC is sent to the NFCC. Sending a fourth message, instructing the NFCC to perform a radio frequency communication process for the second NFC host.
  • the main control unit performs the second NFC host and the third NFC host Priority comparison, including:
  • the master control unit performs priority comparison between the second NFC host and the third NFC host according to the priority information pre-configured by the first NFC host for the second NFC host and the third NFC host; Or,
  • the main control unit notifies the user of the prompt information of the second NFC host and the third NFC host, and according to the priority set by the user based on the prompt information, to the second NFC host and the third The NFC host performs priority comparison.
  • the sending unit is further configured to:
  • a control device for NFC radio frequency communication includes:
  • a communication unit configured to send a first message to the first NFC host when receiving the radio frequency communication request sent by the second NFC host;
  • a processing unit configured to: when the communication unit receives the second message sent by the first NFC host, terminate the radio frequency communication process currently performed by the third NFC host, where the second message is the first After receiving the first message, the NFC host determines that the NFCC is currently in a non-idle state and the second NFC host has a higher priority than the third NFC host.
  • the third NFC host is the NFC host corresponding to the NFCC currently performing the radio frequency communication process.
  • the second message carries configuration information of the second NFC host, and after the communication unit receives the second message, the processing unit is further The second NFC host performs a radio frequency communication process; or, after the communication unit receives the second message, when the communication unit receives the radio frequency communication request resent by the second NFC host, the processing The unit performs a radio frequency communication process for the second NFC host, where the second NFC host resends the radio frequency communication request when receiving the third message sent by the first NFC host.
  • an NFC host sends the first message, including:
  • the communication unit After receiving the radio frequency communication request sent by the second NFC host, the communication unit sends an advertisement message to the first NFC host when determining that the processing unit is currently performing a radio frequency communication process for the third NFC host; Or,
  • the communication unit After receiving the radio frequency communication request sent by the second NFC host, the communication unit sends an advertisement message to the first NFC host.
  • the processing unit is further configured to:
  • the communication unit After receiving the radio frequency communication request sent by the second NFC host, the communication unit performs a radio frequency communication process for the second NFC host if the processing unit determines that it is currently in an idle state.
  • the processing unit is further configured to:
  • the processing unit performs a radio frequency communication process for the second NFC host, where the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • a control device for NFC radio frequency communication includes:
  • a receiving port configured to receive a first message, where the first message is used to indicate that the second NFC host requests radio frequency communication
  • a processor configured to perform a priority comparison between the second NFC host and the third NFC host when the near field communication controller NFCC is currently in a non-idle state, wherein the third host is the RF currently executing the NFCC The NFC host corresponding to the communication process;
  • a sending port configured to send a second message to the NFCC when the priority of the second NFC host is higher than the priority of the third NFC host, indicating that the NFCC terminates the current execution for the third NFC host RF communication process.
  • the second message carries the configuration information of the second NFC host, and the second message is further used to indicate that the NFCC is the second NFC host Performing a radio frequency communication process; or, when the priority of the second NFC host is higher than the priority of the third NFC host, the sending port is further configured to: send a third message to the second NFC host, Instructing the second NFC host to re-request radio frequency communication.
  • the receiving, by the receiving port, the first message includes:
  • the receiving port receives the advertisement message sent by the NFCC, and the advertisement message is sent after the NFCC receives the radio frequency communication request sent by the second NFC host;
  • the receiving port receives a radio frequency communication request sent by the second NFC host.
  • the determining that the NFCC is currently in a non-idle state includes:
  • Receiving the notification message if the receiving port receives the notification message sent by the NFCC When the message is announced, it is determined that the NFCC is currently in a non-idle state; or
  • the processor determines that the NFCC is currently performing a radio frequency communication process for the third NFC host. Said that the NFCC is currently in a non-idle state; or,
  • the processor is configured to perform radio frequency communication for the third NFC host by the NFCC. During the process, it is determined that the NFCC is currently in a non-idle state.
  • the sending port is further configured to:
  • the receiving port After the receiving port receives the notification message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the processor learns that the NFCC is currently in an idle state, sending the NFCC to the NFCC.
  • the fourth message instructs the NFCC to perform a radio frequency communication process for the second NFC host.
  • the processor preferentially performs the second NFC host and the third NFC host Level comparison, including:
  • the processor notifying the user of the prompt information of the second NFC host and the third NFC host, and according to the priority set by the user based on the prompt information, to the second NFC host and the third NFC
  • the host performs priority comparison.
  • the sending port is further configured to:
  • a control device for NFC radio frequency communication includes:
  • a communication port configured to send a first message to the first NFC host when receiving the radio communication request sent by the second NFC host;
  • a processor configured to: when the communication port receives the second message sent by the first NFC host, terminate the radio frequency communication process currently performed by the third NFC host, where the second message is the first After the first message is received by the NFC host, when the NFCC is currently in a non-idle state and the priority of the second NFC host is higher than the priority of the third NFC host, the third NFC is sent.
  • the host is an NFC host corresponding to the NFCC currently performing a radio frequency communication process.
  • the second message carries configuration information of the second NFC host, and after the communications port receives the second message, the processor is further The second NFC host performs a radio frequency communication process; or, after the communication port receives the second message, when the communication port receives the radio frequency communication request resent by the second NFC host, the processing The device performs a radio frequency communication process for the second NFC host, where the second NFC host resends the radio frequency communication request when receiving the third message sent by the first NFC host.
  • an NFC host sends the first message, including:
  • the communication port After receiving the radio frequency communication request sent by the second NFC host, the communication port sends an advertisement message to the first NFC host when determining that the processor is currently performing a radio frequency communication process for the third NFC host; Or,
  • the communication port After receiving the radio frequency communication request sent by the second NFC host, the communication port sends an advertisement message to the first NFC host.
  • the processor is further configured to:
  • the communication port After the communication port receives the radio frequency communication request sent by the second NFC host, if the processor determines that it is currently in an idle state, performing radio frequency communication for the second NFC host. Letter process.
  • the processor is further configured to:
  • the processor After the communication port receives the radio frequency communication request sent by the second NFC host, and sends the advertisement message to the first NFC host, receiving, by the communication port, the first NFC host sends the In the case of four messages, the processor performs a radio frequency communication process for the second NFC host, where the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • the processor is further configured to:
  • a control system for NFC radio frequency communication comprising: a first NFC host, a second NFC host, a third NFC host, and a near field communication controller NFCC, wherein
  • the first NFC host is configured to receive a first message, where the first message indicates that the second NFC host requests radio frequency communication, and when determining that the NFCC is currently in a non-idle state, to the second NFC host Performing a priority comparison with the third NFC host, and sending a second message to the NFCC when the priority of the second NFC host is higher than the priority of the third NFC host, where
  • the three NFC hosts are NFC hosts corresponding to the current RF communication process of the NFCC;
  • the NFCC is configured to terminate, according to the second message, a radio frequency communication procedure currently performed for the third NFC host.
  • the second message carries the configuration information of the second NFC host, and the second message is further used to indicate that the NFCC is the second NFC host Performing a radio frequency communication process; or, when the priority of the second NFC host is higher than the priority of the third NFC host, the first NFC host is further configured to: The NFC host sends a third message, instructing the second NFC host to re-request radio frequency communication.
  • the first NFC host Receiving, by the first NFC host, the first message, the first NFC host receiving an advertisement message sent by the NFCC, where the notification message is sent by the NFCC after receiving the radio frequency communication request sent by the second NFC host; Or the first NFC host receives the radio frequency communication request sent by the second NFC host;
  • the NFCC is further configured to: after receiving the radio frequency communication request sent by the second NFC host, send the first NFC host to the first NFC host when determining that the NFCC is currently performing a radio frequency communication process for the third NFC host And sending the notification message to the first NFC host after receiving the radio frequency communication request sent by the second NFC host.
  • the NFCC is further configured to:
  • the NFCC After receiving the radio frequency communication request sent by the second NFC host, the NFCC performs a radio frequency communication process for the second NFC host if it is determined that the NFCC is currently in an idle state.
  • the first NFC host determines that the NFCC is currently in a non-idle state, including:
  • the first NFC host determines, when the notification message is received, that the NFCC is currently in a non-idle state
  • the first NFC host receives the advertisement message sent by the NFCC, after receiving the advertisement message, determining, when the NFCC is currently performing a radio frequency communication process for the third NFC host, determining the NFCC Currently in a non-idle state; or,
  • the first NFC host receives the radio frequency communication request sent by the second NFC host, after receiving the radio frequency communication request, when the NFCC is currently performing the radio frequency communication process for the third NFC host, , determining that the NFCC is currently in a non-idle state.
  • the first NFC host is further configured to:
  • the first NFC host learns that the NFCC is currently in an idle state, and sends a fourth message to the NFCC, where the NFCC performs the target according to the fourth message.
  • the radio frequency communication process of the second NFC host is not limited to the radio frequency communication process described above.
  • the first NFC host, the second NFC host that is currently using the NFCC, and the third The NFC host performs priority comparison, including:
  • the first NFC host performs priority comparison between the second NFC host and the third NFC host according to the priority information pre-configured by the first NFC host for each NFC host; or
  • the first NFC host performs priority comparison between the second NFC host and the third NFC host according to priority information of the initial configuration of the system;
  • the first NFC host notifies the user of the related prompt information of the second NFC host and the third NFC host, and according to the priority set by the user based on the related prompt information, the second NFC host and the The third NFC host performs priority comparison.
  • the first NFC host is further configured to:
  • the first NFC host determines that the priority of the second NFC host is lower than the priority of the third NFC host, sends a fifth message to the NFCC, where the NFCC refuses to execute according to the fifth message.
  • the radio frequency communication process of the second NFC host after receiving the first message indicating that the second NFC host requests radio frequency communication, the first NFC host determines that the NFCC is currently in a non-idle state, and the second NFC host and the first The NFC host performs the priority comparison.
  • the third host is the NFC host corresponding to the NFCC currently performing the radio communication process.
  • the first NFC host sends the NFC host to the NFC host.
  • the NFCC sends a second message, and the NFCC terminates the radio frequency communication process currently performed by the third NFC host according to the second message.
  • the radio communication process corresponding to the low-priority NFC host is Aborted, thus effectively avoiding more under the NFC multi-master architecture
  • the conflicts caused by the NFC host requesting RF communication from the NFCC maintain the operational reliability of the system.
  • FIG. 1 is a schematic diagram of a single main structure of an NFC device in the prior art
  • FIG. 2 is a schematic diagram of a multi-master architecture of an NFC device in the prior art
  • FIG. 3 is a schematic diagram of a message format used in an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for controlling a first NFC radio frequency communication according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for controlling a second NFC radio frequency communication according to an embodiment of the present invention
  • FIG. 6 is the first embodiment of the present invention
  • FIG. 7 is a flowchart of an example of a second application scenario in the embodiment of the present invention.
  • FIG. 8 is a flowchart of an example of a third application scenario in the embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a first structure of a first NFC host according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing a first structure of an NFCC according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a second structure of a first NFC host according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of a second structure of an NFCC according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an NFC radio frequency communication control system according to an embodiment of the present invention. detailed description
  • the general message format definition in all embodiments of the present invention is as shown in FIG. 3, where MT: represents a message type, 001b is a control instruction, 010b is a response message, and 011b is a notification message.
  • PBF Ob, indicating that the message is a complete message packet
  • GID indicates the group identifier
  • OID indicates the option identifier
  • Payload Length indicates the length of the load data
  • Payload indicates data
  • OCTET Represents one byte, which is 8 bits.
  • control flow of the first type of NFC radio frequency communication is as follows:
  • Step 400 The first NFC host receives a first message, where the first message is used to indicate that the second NFC host requests to perform radio frequency communication.
  • the first NFC host is DH
  • the second NFC host is a SE
  • the first message received by the first NFC host may be an advertisement message sent by the NFCC to the first NFC host when receiving the radio frequency communication request sent by the second NFC host, or may be sent by the second NFC host.
  • the RF communication request may be directly sent by the second NFC host to the first NFC host, or may be sent by the second NFC host to the NFCC, and then forwarded by the NFCC to the first NFC host.
  • Step 410 The first NFC host determines that the NFCC is in a non-idle state, and performs a priority comparison between the second NFC host and the third NFC host, where the third NFC host is an NFC host corresponding to the NFCC currently performing the radio communication process.
  • the third NFC host can be another SE.
  • the first NFC host may use but is not limited to the following:
  • the first NFC host receives the advertisement message sent by the NFCC, it determines that the NFCC is currently in a non-idle state when receiving the notification message; in this case, the NFCC is determined to be in a non-idle state.
  • the notification message sent only to the first NFC host.
  • the NFCC directly sends an advertisement message to the first NFC host after receiving the radio frequency communication request, and the first NFC host determines whether the NFCC is currently in a non-idle state according to the previous control of the NFCC for radio frequency communication.
  • the first NFC host receives the radio communication request sent by the second NFC host, After receiving the radio frequency communication request, when the NFCC is currently performing the radio frequency communication process for the third NFC host, it is determined that the NFCC is currently in a non-idle state; in this case, the NFCC directly sends an advertisement message to the radio communication request after receiving the radio frequency communication request.
  • the first NFC host, and the first NFC host determines whether the NFCC is currently in a non-idle state according to the previous control of the NFCC for radio frequency communication.
  • the NFCC can have multiple states, for example, the following seven states: 1. Idle state (RFST_IDLE), after the first NFC host and the NFCC are successfully initialized, the radio frequency communication state of the NFCC is idle; The state of the radio frequency discovery (RFST_DISCOVERY) is performed. The state is: The NFCC initiates the radio frequency discovery process according to the radio frequency discovery command, and configures according to the discovery.
  • RFIDLE Idle state
  • RFST_DISCOVERY The state is: The NFCC initiates the radio frequency discovery process according to the radio frequency discovery command, and configures according to the discovery.
  • the state of the radio discovery process is performed; 3.
  • the status of multiple remote devices (remote NFC endpoints) is found (RFST_W4_ALL_DISCOVERIES), which is the state of the NFCC discovering multiple remote devices or one remote device; , the state of the host selection
  • the status is: After discovering multiple remote devices, the NFCC waits for the NFC host to select the state of a remote device; 5. The polling status after activation
  • the NFCC in this state, the NFCC is activated and in the polling mode state; 6.
  • the activated listening state (RFST_LISTEN- ACTIVE), the state is that the NFCC is activated and in the listening mode.
  • the state of the sleep state (RFST_LISTEN-SLEEP), when the NFCC does not hear the content for a long time in the listening state after activation, it changes to the sleep state.
  • the remote NFC endpoint can be an NFC device or an NFC tag.
  • the radio frequency communication process in the embodiments of the present invention may include: starting from the NFCC initiating the radio frequency discovery process, until any one or more of the processes in which the NFCC and the remote device end the radio frequency communication, that is, in the radio frequency communication process.
  • the NFCC may be in any of the above states 2-6. Among the above seven states, six states other than the idle state may be collectively referred to as a non-idle state.
  • the first NFC host may perform the second NFC host and the third NFC host according to the priority information preconfigured by the first NFC host for the second NFC host and the third NFC host. Make priority comparisons.
  • the first NFC host can set the priority list of the NFC host according to the user instruction, and the priority of each pre-configured NFC host is recorded in the NFC host priority list.
  • the priority of each NFC host can be flexibly set according to user instructions, thereby more in line with user needs.
  • the first NFC host may perform priority comparison between the second NFC host and the third NFC host according to the initial configuration priority information of the system.
  • the first NFC host can determine the priority of each NFC host according to the priority information of the NFC host that is set by default in the factory. In doing so, the setting time of the priority information can be effectively saved, and the control efficiency of the radio frequency communication can be improved.
  • the DH may notify the user of the prompt information of the second NFC host and the third NFC host, and perform priority comparison between the second NFC host and the third NFC host according to the priority set by the user based on the prompt information.
  • the first NFC host prompts the user for the application content of the second NFC host and the third NFC host. Please select one of them as the high priority NFC host. In this way, the priority of the second NFC host and the third NFC host can be set according to the temporary usage requirements of the user, and the form is more flexible and convenient.
  • Step 420 When the priority of the second NFC host is higher than the priority of the third NFC host, the first NFC host sends a second message to the NFCC, instructing the NFCC to terminate the radio communication process currently performed by the third NFC host.
  • the first NFC host may carry the configuration information of the second NFC host in the second message, where the second message is further used to instruct the NFCC to perform the radio frequency for the second NFC host.
  • the first NFC host may further send a third message to the second NFC host, indicating the second NFC host. Re-requesting radio frequency communication; At this time, since the NFCC has terminated the radio frequency communication process for the third NFC host, when the second NFC host re-requests the radio frequency communication, the NFCC can immediately start performing the radio frequency communication process for the second NFC host.
  • the first NFC host instructs the NFCC to terminate the current radio frequency.
  • the NFCC may directly perform a radio frequency communication process for the second NFC host, or may perform a radio frequency communication process for the second NFC host when the second NFC host re-requests the radio frequency communication.
  • the second message used by the DH may use the following new RF-DISCO VERY-SE-REQ-CMD, and the message format is as shown in Table 1:
  • the first NFC host sends RF-DISCOVERY-SE-REQ-CMD to the NFCC, which terminates the ongoing RF communication of the NFCC, further
  • the NFC host indicated by the configuration information carried in the RF-DISCOVERY-SE-REQ-CMD may also initiate a radio frequency communication request to the NFCC.
  • NFCC uses the following new RF-DISCOVERY-SE-REQ-RSP as the response message of the second message.
  • the message format is shown in Table 2:
  • step S410 after the step S410 is performed, after the first NFC host receives the notification message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the first NFC host learns that the NFCC is currently in an idle state, Then, a fourth message is sent to the NFCC, instructing the NFCC to start performing a radio frequency communication process for the second NFC host.
  • the fourth message used by the first NFC host may use the following new RF-DISCOVERY-ALLOW-SE-REQ-CMD, and the message format is as shown in Table 3:
  • the first NFC host sends RF-DISCOVERY-ALLOW-SE-REQ-CMD to the NFCC, allowing the NFCC to perform the RF communication process for the specified SE;
  • NFCC uses the following new RF-DISCO VERY-ALLOW-SE-REQ-RSP as the response message of the fourth message.
  • the message format is shown in Table 4:
  • step 420 if the first NFC host determines that the second NFC host has lower priority than the third NFC host The priority is sent to the NFCC, where the fifth message is used to indicate that the radio communication requested by the second NFC host is rejected.
  • the second NFC radio frequency communication is used. The control process is as follows:
  • Step 500 The NFCC sends a first message to the first NFC host when receiving the radio communication request sent by the second NFC host.
  • the NFCC when performing step 500, may send an advertisement message to the first NFC host when determining that the NFCC is currently performing the radio frequency communication process for the third NFC host after receiving the radio frequency communication request sent by the second NFC host.
  • the notification message may be sent to the first NFC host immediately after receiving the radio communication request sent by the first NFC host.
  • Step 510 The NFCC, when receiving the second message sent by the first NFC host, terminates the radio frequency communication process currently performed by the third NFC host, where the second message is after the first NFC host receives the first message,
  • the NFC host corresponding to the NFCC currently performing the radio frequency communication process is sent when the NFCC is in the non-idle state and the priority of the second NFC host is higher than the priority of the third NFC host.
  • the NFCC when performing the step 510, if the second message carries the configuration information of the second NFC host, the NFCC may terminate the process of performing the radio frequency communication for the third NFC host after receiving the second message or Afterwards, further performing a radio frequency communication process for the second NFC host;
  • the NFCC may also start performing a radio frequency communication process for the second NFC host after receiving the radio communication request resent by the second NFC host after receiving the second message, where the second The NFC host resends the radio frequency communication request when receiving the third message sent by the first NFC host.
  • the message format of the second message may be as shown in Table 1, and the message format used by the response message of the NFCC reply may be as shown in Table 2.
  • the NFCC receives the first sent by the first NFC host The fifth message, the refusal to perform the radio frequency communication process for the second NFC host, because the fifth message is that the first NFC host determines that the NFCC is currently in a non-idle state and the second NFC host has a lower priority than the third NFC host.
  • the fifth message is that the first NFC host determines that the NFCC is currently in a non-idle state and the second NFC host has a lower priority than the third NFC host.
  • the step 1500 when the step 1500 is performed, if the NFCC immediately sends an advertisement message to the first NFC host after receiving the radio frequency communication request sent by the second NFC host, the fourth message sent by the first NFC host is received.
  • the radio communication process is started for the second NFC host, where the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • the format of the message used by the fourth message can be referred to Table 3, and the format of the message used by the NFCC reply message can be referred to Table 4.
  • the NFCC may directly start performing the radio frequency communication process for the second NFC host if it is determined that the NFCC is currently in an idle state.
  • the first NFC host is DH
  • the second NFC host is SE1
  • the third NFC host is SE2.
  • Step 601 The DH obtains configuration information of all SEs connected by the NFCC, and the configuration information includes at least identifiers of the SEs, radio frequency protocols, radio frequency technologies, and modes.
  • Step 602 DH assigns priorities to all SEs.
  • Step 602 is an optional operation, because the priorities of the SEs may be selected by default of the system, or may be temporarily set by the user according to the specific application scenario during the application process. Step 602 is only an example.
  • Step 603 SE1 sends a radio frequency communication request to the NFCC.
  • Step 604 The NFCC determines whether the state is idle. If yes, step 609 is performed; otherwise, step 605 is performed.
  • the NFCC If the NFCC is currently performing RF communication for SE2, it is in a non-idle state. If no RF communication process is performed, it is idle.
  • Step 605 The NFCC notifies the DH of the RF communication request of the SE1, that is, the NFCC sends the DH to the DH. Send an announcement message to inform DH that it has received the RF communication request from SE1.
  • Step 606 DH determines whether the priority of SE1 is higher than the priority of SE2. If yes, step 607 is performed, otherwise, step 610 is performed.
  • Step 607 The DH sends an RF-DISCOVERY-SE-REQ-CMD (ie, a radio communication abort command) to the NFCC, and is used to terminate the radio frequency communication process currently performed by the NFCC for the SE2, and the abort instruction also carries the configuration information of the SE1 (eg, , identifier, etc.), for further indication
  • the NFCC performs the RF communication process for SE1.
  • Step 608 The NFCC terminates the radio communication process currently performed by SE2, and performs steps
  • Step 609 The NFCC performs a radio frequency communication process for the SE1, and the execution ends.
  • the NFCC is a radio frequency communication process performed by SE1 or SE2, and may include all processes of the radio frequency discovery process, target device selection activation, radio frequency data communication, and radio frequency communication end.
  • Step 610 The DH sends a rejection request for the radio frequency communication request to the NFCC, and the NFCC forwards the rejection instruction to SE1, and the execution ends.
  • the specific implementation process of the second application scenario is as follows:
  • Step 701 The DH obtains configuration information of all SEs connected by the NFCC, where the configuration information includes at least an identifier of each SE, a radio frequency protocol, a radio frequency technology, and a mode.
  • Step 702 DH assigns priorities to all SEs.
  • Step 702 is an optional operation, because the priorities of the SEs may be selected by default of the system, or may be temporarily set by the user according to the specific application scenario during the application process, and step 702 is only an example.
  • Step 703 SE1 sends a radio communication request to the NFCC.
  • Step 704 The NFCC notifies the DH of the radio communication request of the SE1, that is, the NFCC sends an announcement message to the DH, informing the DH that the radio communication request of the SE1 has been received.
  • Step 705 The DH determines whether the current state of the NFCC is idle. If yes, step 708 is performed. Otherwise, step 706 is performed.
  • the NFCC currently performs the RF communication process for SE2, it is in a non-idle state. Any RF communication process is idle.
  • Step 706 DH determines whether the priority of SE1 is higher than SE2. If yes, step 707 is performed; otherwise, step 711 is performed.
  • Step 707 The DH sends an RF-DISCOVERY-SE-REQ-CMD (ie, a radio frequency communication abort command) to the NFCC, and is used to terminate the radio communication process currently performed for the SE2, where the abort command also carries the configuration information of the SE1 (eg, An identifier, etc., is used to request radio frequency communication from the NFCC, and then step 709 is performed.
  • an RF-DISCOVERY-SE-REQ-CMD ie, a radio frequency communication abort command
  • Step 708 The DH sends an RF-DISCOVERY-ALLOW-SE-REQ-CMD (ie, a radio frequency communication permission command) to the NFCC, where the permission command carries configuration information (eg, an identifier, etc.) of the SE1, and is used to allow the NFCC to be SE1 performs a radio frequency communication request, and then proceeds to step 710.
  • RF-DISCOVERY-ALLOW-SE-REQ-CMD ie, a radio frequency communication permission command
  • Step 709 The NFCC terminates the radio communication process currently performed for SE2, and performs steps
  • Step 710 The NFCC performs a radio frequency communication process for the SE1, and the execution ends.
  • the NFCC is a radio frequency communication process performed by SE1 or SE2, including all processes of radio frequency discovery process, target device selection activation, radio frequency data communication, and radio frequency communication end.
  • Step 711 The DH sends a rejection request for the radio frequency communication request to the NFCC, and the NFCC forwards the rejection instruction to SE1, and the execution ends.
  • the specific implementation process of the third application scenario is as follows:
  • Step 801 The DH obtains configuration information of all SEs connected by the NFCC, and the configuration information includes at least an identifier of each SE, a radio frequency protocol, a radio frequency technology, and a mode.
  • Step 802 DH assigns priorities to all SEs.
  • Step 802 is an optional operation, because the priorities of the SEs may be selected by default of the system, or may be temporarily set by the user according to the specific application scenario during the application process. Step 802 is only an example.
  • Step 803 SE1 sends a radio communication request to the DH.
  • Step 804 The DH determines whether the current state of the NFCC is idle. If yes, step 807 is performed. Otherwise, step 805 is performed.
  • the NFCC currently performs the RF communication process for SE2, it is in a non-idle state. Any RF communication process is idle.
  • Step 805 The DH determines whether the priority of SE1 is higher than SE2. If yes, step 806 is performed; otherwise, step 810 is performed.
  • Step 806 The DH sends an RF-DISCOVERY-SE-REQ-CMD (ie, a radio communication abort command) to the NFCC, and is used to terminate the radio communication process currently performed for the SE2, where the abort command also carries the configuration information of the SE1 (eg, An identifier, etc., is used to request radio frequency communication from the NFCC, and then step 808 is performed.
  • an RF-DISCOVERY-SE-REQ-CMD ie, a radio communication abort command
  • the abort command also carries the configuration information of the SE1 (eg, An identifier, etc., is used to request radio frequency communication from the NFCC, and then step 808 is performed.
  • Step 807 The DH sends an RF-DISCOVERY-ALLOW-SE-REQ-CMD (ie, a radio frequency communication permission command) to the NFCC, where the permission instruction carries the configuration information (eg, identifier, etc.) of the SE1, and is used to allow the NFCC to be SE1 performs a radio frequency communication request, and then proceeds to step 809.
  • the permission instruction carries the configuration information (eg, identifier, etc.) of the SE1
  • the configuration information eg, identifier, etc.
  • Step 808 The NFCC terminates the radio communication process currently performed by SE2, and performs steps
  • Step 809 The NFCC performs a radio frequency communication process for the SE1, and the execution ends.
  • the NFCC is a radio frequency communication process performed by SE1 or SE2, including all processes of radio frequency discovery process, target device selection activation, radio frequency data communication, and radio frequency communication end.
  • Step 810 The DH sends a rejection request for the radio frequency communication request to the NFCC, and the NFCC forwards the rejection instruction to SE1, and the execution ends.
  • the first NFC host includes a receiving unit 90, a main control unit 91, and a sending unit 92, where
  • the receiving unit 90 is configured to receive a first message, where the first message is used to indicate that the second NFC host requests radio frequency communication;
  • the main control unit 91 is configured to perform a priority comparison between the second NFC host and the third NFC host when the NFCC is in the non-idle state, wherein the third host is the NFC host corresponding to the IFCC currently performing the radio frequency communication process;
  • the sending unit 92 is configured to send a second message to the NFCC when the priority of the second NFC host is higher than the priority of the third NFC host, to instruct the NFCC to terminate the radio frequency communication process currently performed by the third NFC host.
  • the second message carries configuration information of the second NFC host, and the second message is further used to indicate NFCC Performing a radio frequency communication process for the second NFC host;
  • the sending unit 92 is further configured to: send a third message to the second NFC host, instructing the second NFC host to re-request the radio frequency communication.
  • the receiving unit 90 receives the first message, and includes:
  • the receiving unit 90 receives the advertisement message sent by the NFCC, and the notification message is sent after the NFCC receives the radio frequency communication request sent by the second NFC host; or
  • the receiving unit 90 receives the radio frequency communication request sent by the second NFC host.
  • the main control unit 91 determines that the NFCC is currently in a non-idle state, including:
  • the main control unit 91 determines that the NFCC is currently in a non-idle state when receiving the notification message;
  • the main control unit 91 determines that the NFCC is currently in the non-idle state when it learns that the NFCC is currently performing the radio frequency communication process for the third NFC host. Or,
  • the main control unit 91 determines that the NFCC is currently in the non-idle state when it learns that the NFCC is currently performing the radio frequency communication process for the third NFC host. status.
  • the sending unit 92 is also used to:
  • the receiving unit 90 After the receiving unit 90 receives the notification message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the main control unit 91 learns that the NFCC is currently in the idle state, it sends a fourth message to the NFCC, indicating that the NFCC is the second.
  • the NFC host performs the radio communication process.
  • the priority comparison between the second NFC host and the third NFC host by the main control unit 91 includes: the main control unit 91 according to the priority information pre-configured by the first NFC host for the second NFC host and the third NFC host, and the second The NFC host and the third NFC host perform priority comparison; or
  • the main control unit 91 performs priority comparison between the second NFC host and the third NFC host according to the priority information of the initial configuration of the system; or
  • the main control unit 91 notifies the user of the prompt information of the second NFC host and the third NFC host, and according to the priority set by the user based on the prompt information, the second NFC host and the third NFC host Make priority comparisons.
  • the sending unit 92 is also used to:
  • the fifth message is sent to the second NFC host, and the fifth message is used to indicate that the radio communication requested by the second NFC host is rejected.
  • the NFCC includes a communication unit 100 and a processing unit 101, where
  • the communication unit 100 is configured to send a first message to the first NFC host when receiving the radio frequency communication request sent by the second NFC host;
  • the processing unit 101 is configured to: when the communication unit 100 receives the second message sent by the first NFC host, terminate the radio frequency communication process currently performed by the third NFC host, where the second message is that the first NFC host determines the current NFCC When the priority of the second NFC host is higher than the priority of the third NFC host, the third NFC host is the NFC host corresponding to the NFCC currently performing the radio communication process.
  • the second message carries the configuration information of the second NFC host, and after the communication unit 100 receives the second message, the processing unit 101 further performs a radio frequency communication process for the second NFC host; or
  • the processing unit 101 After the communication unit 100 receives the second message, when the communication unit 100 receives the radio communication request resent by the second NFC host, the processing unit 101 performs a radio frequency communication process for the second NFC host, where the second NFC host receives When the third message sent by the first NFC host is resent, the radio communication request is resent.
  • the communication unit 100 When receiving the radio frequency communication request sent by the second NFC host, the communication unit 100 sends the first message to the first NFC host, including:
  • the communication unit 100 After receiving the radio frequency communication request sent by the second NFC host, the communication unit 100 sends an advertisement message to the first NFC host when it is determined that the processing unit 101 is currently performing the radio frequency communication process for the third NFC host; or
  • the communication unit 100 After receiving the radio frequency communication request sent by the second NFC host, the communication unit 100 immediately sends an announcement message to the first NFC host.
  • the processing unit 101 is also used to:
  • the communication unit 100 After the communication unit 100 receives the radio frequency communication request sent by the second NFC host, if the processing unit When the element 101 determines that it is currently in an idle state, it directly starts performing a radio frequency communication process for the second NFC host.
  • the processing unit 101 is also used to:
  • the processing unit 101 starts The second NFC host performs a radio frequency communication process, where the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • the processing unit 101 is also used to:
  • the processing unit 101 refuses to perform a radio frequency communication process for the second NFC host, and the fifth message is that the first NFC host determines that the NFCC is currently in a non-idle state and the second NFC Sent when the priority of the host is lower than the priority of the third NFC host.
  • the first NFC host includes a receiving port 110, a processor 111, and a sending port 112, where
  • the receiving port 110 is configured to receive a first message, where the first message is used to indicate that the second NFC host requests radio frequency communication;
  • the processor 111 is configured to perform a priority comparison between the second NFC host and the third NFC host when the NFCC is in the non-idle state, where the third host is the NFC host corresponding to the IFCC currently performing the radio frequency communication process;
  • the sending port 112 is configured to send a second message to the NFCC when the priority of the second NFC host is higher than the priority of the third NFC host, to instruct the NFCC to terminate the radio communication process currently performed by the third NFC host.
  • the second message carries configuration information of the second NFC host, and the second message is further used to indicate that the NFCC performs a radio frequency communication process for the second NFC host;
  • the sending port 112 is further configured to: send a third message to the second NFC host, instructing the second NFC host to re-request the radio frequency communication.
  • the receiving port 110 receives the first message, including: The receiving port 110 receives the advertisement message sent by the NFCC, and the notification message is sent after the NFCC receives the radio frequency communication request sent by the second NFC host; or
  • the receiving port 110 receives the radio frequency communication request sent by the second NFC host.
  • the processor 111 determines that the NFCC is currently in a non-idle state, including:
  • the processor 111 determines that the NFCC is currently in a non-idle state when receiving the notification message; or
  • the processor 111 determines that the NFCC is currently in a non-idle state when it learns that the NFCC is currently performing the radio frequency communication process for the third NFC host after receiving the notification message; or
  • the processor 111 determines that the NFCC is currently in the non-idle state after learning that the NFCC is currently performing the radio frequency communication process for the third NFC host after receiving the radio frequency communication request. .
  • Transmit port 112 is also used to:
  • the receiving port 110 After the receiving port 110 receives the notification message sent by the NFCC or receives the radio frequency communication request sent by the second NFC host, if the processor 111 knows that the NFCC is currently in the idle state, it sends a fourth message to the NFCC, indicating that the NFCC is the second. The NFC host performs the radio communication process.
  • the processor 111 performs a priority comparison between the second NFC host and the third NFC host, and includes: the processor 111, according to the priority information preconfigured by the first NFC host for the second NFC host and the third NFC host, to the second NFC host Prioritize comparison with the third NFC host; or
  • the processor 111 performs priority comparison between the second NFC host and the third NFC host according to the priority information of the initial configuration of the system; or
  • the processor 111 notifies the user of the prompt information of the second NFC host and the third NFC host, and performs priority comparison between the second NFC host and the third NFC host according to the priority set by the user based on the prompt information.
  • Transmit port 112 is also used to:
  • the NFCC includes a communication port 120 and a processor 121, where
  • the communication port 120 is configured to send a first message to the first NFC host when receiving the radio frequency communication request sent by the second NFC host;
  • the processor 121 is configured to: when the communication port 120 receives the second message sent by the first NFC host, terminate the radio frequency communication process currently performed by the third NFC host, where the second message is that the first NFC host receives the first After the message is sent, the NFCC is determined to be in the non-idle state and the priority of the second NFC host is higher than the priority of the third NFC host.
  • the third NFC host is the NFC host corresponding to the NFCC currently performing the radio frequency communication process.
  • the second message carries configuration information of the second NFC host, and after the communication port 120 receives the second message, the processor 121 further performs a radio frequency communication process for the second NFC host; or
  • the processor 101 After the communication port 120 receives the second message, when the communication port 120 receives the radio communication request resent by the second NFC host, the processor 101 performs a radio frequency communication process for the second NFC host, where the second NFC host receives When the third message sent by the first NFC host is resent, the radio communication request is resent.
  • the communication port 120 When receiving the radio communication request sent by the second NFC host, the communication port 120 sends the first message to the first NFC host, including:
  • the communication port 120 After receiving the radio frequency communication request sent by the second NFC host, the communication port 120 sends an advertisement message to the first NFC host when determining that the processor 121 is currently performing the radio frequency communication process for the third NFC host; or
  • the communication port 120 After receiving the radio communication request sent by the second NFC host, the communication port 120 immediately sends an announcement message to the first NFC host.
  • the processor 121 is also used to:
  • the communication port 120 After receiving the radio frequency communication request sent by the second NFC host, the communication port 120 directly starts to perform the radio frequency communication process for the second NFC host if the processor 121 determines that it is currently in the idle state.
  • the processor 121 is also used to: If the communication port 120 immediately sends an advertisement message to the first NFC host after receiving the radio frequency communication request sent by the second NFC host, when the communication port 100 receives the fourth message sent by the first NFC host, the processor 121 starts to The second NFC host performs a radio frequency communication process, wherein the fourth message is sent by the first NFC host when determining that the NFCC is currently in an idle state.
  • the processor 121 is also used to:
  • the control system of the NFC radio frequency communication includes a first NFC host 131, a second NFC host 132, a third NFC host 133, and an NFCC 130, wherein
  • the first NFC host 131 is configured to receive a first message, where the first message indicates that the second NFC host requests 132 to perform radio frequency communication, and when determining that the NFCC is currently in a non-idle state, to the second NFC host 132 and the third NFC.
  • the host 133 performs a priority comparison, and when the priority of the second NFC host 132 is higher than the priority of the third NFC host 133, sends a second message to the NFCC 130, where the third NFC host 133 performs the radio frequency communication process for the NFCC 130.
  • the corresponding NFC host is configured to receive a first message, where the first message indicates that the second NFC host requests 132 to perform radio frequency communication, and when determining that the NFCC is currently in a non-idle state, to the second NFC host 132 and the third NFC.
  • the host 133 performs a priority comparison, and when the priority of the second NFC host 132 is higher than the priority of the third NFC host
  • the NFCC 130 is configured to terminate the radio frequency communication process currently performed by the third NFC host 133 according to the second message.
  • the second message carries configuration information of the second NFC host 132, and the second message is further used to instruct the NFCC 130 to perform a radio frequency communication process for the second NFC host 132; or
  • the first NFC host 131 is further configured to: send a third message to the second NFC host 132, instructing the second NFC host 132 to request the RF again. Communication.
  • the first NFC host 131 receives the first message, including:
  • the first NFC host 131 receives the advertisement message sent by the NFCC, and the notification message is sent after the NFCC 130 receives the radio frequency communication request sent by the second NFC host 132; or The first NFC host 131 receives the radio frequency communication request sent by the second NFC host 132.
  • the NFCC is further configured to: after receiving the radio frequency communication request sent by the second NFC host 132, the NFCC 130 sends an advertisement message to the first NFC host 131 when determining that the NFCC 130 is currently performing the radio frequency communication process for the third NFC host 133; or ,
  • the NFCC 130 Upon receiving the radio frequency communication request sent by the second NFC host 132, the NFCC 130 immediately sends an announcement message to the first NFC host 131.
  • NFCC130 is also used to:
  • the NFCC 130 After receiving the radio communication request sent by the second NFC host, the NFCC 130 directly starts to perform the radio frequency communication process for the second NFC host if it is determined that the NFCC 130 is currently in an idle state.
  • the first NFC host 131 determines that the NFCC 130 is currently in a non-idle state, and includes: if the first NFC host 131 receives the advertisement message sent by the NFCC, it determines that the NFCC is currently in a non-idle state when receiving the notification message; or
  • the first NFC host 131 receives the advertisement message sent by the NFCC, after receiving the notification message, it is determined that the NFCC 130 is currently in the non-idle state when the NFCC 130 is currently performing the radio frequency communication process for the third NFC host 133; or
  • the first NFC host 131 receives the radio frequency communication request sent by the second NFC host 132, after receiving the radio frequency communication request, when it is determined that the NFCC 130 is currently performing the radio frequency communication process for the third NFC host 133, it is determined that the NFCC 130 is currently not idle. status.
  • the first NFC host 131 is also used to:
  • the first NFC host 131 After the first NFC host 131 receives the advertisement message sent by the NFCC 130 or receives the radio frequency communication request sent by the second NFC host 132, if the first NFC host 131 learns that the NFCC 130 is currently in an idle state, it sends a fourth message to the NFCC 130, NFCC.
  • the RF communication process for the second NFC host 132 begins to be performed in accordance with the second instruction.
  • the first NFC host 131 performs priority comparison on the second NFC host 132 and the third NFC host 133 that currently use the NFCC 130, including:
  • the first NFC host 131 performs priority comparison between the second NFC host 132 and the third NFC host 133 according to the priority information pre-configured by the first NFC host 131 for each NFC host; or The first NFC host 131 performs priority comparison between the second NFC host 132 and the third NFC host 133 according to the priority information initially configured by the system; or
  • the first NFC host 131 notifies the user of the related prompt information of the second NFC host 132 and the third NFC host 133, and prioritizes the second NFC host 132 and the third NFC host 133 according to the priority set by the user based on the related prompt information. Level comparison.
  • the first NFC host 131 is also used to:
  • the fifth message is sent to the NFCC 130, and the NFCC 130 refuses to perform the radio frequency communication process for the second NFC host 132 according to the fifth message.
  • the first NFC host determines that the NFCC is currently in a non-idle state, and the second NFC host and the first The NFC host performs the priority comparison.
  • the third host is the NFC host corresponding to the NFCC currently performing the radio communication process.
  • the first NFC host sends the NFC host to the NFC host.
  • the NFCC sends a second message, and the NFCC terminates the radio frequency communication process currently performed by the third NFC host according to the second message.
  • the radio communication process corresponding to the low-priority NFC host is The suspension, thereby effectively avoiding the conflict caused by multiple NFC hosts requesting radio communication of NFCC under the NFC multi-master architecture, and maintaining the operational reliability of the system.
  • the first NFC host is provided with an interface to send a newly defined abort instruction to the NFCC, so that the NFCC terminates all the radio communication processes that are running, and, optionally, the abort instruction is carried.
  • the configuration information of the high-priority NFC host enables the NFCC to preferentially perform the radio frequency communication process for the high-priority NFC host, so that the high-priority NFC host can also use the NFCC when the NFCC is not idle, thereby effectively ensuring the high priority.
  • the operational reliability of the NFC host is provided with an interface to send a newly defined abort instruction to the NFCC, so that the NFCC terminates all the radio communication processes that are running, and, optionally, the abort instruction is carried.
  • an interface is provided to allow the NFCC to execute or reject radio communication requests of other NFC hosts, so that the high-priority NFC host can also use the NFCC when the NFCC is not idle, which further ensures high protection.
  • the operation of the priority NFC host can be Rely on sex.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
  • a computer-usable storage medium including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

本发明实施例公开了一种NFC射频通信的控制方法、装置及系统,用以解决多主架构下多个NFC主机同时对NFCC进行射频通信请求而产生的冲突问题。该方法为:第一NFC主机接收到用于表示第二NFC主机请求射频通信的第一消息后,在确定NFCC当前处于非空闲状态且第二NFC主机的优先级高于第三NFC主机的优先级时,通过第二消息指示NFCC根据该第二消息终止当前为第三NFC主机执行的射频通信过程,其中,第三主机为NFCC当前执行射频通信过程所对应的NFC主机。这样,有效避免了在NFC多主架构下多个NFC主机对NFCC请求射频通信所引起的冲突问题,保持了系统的运行可靠性。

Description

一种 NFC射频通信的控制方法、 装置及系统 本申请要求于 2013 年 06 月 17 日提交中国专利局、 申请号为 201310239303.4、发明名称为"一种 NFC射频通信的控制方法、装置及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明实施例涉及 NFC射频通信领域,特别涉及一种 NFC射频通信的 控制方法、 装置及系统。 背景技术
近场通信( Near Field Communication, NFC )是一种短距离无线连接技 术, 基于射频识别 ( Radio Frequency Identification, RFID )技术, 利用磁场 感应实现电子设备在近距离间的通信, 用户只需要通过触摸或者设备靠近, 就可以实现直观、安全和非接触式的交换信息、 内容和进行交易。随着 NFC 技术的逐渐普及, 很多电子产品已经集成了 NFC功能, 如打印机、 电视、 音箱、 手机、 照相机等。
NFC设备要实现 NFC 的功能, 主要由三个功能实体组成: 设备主机 ( Device Host, DH ), NFC 控制器 (NFC Controller, NFCC )和安全单元 ( Security Element, SE )。 其中 DH负责 NFCC的管理, 如初始化, 配置和 电源管理等; NFCC负责通过射频接口和天线进行数据的物理传输, 而 SE 则为 NFC应用程序提供一个安全的执行环境。 以智能手机为例, DH对应 着手机的 CPU (如应用处理器或基带处理器), NFCC对应着手机的 NFC 芯片, SE可以是 SIM卡或 SD卡。
NFC控制接口 ( NFC Control Interface , NCI )定义了一个逻辑接口用 于 DH和 NFCC之间的通信。 DH通过 NCI接口向 NFCC发送控制指令来 控制 NFCC, NFCC也可以通过 NCI接口向 DH发送响应消息或通告消息; 同时 DH也可以通过 NCI接口向 NFCC发送应用数据, 并由 NFCC转发给 远端的 NFC设备,同样 NFCC也可以将远端 NFC设备发来的数据通过 NCI 接口发送给 DH。 另夕卜, NFCC和 SE之间也可以通过主机控制接口 (Host Control Interface, HCI ), 单线协议( Single Wire Protocol, SWP )等通信协 议进行通信。 SE向 NFCC发送指令来控制 NFCC。
NCI中定义了两种架构: 单主架构 ( Single host architecture )和多主架 构 ( Multi host architecture )。 其中, 参阅图 1所示, 单主架构为一个 NFCC 只与 DH相连, 和 SE没有连接的架构; 多主架构为一个 NFCC与 DH及一 个或多个 SE相连的架构。
在多主架构下, NFCC可以连接多个 SE, 以智能手机为例, 多个 SE 可以是 SIM卡和 SD卡, 对于双卡 /模手机, 每个 SIM卡和 SD卡都可以对 应一个 SE。 在不同的 SE中可以运行不同的应用程序, 以移动支付举例, 第一运营商的 SIM卡中可以运行 A银行的支付应用, 而第二运营商的 SIM 卡中可以运行 B银行的支付应用, 而 SD卡中可以运行银联的支付应用等 等,这些 SE上的应用都可以通过 NFCC与 P0S机进行通信完成支付交易。
在单主架构中, NFCC的主机(即 host )为 DH;而在多主架构中, NFCC 是一个共享的资源, DH和 NFCC上连接的 SE都是 NFCC的主机, 都可以 对 NFCC发起射频通信请求。
目前, 所有 NFC设备都釆用了单主架构或釆用了多主架构, 但是 SE 并没有作为一个主机对 NFCC进行控制。 因而, 在多主架构中, 虽然 DH 和 SE都可以对 NFCC进行射频通信请求, 但在 NCI的规范中并没有给出 解决多个 SE同时对 NFCC进行射频通信请求而产生的冲突问题。 发明内容
本发明实施例提供一种 NFC射频通信的控制方法、 装置及系统, 用以 解决多主架构下多个 NFC主机同时对 NFCC进行射频通信请求而产生的冲 突问题。
本发明实施例提供的具体技术方案如下:
第一方面, 一种 NFC射频通信的控制方法, 包括:
第一 NFC主机接收第一消息,该第一消息用于表示第二 NFC主机请求 射频通信;
所述第一 NFC主机确定 NFCC 当前处于非空闲状态时, 对所述第二 NFC 主机和第三 NFC 主机进行优先级比较, 其中, 所述第三主机为所述 NFCC当前执行射频通信过程所对应的 NFC主机;
当所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时,所 述第一 NFC主机向所述 NFCC发送第二消息,指示所述 NFCC终止当前为 所述第三 NFC主机执行的射频通信过程。
结合第一方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述第二消息还用于指示所述 NFCC为所述第 二 NFC主机执行射频通信过程; 或者, 当所述第二 NFC主机的优先级高于 所述第三 NFC主机的优先级时,所述方法还包括: 所述第一 NFC主机向所 述第二 NFC主机发送第三消息,指示所述第二 NFC主机重新请求射频通信。
结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述第一 NFC主机接收第一消息, 包括:
所述第一 NFC主机接收所述 NFCC发送的通告消息, 该通告消息是 NFCC接收到所述第二 NFC主机发送的射频通信请求后发送的; 或者, 所述第一 NFC主机接收所述第二 NFC主机发送的射频通信请求。 结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述第一 NFC主机确定 NFCC当前处于非空闲状态, 包括:
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息后, 在获知所述 NFCC当前为所述第三 NFC主机执行射频通 信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述第二 NFC主机发送的射频通信请求, 则在接收到所述射频通信请求后, 在获知所述 NFCC当前为所述第三 NFC 主机执行射频通信过程时, 确定所述 NFCC当前处于非空闲状态。
结合第一方面的第三种可能的实现方式, 在第四种可能的实现方式中, 还包括:
在所述第一 NFC主机接收到所述 NFCC发送的通告消息或者接收到所 述第二 NFC主机发送的射频通信请求之后,若所述第一 NFC主机获知所述 NFCC当前处于空闲状态,则向所述 NFCC发送第四消息,指示所述 NFCC 为所述第二 NFC主机执行射频通信过程。
结合第一方面, 以及结合第一方面的上述任意一种实现方式, 在第五 种可能的实现方式中 ,所述第一 NFC主机对所述第二 NFC主机和所述第三 NFC主机进行优先级比较, 包括:
所述第一 NFC主机根据所述第一 NFC主机针对所述第二 NFC主机和 第三 NFC主机预配置的优先级信息,对所述第二 NFC主机和所述第三 NFC 主机进行优先级比较; 或者,
所述第一 NFC主机根据系统初始配置的优先级信息,对所述第二 NFC 主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机将所述第二 NFC主机和所述第三 NFC主机的提示 信息通知用户, 并根据用户基于所述提示信息设置的优先级, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较。
结合第一方面, 以及结合第一方面的上述任意一种实现方式, 在第六 种可能的实现方式中, 还包括:
当所述第二 NFC主机的优先级低于所述第三 NFC主机的优先级时,所 述第一 NFC主机向所述第二 NFC主机发送第五消息,所述第五消息用于表 示所述第二 NFC主机请求进行的射频通信被拒绝。 第二方面, 一种 NFC射频通信的控制方法, 包括:
NFCC接收到第二 NFC主机发送的射频通信请求时,向第一 NFC主机 发送第一消息;
所述 NFCC接收到所述第一 NFC主机发送的第二消息时, 终止当前为 第三 NFC主机执行的射频通信过程, 其中, 所述第二消息是所述第一 NFC 主机在接收到所述第一消息后, 确定所述 NFCC 当前处于非空闲状态且所 述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时发送的,所述 第三 NFC主机为所述 NFCC当前执行射频通信过程所对应的 NFC主机。
结合第二方面, 在第一种可能的实现方式中, 还包括: 所述第二消息 携带所述第二 NFC主机的配置信息, 所述 NFCC接收到所述第二消息后, 进一步为所述第二 NFC主机执行射频通信过程; 或者, 所述 NFCC在接收 到所述第二消息后, 在接收到所述第二 NFC主机重新发送的射频通信请求 时, 为所述第二 NFC主机执行射频通信过程, 其中, 所述第二 NFC主机在 接收到所述第一 NFC主机发送的第三消息时, 重新发送射频通信请求。
结合第二方面或第二方面的第一种可能的实现方式, 在第二种可能的 实现方式中,所述 NFCC接收到所述第二 NFC主机发送的射频通信请求时, 向所述第一 NFC主机发送第一消息, 包括:
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 在确定 所述 NFCC 当前为所述第三 NFC主机执行射频通信过程时, 向所述第一 NFC主机发送通告消息; 或者,
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 向所述 第一 NFC主机发送通告消息。
结合第二方面的第二种可能的实现方式, 在第三种可能的实现方式中, 还包括:
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 若确定 所述 NFCC当前处于空闲状态,则为所述第二 NFC主机执行射频通信过程。
结合第二方面的第二种可能的实现方式, 在第四种可能的实现方式中, 还包括:
若所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 向所 述第一 NFC主机发送所述通告消息,则在接收到所述第一 NFC主机发送的 第四消息时, 为所述第二 NFC主机执行射频通信过程, 其中, 所述第四消 息是所述第一 NFC主机在确定所述 NFCC当前处于空闲状态时发送的。
结合第三方面, 以及结合第三方面的上述任意一种实现方式, 在第五 种可能的实现方式中, 还包括:
若所述 NFCC接收到所述第一 NFC主机发送的第五消息, 则拒绝为所 述第二 NFC主机执行射频通信过程,所述第五消息是所述第一 NFC主机确 定所述 NFCC当前处于非空闲状态且所述第二 NFC主机的优先级低于所述 第三 NFC主机的优先级时发送的。 第三方面, 一种 NFC射频通信的控制装置, 包括: 接收单元, 用于接收第一消息, 该第一消息用于表示第二 NFC主机请 求射频通信;
主控单元, 用于确定近场通信控制器 NFCC 当前处于非空闲状态时, 对所述第二 NFC主机和第三 NFC主机进行优先级比较,其中,所述第三主 机为所述 NFCC当前执行射频通信过程所对应的 NFC主机;
发送单元,用于当第二 NFC主机的优先级高于所述第三 NFC主机的优 先级时, 向所述 NFCC发送第二消息, 指示所述 NFCC终止当前为所述第 三 NFC主机执行的射频通信过程。
结合第三方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述第二消息还用于指示所述 NFCC为所述第 二 NFC主机执行射频通信过程; 或者, 当所述第二 NFC主机的优先级高于 所述第三 NFC 主机的优先级时, 所述发送单元还用于: 向所述第二 NFC 主机发送第三消息, 指示所述第二 NFC主机重新请求射频通信。
结合第三方面或第三方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述接收单元接收第一消息, 包括:
所述接收单元接收所述 NFCC发送的通告消息, 该通告消息是 NFCC 接收到所述第二 NFC主机发送的射频通信请求后发送的; 或者,
所述接收单元接收所述第二 NFC主机发送的射频通信请求。
结合第三方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述主控单元确定 NFCC当前处于非空闲状态, 包括:
若所述接收单元接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收单元接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息后, 所述主控单元在获知所述 NFCC当前为所述第三 NFC主机执 行射频通信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收单元接收到所述第二 NFC主机发送的射频通信请求, 则在 接收到所述射频通信请求后, 所述主控单元在获知所述 NFCC 当前为所述 第三 NFC主机执行射频通信过程时 ,确定所述 NFCC当前处于非空闲状态。
结合第三方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述发送单元还用于:
在所述接收单元接收到所述 NFCC发送的通告消息或者接收到所述第 二 NFC主机发送的射频通信请求之后, 若所述主控单元获知所述 NFCC当 前处于空闲状态, 则向所述 NFCC发送第四消息, 指示所述 NFCC为所述 第二 NFC主机执行射频通信过程。
结合第三方面, 以及结合第三方面的上述任意一种可能的实现方式, 在第五种可能的实现方式中, 所述主控单元对所述第二 NFC主机和所述第 三 NFC主机进行优先级比较, 包括:
所述主控单元根据所述第一 NFC主机针对所述第二 NFC主机和第三 NFC主机预配置的优先级信息, 对所述第二 NFC主机和所述第三 NFC主 机进行优先级比较; 或者,
所述主控单元根据系统初始配置的优先级信息, 对所述第二 NFC主机 和所述第三 NFC主机进行优先级比较; 或者,
所述主控单元将所述第二 NFC主机和所述第三 NFC主机的提示信息通 知用户, 并根据用户基于所述提示信息设置的优先级, 对所述第二 NFC主 机和所述第三 NFC主机进行优先级比较。
结合第三方面, 以及结合第三方面的上述任意一种可能的实现方式, 在第六种可能的实现方式中, 所述发送单元还用于:
当所述第二 NFC主机的优先级低于所述第三 NFC主机的优先级时,向 所述第二 NFC 主机发送第五消息, 所述第五消息用于表示所述第二 NFC 主机请求进行的射频通信被拒绝。 第四方面, 一种 NFC射频通信的控制装置, 包括:
通信单元, 用于在接收到第二 NFC主机发送的射频通信请求时, 向第 一 NFC主机发送第一消息;
处理单元, 用于在所述通信单元接收到所述第一 NFC主机发送的第二 消息时, 终止当前为第三 NFC主机执行的射频通信过程, 其中, 所述第二 消息是所述第一 NFC主机接收到所述第一消息后在确定所述 NFCC当前处 于非空闲状态且所述第二 NFC主机的优先级高于所述第三 NFC主机的优先 级时发送的, 所述第三 NFC主机为所述 NFCC当前执行射频通信过程所对 应的 NFC主机。
结合第四方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述通信单元接收到所述第二消息后, 所述处 理单元进一步为所述第二 NFC主机执行射频通信过程; 或者, 所述通信单 元接收到所述第二消息后, 在所述通信单元接收到所述第二 NFC主机重新 发送的射频通信请求时, 所述处理单元为所述第二 NFC主机执行射频通信 过程,其中,所述第二 NFC主机在接收到所述第一 NFC主机发送的第三消 息时, 重新发送射频通信请求。
结合第四方面或第四方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述通信单元接收到所述第二 NFC主机发送的射频通信请求 时, 向所述第一 NFC主机发送第一消息, 包括:
所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 在确 定所述处理单元当前为所述第三 NFC主机执行射频通信过程时, 向所述第 一 NFC主机发送通告消息; 或者,
所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 向所 述第一 NFC主机发送通告消息。
结合第四方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述处理单元还用于:
所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 若所 述处理单元确定自身当前处于空闲状态, 则为所述第二 NFC主机执行射频 通信过程。
结合第四方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述处理单元还用于:
若所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 向 所述第一 NFC主机发送所述通告消息, 则在所述通信单元接收到所述第一 NFC主机发送的第四消息时,所述处理单元为所述第二 NFC主机执行射频 通信过程, 其中, 所述第四消息是所述第一 NFC主机在确定所述 NFCC当 前处于空闲状态时发送的。 结合第四方面, 以及结合第四方面的上述任意一种实现方式, 在第五 种可能的实现方式中, 所述处理单元还用于:
若所述通信单元接收到所述第一 NFC主机发送的第五消息, 则所述处 理单元拒绝为所述第二 NFC主机执行射频通信过程, 所述第五消息是所述 第一 NFC主机确定所述 NFCC当前处于非空闲状态且所述第二 NFC主机 的优先级低于所述第三 NFC主机的优先级时发送的。 第五方面, 一种 NFC射频通信的控制装置, 包括:
接收端口, 用于接收第一消息, 该第一消息用于表示第二 NFC主机请 求射频通信;
处理器, 用于确定近场通信控制器 NFCC 当前处于非空闲状态时, 对 所述第二 NFC主机和第三 NFC主机进行优先级比较,其中,所述第三主机 为所述 NFCC当前执行射频通信过程所对应的 NFC主机;
发送端口,用于当第二 NFC主机的优先级高于所述第三 NFC主机的优 先级时, 向所述 NFCC发送第二消息, 指示所述 NFCC终止当前为所述第 三 NFC主机执行的射频通信过程。
结合第五方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述第二消息还用于指示所述 NFCC为所述第 二 NFC主机执行射频通信过程; 或者, 当所述第二 NFC主机的优先级高于 所述第三 NFC 主机的优先级时, 所述发送端口还用于: 向所述第二 NFC 主机发送第三消息, 指示所述第二 NFC主机重新请求射频通信。
结合第五方面或第五方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述接收端口接收第一消息, 包括:
所述接收端口接收所述 NFCC发送的通告消息, 该通告消息是 NFCC 接收到所述第二 NFC主机发送的射频通信请求后发送的; 或者,
所述接收端口接收所述第二 NFC主机发送的射频通信请求。
结合第五方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述处理器确定 NFCC当前处于非空闲状态, 包括:
若所述接收端口接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收端口接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息后, 所述处理器在获知所述 NFCC当前为所述第三 NFC主机执行 射频通信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收端口接收到所述第二 NFC主机发送的射频通信请求, 则在 接收到所述射频通信请求后, 所述处理器在获知所述 NFCC 当前为所述第 三 NFC主机执行射频通信过程时, 确定所述 NFCC当前处于非空闲状态。
结合第五方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述发送端口还用于:
在所述接收端口接收到所述 NFCC发送的通告消息或者接收到所述第 二 NFC主机发送的射频通信请求之后, 若所述处理器获知所述 NFCC当前 处于空闲状态, 则向所述 NFCC发送第四消息, 指示所述 NFCC为所述第 二 NFC主机执行射频通信过程。
结合第五方面, 以及结合第五方面的上述任意一种可能的实现方式, 在第五种可能的实现方式中, 所述处理器对所述第二 NFC主机和所述第三 NFC主机进行优先级比较, 包括:
所述处理器根据所述第一 NFC 主机针对所述第二 NFC 主机和第三 NFC主机预配置的优先级信息, 对所述第二 NFC主机和所述第三 NFC主 机进行优先级比较; 或者,
所述处理器根据系统初始配置的优先级信息, 对所述第二 NFC主机和 所述第三 NFC主机进行优先级比较; 或者,
所述处理器将所述第二 NFC主机和所述第三 NFC主机的提示信息通知 用户, 并根据用户基于所述提示信息设置的优先级, 对所述第二 NFC主机 和所述第三 NFC主机进行优先级比较。
结合第五方面, 以及结合第五方面的上述任意一种可能的实现方式, 在第六种可能的实现方式中, 所述发送端口还用于:
当所述第二 NFC主机的优先级低于所述第三 NFC主机的优先级时,向 所述第二 NFC 主机发送第五消息, 所述第五消息用于表示所述第二 NFC 主机请求进行的射频通信被拒绝。 第六方面, 一种 NFC射频通信的控制装置, 包括:
通信端口, 用于在接收到第二 NFC主机发送的射频通信请求时, 向第 一 NFC主机发送第一消息;
处理器, 用于在所述通信端口接收到所述第一 NFC主机发送的第二消 息时, 终止当前为第三 NFC主机执行的射频通信过程, 其中, 所述第二消 息是所述第一 NFC主机接收到所述第一消息后在确定所述 NFCC当前处于 非空闲状态且所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级 时发送的, 所述第三 NFC主机为所述 NFCC当前执行射频通信过程所对应 的 NFC主机。
结合第六方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述通信端口接收到所述第二消息后, 所述处 理器进一步为所述第二 NFC主机执行射频通信过程; 或者, 所述通信端口 接收到所述第二消息后, 在所述通信端口接收到所述第二 NFC主机重新发 送的射频通信请求时,所述处理器为所述第二 NFC主机执行射频通信过程, 其中, 所述第二 NFC主机在接收到所述第一 NFC主机发送的第三消息时, 重新发送射频通信请求。
结合第六方面或第六方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述通信端口接收到所述第二 NFC主机发送的射频通信请求 时, 向所述第一 NFC主机发送第一消息, 包括:
所述通信端口接收到所述第二 NFC主机发送的射频通信请求后, 在确 定所述处理器当前为所述第三 NFC主机执行射频通信过程时, 向所述第一 NFC主机发送通告消息; 或者,
所述通信端口接收到所述第二 NFC主机发送的射频通信请求后, 向所 述第一 NFC主机发送通告消息。
结合第六方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述处理器还用于:
所述通信端口接收到所述第二 NFC主机发送的射频通信请求后, 若所 述处理器确定自身当前处于空闲状态, 则为所述第二 NFC主机执行射频通 信过程。
结合第六方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述处理器还用于:
若所述通信端口接收到所述第二 NFC主机发送的射频通信请求后, 向 所述第一 NFC主机发送所述通告消息, 则在所述通信端口接收到所述第一 NFC主机发送的第四消息时,所述处理器为所述第二 NFC主机执行射频通 信过程, 其中, 所述第四消息是所述第一 NFC主机在确定所述 NFCC当前 处于空闲状态时发送的。
结合第六方面, 以及结合第六方面的上述任意一种实现方式, 在第五 种可能的实现方式中, 所述处理器还用于:
若所述通信端口接收到所述第一 NFC主机发送的第五消息, 则所述处 理器拒绝为所述第二 NFC主机执行射频通信过程, 所述第五消息是所述第 一 NFC主机确定所述 NFCC当前处于非空闲状态且所述第二 NFC主机的 优先级低于所述第三 NFC主机的优先级时发送的。 第七方面, 一种 NFC射频通信的控制系统, 包括第一 NFC主机、 第二 NFC主机、 第三 NFC主机和近场通信控制器 NFCC, 其中,
所述第一 NFC 主机, 用于接收第一消息, 该第一消息表示所述第二 NFC主机请求进行射频通信,并在确定所述 NFCC当前处于非空闲状态时, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较,以及在所述第 二 NFC主机的优先级高于所述第三 NFC主机的优先级时, 向所述 NFCC 发送第二消息, 其中, 所述第三 NFC主机为所述 NFCC当前执行射频通信 过程所对应的 NFC主机;
所述 NFCC , 用于根据所述第二消息终止当前为所述第三 NFC主机执 行的射频通信过程。
结合第七方面, 在第一种可能的实现方式中, 所述第二消息携带所述 第二 NFC主机的配置信息, 所述第二消息还用于指示所述 NFCC为所述第 二 NFC主机执行射频通信过程; 或者, 当所述第二 NFC主机的优先级高于 所述第三 NFC主机的优先级时, 所述第一 NFC主机还用于: 向所述第二 NFC主机发送第三消息, 指示所述第二 NFC主机重新请求射频通信。
结合第七方面或第七方面的第一种可能的实现方式, 在第二种可能的 实现方式中,
所述第一 NFC主机接收第一消息, 包括: 所述第一 NFC主机接收所述 NFCC发送的通告消息, 该通知消息是 NFCC接收到所述第二 NFC主机发 送的射频通信请求后发送的; 或者, 所述第一 NFC主机接收所述第二 NFC 主机发送的射频通信请求;
所述 NFCC还用于,接收到所述第二 NFC主机发送的射频通信请求时 后, 在确定所述 NFCC当前为所述第三 NFC主机执行射频通信过程时, 向 所述第一 NFC主机发送所述通告消息; 或者,接收到所述第二 NFC主机发 送的射频通信请求后, 向所述第一 NFC主机发送所述通告消息。
结合第七方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述 NFCC还用于:
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 若确定 所述 NFCC当前处于空闲状态, 则执行针对所述第二 NFC主机的射频通信 过程。
结合第七方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述第一 NFC主机确定所述 NFCC当前处于非空闲状态, 包括:
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息后, 在获知所述 NFCC当前为所述第三 NFC主机执行射频通 信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述第二 NFC主机发送的射频通信请求, 则在接收到所述射频通信请求后, 在获知所述 NFCC当前为所述第三 NFC 主机执行射频通信过程时, 确定所述 NFCC当前处于非空闲状态。
结合第七方面的第四种可能的实现方式, 在第五种可能的实现方式中, 所述第一 NFC主机还用于:
在所述第一 NFC主机接收到所述 NFCC发送的通告消息或者接收到所 述第二 NFC主机发送的射频通信请求之后,若所述第一 NFC主机获知所述 NFCC当前处于空闲状态, 则向所述 NFCC发送第四消息, 所述 NFCC根 据所述第四消息执行针对所述第二 NFC主机的射频通信过程。
结合第七方面, 以及结合第七方面的上述任意一种实现方式, 在第六 种可能的实现方式中, 所述第一 NFC主机对当前使用所述 NFCC 的第二 NFC主机与所述第三 NFC主机进行优先级比较, 包括:
所述第一 NFC主机根据所述第一 NFC主机针对各 NFC主机预配置的 优先级信息, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机根据系统初始配置的优先级信息,对所述第二 NFC 主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机将所述第二 NFC主机和所述第三 NFC主机的相关 提示信息通知用户, 并根据用户基于所述相关提示信息设置的优先级, 对 所述第二 NFC主机和所述第三 NFC主机进行优先级比较。
结合第七方面, 以及结合第七方面的上述任意一种实现方式, 在第七 种可能的实现方式中, 所述第一 NFC主机还用于:
所述第一 NFC 主机确定所述第二 NFC 主机的优先级低于所述第三 NFC主机的优先级时, 向所述 NFCC发送第五消息, 所述 NFCC根据所述 第五消息拒绝执行针对所述第二 NFC主机的射频通信过程。 综上所述, 本发明实施例中, 第一 NFC主机接收到用于表示第二 NFC 主机请求射频通信的第一消息后, 在确定 NFCC 当前处于非空闲状态时, 对第二 NFC主机和第三 NFC主机进行优先级比较,其中,第三主机为 NFCC 当前执行射频通信过程所对应的 NFC主机,当第二 NFC主机的优先级高于 第三 NFC主机的优先级时, 第一 NFC主机向 NFCC发送第二消息, 所述 NFCC根据该第二消息终止当前为第三 NFC主机执行的射频通信过程。 这 样, 由于针对各 NFC主机配置了相应的优先级, 因而在运行某个高优先级 的 NFC主机时能够优先获取使用 NFCC的权利,相应的, 低优先级的 NFC 主机对应的射频通信过程会被中止, 从而有效避免了在 NFC多主架构下多 个 NFC主机对 NFCC请求射频通信所引起的冲突问题, 保持了系统的运行 可靠性。 附图说明
图 1为现有技术下 NFC设备单主架构示意图;
图 2为现有技术下 NFC设备多主架构示意图;
图 3为本发明实施例中釆用的消息格式示意图;
图 4为本发明实施例中第一种 NFC射频通信的控制方法流程图; 图 5为本发明实施例中第二种 NFC射频通信的控制方法流程图; 图 6为本发明实施例中第一种应用场景示例流程图;
图 7为本发明实施例中第二种应用场景示例流程图;
图 8为本发明实施例中第三种应用场景示例流程图;
图 9为本发明实施例中第一 NFC主机的第一种结构示意图;
图 10为本发明实施例中 NFCC的第一种结构示意图;
图 11为本发明实施例中第一 NFC主机的第二种结构示意图; 图 12为本发明实施例中 NFCC的第二种结构示意图;
图 13为本发明实施例中 NFC射频通信控制系统结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
可选的, 本发明所有实施例中的通用的消息格式定义如图 3 所示, 其 中, MT: 表示消息类型, 001b 为控制指令, 010b为响应消息, 011b 为通知消
息;
PBF: Ob, 表示该消息为一个完整消息包;
GID: 表示组标识符; OID: 表示选项标识符;
Payload Length: 表示负荷数据长度;
Payload: 表示数据;
OCTET: 表示一个字节, 即 8bit。
参阅图 4所示, 本发明实施例中, 第一种 NFC射频通信的控制流程如 下:
步骤 400:第一 NFC主机接收第一消息,该第一消息用于表示第二 NFC 主机请求进行射频通信。
实际应用中, 可选的, 第一 NFC主机为 DH, 第二 NFC主机为一 SE。 本实施例中, 第一 NFC主机接收到的第一消息, 可以是 NFCC在接收 到第二 NFC主机发送的射频通信请求时向第一 NFC主机发送的通告消息, 也可以是第二 NFC主机发送的射频通信请求, 该射频通信请求可以由第二 NFC主机直接发送至第一 NFC主机,也可以由第二 NFC主机发送至 NFCC , 再由 NFCC转发至第一 NFC主机。
步骤 410: 第一 NFC主机确定 NFCC当前处于非空闲状态时, 对第二 NFC主机和第三 NFC主机进行优先级比较,其中,第三 NFC主机为 NFCC 当前执行射频通信过程所对应的 NFC主机。
实际应用中, 第三 NFC主机可以为另一 SE。
本实施例中, 第一 NFC主机确定 NFCC当前是否处于非空闲状态时, 可以釆用但不限于以下方式:
可选的, 若第一 NFC主机接收到 NFCC发送的通告消息, 则在接收到 通告消息时即确定 NFCC 当前处于非空闲状态; 在此种情况下, NFCC是 在已确定其自身处于非空闲状态时才发送的通告消息给第一 NFC主机。
可选的, 若第一 NFC主机接收到 NFCC发送的通告消息, 则在接收到 通告消息后, 在获知 NFCC当前为第三 NFC主机执行射频通信过程时, 确 定 NFCC 当前处于非空闲状态; 在此种情况下, NFCC接收到射频通信请 求后直接发送通告消息给第一 NFC主机, 而第一 NFC主机根据之前控制 NFCC进行射频通信的情况判断 NFCC当前是否处于非空闲状态。
可选的, 若第一 NFC主机接收到第二 NFC主机发送的射频通信请求, 则在接收到射频通信请求后, 在获知 NFCC当前为第三 NFC主机执行射频 通信过程时, 确定 NFCC 当前处于非空闲状态; 在此种情况下, NFCC接 收到射频通信请求后直接发送通告消息给第一 NFC主机,而第一 NFC主机 根据之前控制 NFCC进行射频通信的情况判断 NFCC当前是否处于非空闲 状态。
需要说明的是, NFCC可以有多种状态, 例如为以下 7种状态: 1、 空 闲状态 (RFST— IDLE ), 在第一 NFC主机和 NFCC成功初始化后, NFCC 的射频通信状态为空闲; 2、 执行射频发现的状态 (RFST— DISCOVERY ), 该状态为: NFCC根据射频发现命令发起射频发现过程, 并根据发现配置
( discovery configuration )执行射频发现过程的状态; 3、 发现多个远端设 备(远端 NFC端点)的状态( RFST_W4_ALL_DISCOVERIES ), 该状态为 NFCC 发现多个远端设备或一个远端设备的状态; 4、 主机选择的状态
( RFST— W4— HOST— SELECT ), 该状态为: NFCC在发现多个远端设备后, 等待 NFC 主机来选择一个远端设备的状态; 5、 激活后的轮询状态
( RFST— POLL— ACTIVE ), 该状态下为 NFCC被激活并处于轮询模式的状 态; 6、 激活后的侦听状态(RFST— LISTEN— ACTIVE ), 该状态为 NFCC被 激活并处于侦听模式的状态; 7、 休眠状态 (RFST— LISTEN— SLEEP ), 当 NFCC在激活后的侦听状态下,长时间没有侦听到内容,则转变为休眠状态。 其中, 远端 NFC端点 ( remote nfc endpoint ), 可以为 NFC设备, 也可以表 示 NFC标签。
本发明各实施例中所述的射频通信过程, 可以包括: 从 NFCC发起射 频发现过程开始, 直至 NFCC与远端设备进行射频通信结束的所有过程中 的任意一个或多个, 即在射频通信过程中, NFCC可以处于上述状态 2-6中 的任一状态。 上述 7种状态中, 除了空闲状态以外的 6种状态, 可以统称 为非空闲状态。
另一方面, 本实施例中, 第一 NFC主机对第二 NFC主机和第三 NFC 主机进行优先级比较时, 亦可以釆用但不限于以下方式:
可选的, 第一 NFC主机可以根据该第一 NFC主机针对第二 NFC主机 和第三 NFC主机预配置的优先级信息, 对第二 NFC主机和第三 NFC主机 进行优先级比较。
例如,在系统启动后,第一 NFC主机可以根据用户指令设置 NFC主机 的优先级列表,在该 NFC主机优先级列表中记录有预配置的各个 NFC主机 的优先级。 这样做, 各个 NFC主机的优先级可以根据用户指令灵活设置, 从而更符合用户使用需求。
可选的, 第一 NFC主机亦可以根据系统初始配置的优先级信息, 对第 二 NFC主机和第三 NFC主机进行优先级比较。
例如,第一 NFC主机可以根据系统在出厂阶段默认设置的 NFC主机的 优先级信息, 确定每一个 NFC主机的优先级。 这样做, 可以有效节省优先 级信息的设置时间, 提高射频通信的控制效率。
可选的, DH还可以将第二 NFC主机和第三 NFC主机的提示信息通知 用户, 并根据用户基于该提示信息设置的优先级, 对第二 NFC主机和第三 NFC主机进行优先级比较。
例如: 第一 NFC主机向用户提示第二 NFC主机和第三 NFC主机的应 用内容, 请用户选择其中一个做为高优先级的 NFC主机。 这样做, 可以根 据用户临时的使用需求设置第二 NFC主机和第三 NFC主机的优先级,形式 更为灵活便捷。
步骤 420: 当第二 NFC主机的优先级高于第三 NFC主机的优先级时, 第一 NFC主机向 NFCC发送第二消息, 指示 NFCC终止当前为第三 NFC 主机执行的射频通信过程。
本实施例中, 在执行步骤 420时, 第一 NFC主机可以在第二消息中携 带第二 NFC主机的配置信息, 此时, 该第二消息还进一步用于指示 NFCC 为第二 NFC主机执行射频通信过程;
或者, 在执行步骤 420时, 当第二 NFC主机的优先级高于第三 NFC 主机的优先级时,所述第一 NFC主机可以进一步向第二 NFC主机发送第三 消息, 指示第二 NFC主机重新请求射频通信; 此时, 由于 NFCC已经终止 为第三 NFC主机执行射频通信过程, 因而, 当第二 NFC主机重新请求射频 通信时, NFCC便可以立即开始为第二 NFC主机执行射频通信过程。
需要说明的是, 步骤 420中第一 NFC主机指示 NFCC终止当前的射频 通信过程, 在 NFCC终止当前的射频通信过程之后, NFCC可以直接为第 二 NFC主机执行射频通信过程,也可以在第二 NFC主机在重新请求射频通 信时, 为第二 NFC主机执行射频通信过程。
本实施例中, 可选的, DH 釆用的第二消息可以釆用以下新增的 RF— DISCO VERY— SE—REQ—CMD , 其消息格式如表 1所示:
表 1
Figure imgf000021_0001
其中, MT: 001b;PBF:0bGID: llllb;OID: 0010b;PayloadLength: 3 Octets„ 第一 NFC主机向 NFCC发送 RF— DISCOVERY— SE—REQ—CMD, 用于 终止 NFCC 正在进行的射频通信, 进一步的, 还可以为该 RF— DISCOVERY— SE—REQ—CMD中所携带的配置信息所表示的 NFC主机 向 NFCC发起射频通信请求。
相 应 的 , 可 选 的 , NFCC 釆 用 以 下 新 增 的 RF— DISCOVERY— SE—REQ—RSP作为第二消息的响应消息, 其消息格式如 表 2所示:
表 2
Figure imgf000021_0002
其中, MT: 010b;PBF:0b;GID: llllb;OID: 0011b;PayloadLength: 1
Octets„ 在上述实施例中 , 在执行步骤 410时, 在第一 NFC主机接收到 NFCC 发送的通告消息或者接收到第二 NFC主机发送的射频通信请求之后, 若第 一 NFC主机获知 NFCC当前处于空闲状态, 则向 NFCC发送第四消息, 指 示 NFCC开始为第二 NFC主机的执行射频通信过程。
进一步的, 本实施例中, 可选的, 第一 NFC主机釆用的第四消息可以 釆用以下新增的 RF— DISCOVERY— ALLOW— SE—REQ—CMD,其消息格式如 表 3所示:
表 3
Figure imgf000022_0001
其中, MT: 001b; PBF: 0b; GID: 1111b; OID: 0000b; PayloadLength: 3 Octets„
第 一 NFC 主 机 向 NFCC 发 送 RF— DISCOVERY— ALLOW— SE—REQ—CMD, 允许 NFCC为指定的 SE执行 射频通信过程;
相 应 的 , 可 选 的 , NFCC 釆 用 以 下 新 增 的 RF— DISCO VERY— ALLOW— SE—REQ—RSP作为第四消息的响应消息, 其消 息格式如表 4所示:
表 4
Figure imgf000022_0002
MT: 010b; PBF:0b; GID: 1111b; OID: 0001b; PayloadLength: 1 Octets„ 另一方面,在执行步骤 420时,若第一 NFC主机确定第二 NFC主机的 优先级低于第三 NFC主机的优先级, 则向 NFCC发送第五消息, 该第五消 息用于表示第二 NFC主机请求进行的射频通信被拒绝。 参阅图 5所示, 本发明实施例中, 第二种 NFC射频通信的控制流程如 下:
步骤 500: NFCC接收第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息。
本实施例中, 在执行步骤 500时, NFCC可以在接收到第二 NFC主机 发送的射频通信请求后, 在确定 NFCC当前为第三 NFC主机执行射频通信 过程时, 向第一 NFC主机发送通告消息; 或者, 也可以在接收到第一 NFC 主机发送的射频通信请求后, 立即向第一 NFC主机发送通告消息。
步骤 510: NFCC接收到第一 NFC主机发送的第二消息时, 终止当前 为第三 NFC主机执行的射频通信过程,其中,第二消息是第一 NFC主机在 接收到所述第一消息后, 确定 NFCC当前处于非空闲状态且第二 NFC主机 的优先级高于第三 NFC主机的优先级时发送的,而第三 NFC主机为 NFCC 当前执行射频通信过程所对应的 NFC主机。
本实施例中, 在执行步骤 510时, 若第二消息中携带第二 NFC主机的 配置信息, 则 NFCC可以在接收到第二消息后, 在终止为第三 NFC主机执 行射频通信过程的同时或之后, 进一步开始为第二 NFC主机执行射频通信 过程;
或者, 在执行步骤 510时, NFCC也可以在接收到第二消息后, 在接收 到第二 NFC主机重新发送的射频通信请求时,再开始为第二 NFC主机执行 射频通信过程,其中,第二 NFC主机是在接收到所述第一 NFC主机发送的 第三消息时, 再重新发送射频通信请求的。
可选的, 第二消息釆用的消息格式可以参考表 1所示, 而 NFCC回复 的响应消息釆用的消息格式可以参考表 2所示。
另一方面, 在上述实施例中, 若 NFCC接收到第一 NFC主机发送的第 五消息, 则拒绝为第二 NFC主机执行射频通信过程, 因为, 该第五消息是 第一 NFC主机确定 NFCC当前处于非空闲状态且第二 NFC主机的优先级 低于第三 NFC主机的优先级时发送的。
在上述实施例中, 在执行步骤 500时, 若 NFCC接收到第二 NFC主机 发送的射频通信请求后, 立即向第一 NFC主机发送通告消息, 则在接收到 第一 NFC主机发送的第四消息时,开始为第二 NFC主机执行射频通信过程 , 其中,第四消息是第一 NFC主机在确定 NFCC当前处于空闲状态时发送的。
可选的, 第四消息所釆用的消息格式可以参考表 3所示, 而 NFCC回 复的响应消息釆用的消息格式可以参考表 4所示。
另一方面, 在执行步骤 500时, NFCC在接收到第二 NFC主机发送的 射频通信请求后, 若确定该 NFCC 当前处于空闲状态, 则可以直接开始为 第二 NFC主机执行射频通信过程。 下面釆用三个具体的应用场景对上述实施例作出进一步详细介绍。 以下应用场景中, 均以第一 NFC主机为 DH, 第二 NFC主机为 SE1 , 第三 NFC主机为 SE2为例进行介绍。
参阅图 6所示, 第一种应用场景的具体实施流程如下:
步骤 601 : DH获取 NFCC连接的所有 SE的配置信息, 该配置信息中 至少包含各 SE的标识符、 射频协议、 射频技术和模式。
步骤 602: DH为所有的 SE分配优先级。
步骤 602为可选操作, 因为各 SE的优先级可以选用系统默认设置的优 先级, 也可以在应用过程中由用户根据具体应用场景临时设置, 步骤 602 仅为举例。
步骤 603: SE1向 NFCC发送射频通信请求。
步骤 604: NFCC判断自身状态是否为空闲, 若是, 则执行步骤 609, 否则, 执行步骤 605。
NFCC 当前若为 SE2执行射频通信过程, 则处于非空闲状态, 若未执 行任何射频通信过程, 则处于空闲状态。
步骤 605: NFCC向 DH通告 SE1的射频通信请求, 即 NFCC向 DH发 送通告消息, 通知 DH已经接收到 SE1的射频通信请求。
步骤 606: DH判断 SE1的优先级是否高于 SE2的优先级, 若是, 则执 行步骤 607, 否则, 执行步骤 610。
步骤 607: DH向 NFCC发送 RF— DISCOVERY— SE—REQ—CMD (即射 频通信中止指令), 用于终止 NFCC当前为 SE2执行的射频通信过程, 该中 止指令中还携带了 SE1 的配置信息 (如, 标识符等等), 用于进一步指示
NFCC为 SE1执行射频通信过程。
步骤 608: NFCC终止当前为 SE2执行的射频通信过程, 并执行步骤
609;
步骤 609: NFCC为 SE1执行射频通信过程, 执行结束。
本实施例中, NFCC为 SE1或 SE2执行的射频通信过程, 可以包括射 频发现过程、 目标设备选择激活、 射频数据通信以及射频通信结束的所有 过程。
步骤 610: DH向 NFCC发送射频通信请求的拒绝指令, NFCC向 SE1 转发该拒绝指令, 执行结束。 参阅图 7所示, 第二种应用场景的具体实施流程如下:
步骤 701 : DH获取 NFCC连接的所有 SE的配置信息, 该配置信息中 至少包含各 SE的标识符、 射频协议、 射频技术和模式。
步骤 702: DH为所有的 SE分配优先级。
步骤 702为可选操作, 因为各 SE的优先级可以选用系统默认设置的优 先级, 也可以在应用过程中由用户根据具体应用场景临时设置, 步骤 702 仅为举例。
步骤 703: SE1向 NFCC发送射频通信请求。
步骤 704: NFCC向 DH通告 SE1的射频通信请求, 即 NFCC向 DH发 送通告消息, 通知 DH已经接收到 SE1的射频通信请求。
步骤 705: DH判断 NFCC当前的状态是否空闲,若是,则执行步骤 708, 否则, 执行步骤 706。
NFCC 当前若为 SE2执行射频通信过程, 则处于非空闲状态, 若未执 行任何射频通信过程, 则处于空闲状态。
步骤 706: DH判断 SE1的优先级是否高于 SE2,若是,则执行步骤 707 , 否则, 执行步骤 711。
步骤 707: DH向 NFCC发送 RF— DISCOVERY— SE—REQ—CMD (即射 频通信中止指令), 用于终止当前为 SE2执行的射频通信过程, 该中止指令 中还携带了 SE1的配置信息(如, 标识符等等), 用于向 NFCC请求射频通 信, 接着执行步骤 709。
步骤 708: DH向 NFCC发送 RF— DISCOVERY— ALLOW— SE—REQ—CMD (即射频通信允许指令), 该允许指令中携带了 SE1的配置信息(如, 标识 符等等),用于允许 NFCC为 SE1执行射频通信请求,接着,执行步骤 710。
步骤 709: NFCC终止当前为 SE2执行的射频通信过程, 并执行步骤
710。
步骤 710: NFCC为 SE1执行射频通信过程, 执行结束。
本实施例中, NFCC为 SE1或 SE2执行的射频通信过程, 包括射频发 现过程、 目标设备选择激活、 射频数据通信以及射频通信结束的所有过程。
步骤 711 : DH向 NFCC发送射频通信请求的拒绝指令, NFCC向 SE1 转发该拒绝指令, 执行结束。 参阅图 8所示, 第三种应用场景的具体实施流程如下:
步骤 801 : DH获取 NFCC连接的所有 SE的配置信息, 该配置信息中 至少包含各 SE的标识符、 射频协议、 射频技术和模式。
步骤 802: DH为所有的 SE分配优先级。
步骤 802为可选操作, 因为各 SE的优先级可以选用系统默认设置的优 先级, 也可以在应用过程中由用户根据具体应用场景临时设置, 步骤 802 仅为举例。
步骤 803: SE1向 DH发送射频通信请求。
步骤 804: DH判断 NFCC当前的状态是否空闲,若是,则执行步骤 807, 否则, 执行步骤 805。
NFCC 当前若为 SE2执行射频通信过程, 则处于非空闲状态, 若未执 行任何射频通信过程, 则处于空闲状态。
步骤 805: DH判断 SE1的优先级是否高于 SE2,若是,则执行步骤 806, 否则, 执行步骤 810。
步骤 806: DH向 NFCC发送 RF— DISCOVERY— SE—REQ—CMD (即射 频通信中止指令), 用于终止当前为 SE2执行的射频通信过程, 该中止指令 中还携带了 SE1的配置信息(如, 标识符等等), 用于向 NFCC请求射频通 信, 接着执行步骤 808。
步骤 807: DH向 NFCC发送 RF— DISCOVERY— ALLOW— SE—REQ—CMD (即射频通信允许指令), 该允许指令中携带了 SE1的配置信息(如, 标识 符等等 ),用于允许 NFCC为 SE1执行射频通信请求,接着,执行步骤 809。
步骤 808: NFCC终止当前为 SE2执行的射频通信过程, 并执行步骤
809。
步骤 809: NFCC为 SE1执行射频通信过程, 执行结束。
本实施例中, NFCC为 SE1或 SE2执行的射频通信过程, 包括射频发 现过程、 目标设备选择激活、 射频数据通信以及射频通信结束的所有过程。
步骤 810: DH向 NFCC发送射频通信请求的拒绝指令, NFCC向 SE1 转发该拒绝指令, 执行结束。 基于上述实施例, 参阅图 9所示, 本发明实施例中, 第一 NFC主机包 括接收单元 90、 主控单元 91和发送单元 92, 其中,
接收单元 90, 用于接收第一消息, 该第一消息用于表示第二 NFC主机 请求射频通信;
主控单元 91 ,用于确定 NFCC当前处于非空闲状态时,对第二 NFC主 机和第三 NFC主机进行优先级比较, 其中, 第三主机为 NFCC当前执行射 频通信过程所对应的 NFC主机;
发送单元 92, 用于当第二 NFC主机的优先级高于第三 NFC主机的优 先级时, 向 NFCC发送第二消息, 指示 NFCC终止当前为第三 NFC主机执 行的射频通信过程。
第二消息携带第二 NFC主机的配置信息, 第二消息还用于指示 NFCC 为第二 NFC主机执行射频通信过程; 或者,
当第二 NFC主机的优先级高于第三 NFC主机的优先级时, 发送单元 92还用于: 向第二 NFC主机发送第三消息, 指示第二 NFC主机重新请求 射频通信。
接收单元 90接收第一消息, 包括:
接收单元 90接收 NFCC发送的通告消息,该通告消息是 NFCC接收到 第二 NFC主机发送的射频通信请求后发送的; 或者,
接收单元 90接收第二 NFC主机发送的射频通信请求。
主控单元 91确定 NFCC当前处于非空闲状态, 包括:
若接收单元 90接收到 NFCC发送的通告消息, 则主控单元 91在接收 到通告消息时即确定 NFCC当前处于非空闲状态; 或者,
若接收单元 90接收到 NFCC发送的通告消息, 则主控单元 91在接收 到通告消息后, 主控单元 91在获知 NFCC当前为第三 NFC主机执行射频 通信过程时, 确定 NFCC当前处于非空闲状态; 或者,
若接收单元 90接收到第二 NFC主机发送的射频通信请求, 则主控单 元 91在接收到射频通信请求后, 在获知 NFCC当前为第三 NFC主机执行 射频通信过程时, 确定 NFCC当前处于非空闲状态。
发送单元 92还用于:
在接收单元 90接收到 NFCC发送的通告消息或者接收到第二 NFC主 机发送的射频通信请求之后,若主控单元 91获知 NFCC当前处于空闲状态, 则向 NFCC发送第四消息,指示 NFCC为第二 NFC主机执行射频通信过程。
主控单元 91对第二 NFC主机和第三 NFC主机进行优先级比较,包括: 主控单元 91根据第一 NFC主机针对第二 NFC主机和第三 NFC主机预 配置的优先级信息,对第二 NFC主机和第三 NFC主机进行优先级比较; 或 者,
主控单元 91根据系统初始配置的优先级信息, 对第二 NFC主机和第 三 NFC主机进行优先级比较; 或者,
主控单元 91将第二 NFC主机和第三 NFC主机的提示信息通知用户, 并根据用户基于提示信息设置的优先级,对第二 NFC主机和第三 NFC主机 进行优先级比较。
发送单元 92还用于:
当第二 NFC主机的优先级低于第三 NFC主机的优先级时,向第二 NFC 主机发送第五消息, 第五消息用于表示第二 NFC主机请求进行的射频通信 被拒绝。
参阅图 10所示, 本发明实施例中, NFCC包括通信单元 100和处理单 元 101 , 其中,
通信单元 100, 用于在接收到第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息;
处理单元 101 , 用于在通信单元 100接收到第一 NFC主机发送的第二 消息时, 终止当前为第三 NFC主机执行的射频通信过程, 其中, 第二消息 是第一 NFC主机在确定 NFCC当前处于非空闲状态且第二 NFC主机的优 先级高于第三 NFC主机的优先级时发送的, 第三 NFC主机为 NFCC当前 执行射频通信过程所对应的 NFC主机。
第二消息携带第二 NFC主机的配置信息, 通信单元 100接收到第二消 息后, 处理单元 101进一步为第二 NFC主机执行射频通信过程; 或者
通信单元 100接收到第二消息后, 在通信单元 100接收到第二 NFC主 机重新发送的射频通信请求时, 处理单元 101为第二 NFC主机执行射频通 信过程, 其中, 第二 NFC主机在接收到第一 NFC主机发送的第三消息时, 重新发送射频通信请求。
通信单元 100接收到第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息, 包括:
通信单元 100接收到第二 NFC主机发送的射频通信请求后, 在确定处 理单元 101当前为第三 NFC主机执行射频通信过程时,向第一 NFC主机发 送通告消息; 或者,
通信单元 100接收到第二 NFC主机发送的射频通信请求后, 立即向第 一 NFC主机发送通告消息。
处理单元 101还用于:
通信单元 100接收到第二 NFC主机发送的射频通信请求后, 若处理单 元 101确定自身当前处于空闲状态, 则直接开始为第二 NFC主机执行射频 通信过程。
处理单元 101还用于:
若通信单元 100接收到第二 NFC主机发送的射频通信请求后, 立即向 第一 NFC主机发送通告消息,则在通信单元 100接收到第一 NFC主机发送 的第四消息时, 处理单元 101开始为第二 NFC主机执行射频通信过程, 其 中, 第四消息是第一 NFC主机在确定 NFCC当前处于空闲状态时发送的。
处理单元 101还用于:
若通信单元 100接收到第一 NFC主机发送的第五消息,则处理单元 101 拒绝为第二 NFC主机执行射频通信过程, 第五消息是第一 NFC主机确定 NFCC当前处于非空闲状态且第二 NFC主机的优先级低于第三 NFC主机的 优先级时发送的。 参阅图 11所示, 本发明实施例中, 第一 NFC主机包括接收端口 110、 处理器 111和发送端口 112, 其中,
接收端口 110, 用于接收第一消息, 该第一消息用于表示第二 NFC主 机请求射频通信;
处理器 111 , 用于确定 NFCC当前处于非空闲状态时, 对第二 NFC主 机和第三 NFC主机进行优先级比较, 其中, 第三主机为 NFCC当前执行射 频通信过程所对应的 NFC主机;
发送端口 112, 用于当第二 NFC主机的优先级高于第三 NFC主机的优 先级时, 向 NFCC发送第二消息, 指示 NFCC终止当前为第三 NFC主机执 行的射频通信过程。
第二消息携带第二 NFC主机的配置信息, 第二消息还用于指示 NFCC 为第二 NFC主机执行射频通信过程; 或者,
当第二 NFC主机的优先级高于第三 NFC主机的优先级时, 发送端口 112还用于: 向第二 NFC主机发送第三消息, 指示第二 NFC主机重新请求 射频通信。
接收端口 110接收第一消息, 包括: 接收端口 110接收 NFCC发送的通告消息, 该通告消息是 NFCC接收 到第二 NFC主机发送的射频通信请求后发送的; 或者,
接收端口 110接收第二 NFC主机发送的射频通信请求。
处理器 111确定 NFCC当前处于非空闲状态, 包括:
若接收端口 110接收到 NFCC发送的通告消息, 则处理器 111在接收 到通告消息时即确定 NFCC当前处于非空闲状态; 或者,
若接收端口 110接收到 NFCC发送的通告消息, 则处理器 111在接收 到通告消息后, 在获知 NFCC当前为第三 NFC主机执行射频通信过程时, 确定 NFCC当前处于非空闲状态; 或者,
若接收端口 110接收到第二 NFC主机发送的射频通信请求, 则处理器 111在接收到射频通信请求后, 在获知 NFCC当前为第三 NFC主机执行射 频通信过程时, 确定 NFCC当前处于非空闲状态。
发送端口 112还用于:
在接收端口 110接收到 NFCC发送的通告消息或者接收到第二 NFC主 机发送的射频通信请求之后, 若处理器 111若获知 NFCC当前处于空闲状 态, 则向 NFCC发送第四消息, 指示 NFCC为第二 NFC主机执行射频通信 过程。
处理器 111对第二 NFC主机和第三 NFC主机进行优先级比较, 包括: 处理器 111根据第一 NFC主机针对第二 NFC主机和第三 NFC主机预 配置的优先级信息,对第二 NFC主机和第三 NFC主机进行优先级比较; 或 者,
处理器 111根据系统初始配置的优先级信息, 对第二 NFC主机和第三 NFC主机进行优先级比较; 或者,
处理器 111将第二 NFC主机和第三 NFC主机的提示信息通知用户,并 根据用户基于提示信息设置的优先级,对第二 NFC主机和第三 NFC主机进 行优先级比较。
发送端口 112还用于:
当第二 NFC主机的优先级低于第三 NFC主机的优先级时,向第二 NFC 主机发送第五消息, 第五消息用于表示第二 NFC主机请求进行的射频通信 被拒绝。 参阅图 12所示, 本发明实施例中, NFCC包括通信端口 120和处理器 121 , 其中,
通信端口 120, 用于在接收到第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息;
处理器 121 , 用于在通信端口 120接收到第一 NFC主机发送的第二消 息时, 终止当前为第三 NFC主机执行的射频通信过程, 其中, 第二消息是 第一 NFC主机在接收到第一消息后, 确定 NFCC当前处于非空闲状态且第 二 NFC主机的优先级高于第三 NFC主机的优先级时发送的, 第三 NFC主 机为 NFCC当前执行射频通信过程所对应的 NFC主机。
第二消息携带第二 NFC主机的配置信息, 通信端口 120接收到第二消 息后, 处理器 121进一步为第二 NFC主机执行射频通信过程; 或者
通信端口 120接收到第二消息后, 在通信端口 120接收到第二 NFC主 机重新发送的射频通信请求时, 处理器 101为第二 NFC主机执行射频通信 过程, 其中, 第二 NFC主机在接收到第一 NFC主机发送的第三消息时, 重 新发送射频通信请求。
通信端口 120接收到第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息, 包括:
通信端口 120接收到第二 NFC主机发送的射频通信请求后, 在确定处 理器 121当前为第三 NFC主机执行射频通信过程时,向第一 NFC主机发送 通告消息; 或者,
通信端口 120接收到第二 NFC主机发送的射频通信请求后, 立即向第 一 NFC主机发送通告消息。
处理器 121还用于:
通信端口 120接收到第二 NFC主机发送的射频通信请求后, 若处理器 121确定自身当前处于空闲状态, 则直接开始为第二 NFC主机执行射频通 信过程。
处理器 121还用于: 若通信端口 120接收到第二 NFC主机发送的射频通信请求后, 立即向 第一 NFC主机发送通告消息,则在通信端口 100接收到第一 NFC主机发送 的第四消息时,处理器 121开始为第二 NFC主机执行射频通信过程,其中, 第四消息是第一 NFC主机在确定 NFCC当前处于空闲状态时发送的。
处理器 121还用于:
若通信端口 120接收到第一 NFC主机发送的第五消息, 则处理器 121 拒绝为第二 NFC主机执行射频通信过程, 第五消息是第一 NFC主机确定 NFCC当前处于非空闲状态且第二 NFC主机的优先级低于第三 NFC主机的 优先级时发送的。 参阅图 13所示, 本发明实施例中, NFC射频通信的控制系统包括第一 NFC主机 131、 第二 NFC主机 132、 第三 NFC主机 133和 NFCC130, 其 中,
第一 NFC主机 131 , 用于接收到第一消息, 该第一消息表示第二 NFC 主机请求 132进行射频通信, 并在确定 NFCC当前处于非空闲状态时, 对 第二 NFC主机 132和第三 NFC主机 133进行优先级比较,以及在第二 NFC 主机 132的优先级高于第三 NFC主机 133的优先级时, 向 NFCC130发送 第二消息, 其中, 第三 NFC主机 133为 NFCC130当前执行射频通信过程 所对应的 NFC主机;
NFCC130, 用于根据第二消息终止当前为第三 NFC主机 133执行的射 频通信过程。
第二消息携带第二 NFC主机 132 的配置信息, 第二消息还用于指示 NFCC130为第二 NFC主机 132执行射频通信过程; 或者
当第二 NFC主机 132的优先级高于第三 NFC主机 133的优先级时,第 一 NFC主机 131还用于: 向第二 NFC主机 132发送第三消息, 指示第二 NFC主机 132重新请求射频通信。
第一 NFC主机 131接收第一消息, 包括:
第一 NFC 主机 131 接收到 NFCC发送的通告消息, 该通知消息是 NFCC130接收到第二 NFC主机 132发送的射频通信请求后发送的; 或者, 第一 NFC主机 131接收到第二 NFC主机 132发送的射频通信请求。 所述 NFCC还用于, NFCC130接收到第二 NFC主机 132发送的射频 通信请求时后, 在确定 NFCC130当前为第三 NFC主机 133执行射频通信 过程时, 向第一 NFC主机 131发送通告消息; 或者,
NFCC130接收到第二 NFC主机 132发送的射频通信请求后,立即向第 一 NFC主机 131发送通告消息。
NFCC130还用于:
NFCC130 接收到第二 NFC 主机发送的射频通信请求后, 若确定 NFCC130当前处于空闲状态,则直接开始执行针对第二 NFC主机的射频通 信过程。
第一 NFC主机 131确定 NFCC130当前处于非空闲状态, 包括: 若第一 NFC主机 131接收到 NFCC发送的通告消息, 则在接收到通告 消息时即确定 NFCC当前处于非空闲状态; 或者,
若第一 NFC主机 131接收到 NFCC发送的通告消息, 则在接收到通告 消息后, 在获知 NFCC130当前为第三 NFC主机 133执行射频通信过程时, 确定 NFCC130当前处于非空闲状态; 或者,
若第一 NFC主机 131接收到第二 NFC主机 132发送的射频通信请求, 则在接收到射频通信请求后, 在获知 NFCC130 当前为第三 NFC主机 133 执行射频通信过程时, 确定 NFCC130当前处于非空闲状态。
第一 NFC主机 131还用于:
在第一 NFC主机 131接收到 NFCC130发送的通告消息或者接收到第 二 NFC主机 132发送的射频通信请求之后, 若第一 NFC主机 131 获知 NFCC130当前处于空闲状态, 则向 NFCC130发送第四消息, NFCC 130根 据第二指令开始执行针对第二 NFC主机 132的射频通信过程。
第一 NFC主机 131对当前使用 NFCC130的第二 NFC主机 132与第三 NFC主机 133进行优先级比较, 包括:
第一 NFC主机 131根据第一 NFC主机 131针对各 NFC主机预配置的 优先级信息, 对第二 NFC主机 132和第三 NFC主机 133进行优先级比较; 或者, 第一 NFC主机 131根据系统初始配置的优先级信息,对第二 NFC主机 132和第三 NFC主机 133进行优先级比较; 或者,
第一 NFC主机 131将第二 NFC主机 132和第三 NFC主机 133的相关 提示信息通知用户, 并根据用户基于相关提示信息设置的优先级, 对第二 NFC主机 132和第三 NFC主机 133进行优先级比较。
第一 NFC主机 131还用于:
第一 NFC主机 131确定第二 NFC主机 132的优先级低于第三 NFC主 机 133的优先级时, 向 NFCC130发送第五消息, NFCC130根据第五消息 拒绝执行针对第二 NFC主机 132的射频通信过程。
综上所述, 本发明实施例中, 第一 NFC主机接收到用于表示第二 NFC 主机请求射频通信的第一消息后, 在确定 NFCC 当前处于非空闲状态时, 对第二 NFC主机和第三 NFC主机进行优先级比较,其中,第三主机为 NFCC 当前执行射频通信过程所对应的 NFC主机,当第二 NFC主机的优先级高于 第三 NFC主机的优先级时, 第一 NFC主机向 NFCC发送第二消息, 所述 NFCC根据该第二消息终止当前为第三 NFC主机执行的射频通信过程。 这 样, 由于针对各 NFC主机配置了相应的优先级, 因而在运行某个高优先级 的 NFC主机时能够优先获取使用 NFCC的权利,相应的, 低优先级的 NFC 主机对应的射频通信过程会被中止, 从而有效避免了在 NFC多主架构下多 个 NFC主机对 NFCC请求射频通信所引起的冲突问题, 保持了系统的运行 可靠性。
进一步地, 本发明实施例中, 为第一 NFC 主机提供一个接口来向 NFCC发送新定义的中止指令, 使 NFCC将正在运行的所有射频通信过程 终止, 并且, 可选的, 该中止指令中携带了高优先级 NFC主机的配置信息, 使得 NFCC优先为该高优先级 NFC主机执行射频通信过程, 从而使得高优 先级的 NFC主机在 NFCC非空闲时也能够使用 NFCC, 进而有效保障了高 优先级 NFC主机的运行可靠性。
另一方面, 本发明实施例中, 提供一个接口来允许 NFCC执行或拒绝 其他 NFC主机的射频通信请求, 从而使得高优先级的 NFC主机在 NFCC 非空闲时也能使用 NFCC, 进一步有效保障了高优先级 NFC主机的运行可 靠性。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施 例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个 或多个其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不 限于磁盘存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的 形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知 了基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所 附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和 修改。 不脱离本发明实施例的精神和范围。 这样, 倘若本发明实施例的这些修改 和变型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包 含这些改动和变型在内。

Claims

权 利 要求
1、 一种近场通信 NFC射频通信的控制方法, 其特征在于, 包括: 第一 NFC主机接收第一消息,该第一消息用于表示第二 NFC主机请求 射频通信;
所述第一 NFC主机确定近场通信控制器 NFCC 当前处于非空闲状态 时,对所述第二 NFC主机和第三 NFC主机进行优先级比较, 其中, 所述第 三主机为所述 NFCC当前执行射频通信过程所对应的 NFC主机;
当所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时,所 述第一 NFC主机向所述 NFCC发送第二消息,指示所述 NFCC终止当前为 所述第三 NFC主机执行的射频通信过程。
2、 如权利要求 1所述的方法, 其特征在于,
所述第二消息携带所述第二 NFC主机的配置信息, 所述第二消息还用 于指示所述 NFCC为所述第二 NFC主机执行射频通信过程; 或者
当所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时,所 述方法还包括: 所述第一 NFC主机向所述第二 NFC主机发送第三消息,指 示所述第二 NFC主机重新请求射频通信。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述第一 NFC主机 接收第一消息, 包括:
所述第一 NFC主机接收所述 NFCC发送的通告消息, 该通告消息是 NFCC接收到所述第二 NFC主机发送的射频通信请求后发送的; 或者, 所述第一 NFC主机接收所述第二 NFC主机发送的射频通信请求。
4、 如权利要求 3所述的方法, 其特征在于, 所述第一 NFC主机确定 NFCC当前处于非空闲状态, 包括:
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息后, 在获知所述 NFCC当前为所述第三 NFC主机执行射频通 信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述第二 NFC主机发送的射频通信请求, 则在接收到所述射频通信请求后, 在获知所述 NFCC当前为所述第三 NFC 主机执行射频通信过程时, 确定所述 NFCC当前处于非空闲状态。
5、 如权利要求 4所述的方法, 其特征在于, 还包括:
在所述第一 NFC主机接收到所述 NFCC发送的通告消息或者接收到所 述第二 NFC主机发送的射频通信请求之后,若所述第一 NFC主机获知所述 NFCC当前处于空闲状态,则向所述 NFCC发送第四消息,指示所述 NFCC 为所述第二 NFC主机执行射频通信过程。
6、 如权利要求 1 - 5任一项所述的方法, 其特征在于, 所述第一 NFC 主机对所述第二 NFC主机和所述第三 NFC主机进行优先级比较, 包括: 所述第一 NFC主机根据所述第一 NFC主机针对所述第二 NFC主机和 第三 NFC主机预配置的优先级信息,对所述第二 NFC主机和所述第三 NFC 主机进行优先级比较; 或者,
所述第一 NFC主机根据系统初始配置的优先级信息,对所述第二 NFC 主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机将所述第二 NFC主机和所述第三 NFC主机的提示 信息通知用户, 并根据用户基于所述提示信息设置的优先级, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较。
7、 如权利要求 1 - 6任一项所述的方法, 其特征在于, 还包括: 当所述第二 NFC主机的优先级低于所述第三 NFC主机的优先级时,所 述第一 NFC主机向所述第二 NFC主机发送第五消息,所述第五消息用于表 示所述第二 NFC主机请求进行的射频通信被拒绝。
8、 一种近场通信 NFC射频通信的控制方法, 其特征在于, 包括: 近场通信控制器 NFCC接收到第二 NFC主机发送的射频通信请求时, 向第一 NFC主机发送第一消息;
所述 NFCC接收到所述第一 NFC主机发送的第二消息时, 终止当前为 第三 NFC主机执行的射频通信过程, 其中, 所述第二消息是所述第一 NFC 主机在接收到所述第一消息后, 确定所述 NFCC 当前处于非空闲状态且所 述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时发送的,所述 第三 NFC主机为所述 NFCC当前执行射频通信过程所对应的 NFC主机。
9、 如权利要求 8所述的方法, 其特征在于, 还包括:
所述第二消息携带所述第二 NFC主机的配置信息, 所述 NFCC接收到 所述第二消息后, 进一步为所述第二 NFC主机执行射频通信过程; 或者 所述 NFCC在接收到所述第二消息后, 在接收到所述第二 NFC主机重 新发送的射频通信请求时,为所述第二 NFC主机执行射频通信过程,其中, 所述第二 NFC主机在接收到所述第一 NFC主机发送的第三消息时 ,重新发 送射频通信请求。
10、 如权利要求 8或 9所述的方法, 其特征在于, 所述 NFCC接收到 所述第二 NFC主机发送的射频通信请求时,向所述第一 NFC主机发送第一 消息, 包括:
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 在确定 所述 NFCC 当前为所述第三 NFC主机执行射频通信过程时, 向所述第一 NFC主机发送通告消息; 或者,
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 向所述 第一 NFC主机发送通告消息。
11、 如权利要求 10所述的方法, 其特征在于, 还包括:
所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 若确定 所述 NFCC当前处于空闲状态,则为所述第二 NFC主机执行射频通信过程。
12、 如权利要求 10所述的方法, 其特征在于, 还包括:
若所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 向所 述第一 NFC主机发送所述通告消息,则在接收到所述第一 NFC主机发送的 第四消息时, 为所述第二 NFC主机执行射频通信过程, 其中, 所述第四消 息是所述第一 NFC主机在确定所述 NFCC当前处于空闲状态时发送的。
13、 如权利要求 8 - 12任一项所述的方法, 其特征在于, 还包括: 若所述 NFCC接收到所述第一 NFC主机发送的第五消息, 则拒绝为所 述第二 NFC主机执行射频通信过程,所述第五消息是所述第一 NFC主机确 定所述 NFCC当前处于非空闲状态且所述第二 NFC主机的优先级低于所述 第三 NFC主机的优先级时发送的。
14、 一种近场通信 NFC射频通信的控制装置, 其特征在于, 包括: 接收单元, 用于接收第一消息, 该第一消息用于表示第二 NFC主机请 求射频通信;
主控单元, 用于确定近场通信控制器 NFCC 当前处于非空闲状态时, 对所述第二 NFC主机和第三 NFC主机进行优先级比较,其中,所述第三主 机为所述 NFCC当前执行射频通信过程所对应的 NFC主机;
发送单元,用于当第二 NFC主机的优先级高于所述第三 NFC主机的优 先级时, 向所述 NFCC发送第二消息, 指示所述 NFCC终止当前为所述第 三 NFC主机执行的射频通信过程。
15、 如权利要求 14所述的装置, 其特征在于,
所述第二消息携带所述第二 NFC主机的配置信息, 所述第二消息还用 于指示所述 NFCC为所述第二 NFC主机执行射频通信过程; 或者
当所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时,所 述发送单元还用于: 向所述第二 NFC 主机发送第三消息, 指示所述第二 NFC主机重新请求射频通信。
16、 如权利要求 14或 15所述的装置, 其特征在于, 所述接收单元接 收第一消息, 包括:
所述接收单元接收所述 NFCC发送的通告消息, 该通告消息是 NFCC 接收到所述第二 NFC主机发送的射频通信请求后发送的; 或者,
所述接收单元接收所述第二 NFC主机发送的射频通信请求。
17、如权利要求 16所述的装置,其特征在于,所述主控单元确定 NFCC 当前处于非空闲状态, 包括:
若所述接收单元接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收单元接收到所述 NFCC发送的通告消息, 则在接收到所述 通告消息后, 所述主控单元在获知所述 NFCC当前为所述第三 NFC主机执 行射频通信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述接收单元接收到所述第二 NFC主机发送的射频通信请求, 则在 接收到所述射频通信请求后, 所述主控单元在获知所述 NFCC 当前为所述 第三 NFC主机执行射频通信过程时 ,确定所述 NFCC当前处于非空闲状态。
18、 如权利要求 17所述的装置, 其特征在于, 所述发送单元还用于: 在所述接收单元接收到所述 NFCC发送的通告消息或者接收到所述第 二 NFC主机发送的射频通信请求之后, 若所述主控单元获知所述 NFCC当 前处于空闲状态, 则向所述 NFCC发送第四消息, 指示所述 NFCC为所述 第二 NFC主机执行射频通信过程。
19、 如权利要求 14 - 18任一项所述的装置, 其特征在于, 所述主控单 元对所述第二 NFC主机和所述第三 NFC主机进行优先级比较, 包括: 所述主控单元根据所述第一 NFC主机针对所述第二 NFC主机和第三 NFC主机预配置的优先级信息, 对所述第二 NFC主机和所述第三 NFC主 机进行优先级比较; 或者,
所述主控单元根据系统初始配置的优先级信息, 对所述第二 NFC主机 和所述第三 NFC主机进行优先级比较; 或者,
所述主控单元将所述第二 NFC主机和所述第三 NFC主机的提示信息通 知用户, 并根据用户基于所述提示信息设置的优先级, 对所述第二 NFC主 机和所述第三 NFC主机进行优先级比较。
20、 如权利要求 14 - 18任一项所述的装置, 其特征在于, 所述发送单 元还用于:
当所述第二 NFC主机的优先级低于所述第三 NFC主机的优先级时,向 所述第二 NFC 主机发送第五消息, 所述第五消息用于表示所述第二 NFC 主机请求进行的射频通信被拒绝。
21、 一种近场通信 NFC射频通信的控制装置, 其特征在于, 包括: 通信单元, 用于在接收到第二 NFC主机发送的射频通信请求时, 向第 一 NFC主机发送第一消息;
处理单元, 用于在所述通信单元接收到所述第一 NFC主机发送的第二 消息时, 终止当前为第三 NFC主机执行的射频通信过程, 其中, 所述第二 消息是所述第一 NFC主机接收到所述第一消息后在确定所述 NFCC当前处 于非空闲状态且所述第二 NFC主机的优先级高于所述第三 NFC主机的优先 级时发送的, 所述第三 NFC主机为所述 NFCC当前执行射频通信过程所对 应的 NFC主机。
22、 如权利要求 21所述的装置, 其特征在于,
所述第二消息携带所述第二 NFC主机的配置信息, 所述通信单元接收 到所述第二消息后, 所述处理单元进一步为所述第二 NFC主机执行射频通 信过程; 或者
所述通信单元接收到所述第二消息后, 在所述通信单元接收到所述第 二 NFC 主机重新发送的射频通信请求时, 所述处理单元为所述第二 NFC 主机执行射频通信过程, 其中, 所述第二 NFC主机在接收到所述第一 NFC 主机发送的第三消息时, 重新发送射频通信请求。
23、 如权利要求 21或 22所述的装置, 其特征在于, 所述通信单元接 收到所述第二 NFC主机发送的射频通信请求时,向所述第一 NFC主机发送 第一消息, 包括:
所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 在确 定所述处理单元当前为所述第三 NFC主机执行射频通信过程时, 向所述第 一 NFC主机发送通告消息; 或者,
所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 向所 述第一 NFC主机发送通告消息。
24、 如权利要求 23所述的装置, 其特征在于, 所述处理单元还用于: 所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 若所 述处理单元确定自身当前处于空闲状态, 则为所述第二 NFC主机执行射频 通信过程。
25、 如权利要求 23所述的装置, 其特征在于, 所述处理单元还用于: 若所述通信单元接收到所述第二 NFC主机发送的射频通信请求后, 向 所述第一 NFC主机发送所述通告消息, 则在所述通信单元接收到所述第一 NFC主机发送的第四消息时,所述处理单元为所述第二 NFC主机执行射频 通信过程, 其中, 所述第四消息是所述第一 NFC主机在确定所述 NFCC当 前处于空闲状态时发送的。
26、 如权利要求 21 - 25任一项所述的装置, 其特征在于, 所述处理单 元还用于:
若所述通信单元接收到所述第一 NFC主机发送的第五消息, 则所述处 理单元拒绝为所述第二 NFC主机执行射频通信过程, 所述第五消息是所述 第一 NFC主机确定所述 NFCC当前处于非空闲状态且所述第二 NFC主机 的优先级低于所述第三 NFC主机的优先级时发送的。
27、一种近场通信 NFC射频通信的控制系统, 包括第一 NFC主机、 第 二 NFC主机、第三 NFC主机和近场通信控制器 NFCC,其特征在于,其中, 所述第一 NFC 主机, 用于接收第一消息, 该第一消息表示所述第二 NFC主机请求进行射频通信,并在确定所述 NFCC当前处于非空闲状态时, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较,以及在所述第 二 NFC主机的优先级高于所述第三 NFC主机的优先级时, 向所述 NFCC 发送第二消息, 其中, 所述第三 NFC主机为所述 NFCC当前执行射频通信 过程所对应的 NFC主机;
所述 NFCC , 用于根据所述第二消息终止当前为所述第三 NFC主机执 行的射频通信过程。
28、 如权利要求 27所述的系统, 其特征在于,
所述第二消息携带所述第二 NFC主机的配置信息, 所述第二消息还用 于指示所述 NFCC为所述第二 NFC主机执行射频通信过程; 或者
当所述第二 NFC主机的优先级高于所述第三 NFC主机的优先级时,所 述第一 NFC主机还用于: 向所述第二 NFC主机发送第三消息,指示所述第 二 NFC主机重新请求射频通信。
29、 如权利要求 27或 28所述的系统, 其特征在于:
所述第一 NFC主机接收第一消息, 包括: 所述第一 NFC主机接收所述 NFCC发送的通告消息, 该通知消息是 NFCC接收到所述第二 NFC主机发 送的射频通信请求后发送的; 或者, 所述第一 NFC主机接收所述第二 NFC 主机发送的射频通信请求;
所述 NFCC还用于,接收到所述第二 NFC主机发送的射频通信请求时 后, 在确定所述 NFCC当前为所述第三 NFC主机执行射频通信过程时, 向 所述第一 NFC主机发送所述通告消息; 或者,接收到所述第二 NFC主机发 送的射频通信请求后, 向所述第一 NFC主机发送所述通告消息。
30、 如权利要求 29所述的系统, 其特征在于, 所述 NFCC还用于: 所述 NFCC接收到所述第二 NFC主机发送的射频通信请求后, 若确定 所述 NFCC当前处于空闲状态, 则执行针对所述第二 NFC主机的射频通信 过程。
31、 如权利要求 29所述的系统, 其特征在于, 所述第一 NFC主机确 定所述 NFCC当前处于非空闲状态, 包括:
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息时即确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述 NFCC发送的通告消息, 则在接收到 所述通告消息后, 在获知所述 NFCC当前为所述第三 NFC主机执行射频通 信过程时, 确定所述 NFCC当前处于非空闲状态; 或者,
若所述第一 NFC主机接收到所述第二 NFC主机发送的射频通信请求, 则在接收到所述射频通信请求后, 在获知所述 NFCC当前为所述第三 NFC 主机执行射频通信过程时, 确定所述 NFCC当前处于非空闲状态。
32、 如权利要求 31所述的系统, 其特征在于, 所述第一 NFC主机还 用于:
在所述第一 NFC主机接收到所述 NFCC发送的通告消息或者接收到所 述第二 NFC主机发送的射频通信请求之后,若所述第一 NFC主机获知所述 NFCC当前处于空闲状态, 则向所述 NFCC发送第四消息, 所述 NFCC根 据所述第四消息执行针对所述第二 NFC主机的射频通信过程。
33、 如权利要求 27 - 32 任一项所述的系统, 其特征在于, 所述第一 NFC主机对当前使用所述 NFCC的第二 NFC主机与所述第三 NFC主机进 行优先级比较, 包括:
所述第一 NFC主机根据所述第一 NFC主机针对各 NFC主机预配置的 优先级信息, 对所述第二 NFC主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机根据系统初始配置的优先级信息,对所述第二 NFC 主机和所述第三 NFC主机进行优先级比较; 或者,
所述第一 NFC主机将所述第二 NFC主机和所述第三 NFC主机的相关 提示信息通知用户, 并根据用户基于所述相关提示信息设置的优先级, 对 所述第二 NFC主机和所述第三 NFC主机进行优先级比较。
34、 如权利要求 27 - 32 任一项所述的系统, 其特征在于, 所述第一 NFC主机还用于:
所述第一 NFC 主机确定所述第二 NFC 主机的优先级低于所述第三 NFC主机的优先级时, 向所述 NFCC发送第五消息, 所述 NFCC根据所述 第五消息拒绝执行针对所述第二 NFC主机的射频通信过程。
PCT/CN2014/078597 2013-06-17 2014-05-28 一种nfc射频通信的控制方法、装置及系统 WO2014201943A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP14812966.1A EP2996256B1 (en) 2013-06-17 2014-05-28 Method, device and system for controlling nfc radio frequency communication
JP2016520255A JP2016524880A (ja) 2013-06-17 2014-05-28 Nfc無線周波数通信制御方法、装置、およびシステム
US14/971,735 US9736878B2 (en) 2013-06-17 2015-12-16 NFC radio frequency communication control method, apparatus, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310239303.4 2013-06-17
CN201310239303.4A CN103326749B (zh) 2013-06-17 2013-06-17 一种nfc射频通信的控制方法、装置及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/971,735 Continuation US9736878B2 (en) 2013-06-17 2015-12-16 NFC radio frequency communication control method, apparatus, and system

Publications (1)

Publication Number Publication Date
WO2014201943A1 true WO2014201943A1 (zh) 2014-12-24

Family

ID=49195310

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078597 WO2014201943A1 (zh) 2013-06-17 2014-05-28 一种nfc射频通信的控制方法、装置及系统

Country Status (5)

Country Link
US (1) US9736878B2 (zh)
EP (1) EP2996256B1 (zh)
JP (1) JP2016524880A (zh)
CN (1) CN103326749B (zh)
WO (1) WO2014201943A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170037435A (ko) * 2015-09-25 2017-04-04 삼성전자주식회사 호스트의 정당성 여부에 따라 선택적으로 결제 기능을 온(on)하는 결제 장치의 동작 방법

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326749B (zh) * 2013-06-17 2016-01-13 华为终端有限公司 一种nfc射频通信的控制方法、装置及系统
JP6109771B2 (ja) * 2014-03-13 2017-04-05 株式会社東芝 ファイル送受信装置およびファイル送受信方法
FR3020907A1 (fr) * 2014-05-07 2015-11-13 St Microelectronics Int Nv Procede pour deceler plusieurs dispositifs nfc-b par un lecteur nfc-b et lecteur nfc-b correspondant
WO2017052906A1 (en) * 2015-09-25 2017-03-30 Intel IP Corporation Communication terminal and method for communicating data
CN110856195B (zh) * 2019-11-18 2022-04-12 紫光展锐(重庆)科技有限公司 射频组件的配置系统及方法
CN117941295A (zh) * 2021-09-28 2024-04-26 华为技术有限公司 数据传输方法、装置以及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010045530A (ja) * 2008-08-11 2010-02-25 Olympus Imaging Corp 情報通信装置
CN102047223A (zh) * 2008-03-27 2011-05-04 摩托罗拉移动公司 在电子设备中进行自动近场通信应用选择的方法和装置
CN102714829A (zh) * 2010-01-14 2012-10-03 Lg电子株式会社 电子设备及其操作方法
CN103326749A (zh) * 2013-06-17 2013-09-25 华为终端有限公司 一种nfc射频通信的控制方法、装置及系统

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2574318Y (zh) * 2001-10-12 2003-09-17 陈志乐 无线数字机顶盒
JP2005045530A (ja) 2003-07-22 2005-02-17 Fujinon Corp 防水カメラハウジング
CA2589174C (en) 2004-11-25 2012-10-30 Telecom Italia S.P.A. Joint ic card and wireless transceiver module for mobile communication equipment
CN100361546C (zh) 2005-02-24 2008-01-09 华为技术有限公司 一种实现即按即讲抢占业务的方法
CN101305585A (zh) 2005-11-07 2008-11-12 Lg电子株式会社 近距离通信主机控制器接口
FR2904741B1 (fr) * 2006-08-04 2009-10-02 Inside Contactless Sa Procede de routage de donnees d'application entrantes dans un chipset nfc, par identification de l'application.
CN104853309B (zh) 2008-07-20 2018-09-18 三星电子株式会社 在近距离通信中管理连接的方法和设备
JP5210095B2 (ja) * 2008-09-05 2013-06-12 ルネサスエレクトロニクス株式会社 データ処理システム
EP2239926A1 (en) 2009-04-09 2010-10-13 Gemalto SA Method of detecting a NFC device emulating several contactless cards which may use a plurality of protocols
JP2012039257A (ja) 2010-08-04 2012-02-23 Sony Corp 携帯端末、情報処理方法及びコンピュータプログラム
KR101073937B1 (ko) * 2010-11-24 2011-10-17 에이큐 주식회사 엔에프시 통신 기능을 구비한 이동단말
WO2012132446A1 (ja) 2011-03-31 2012-10-04 パナソニック株式会社 Rfid装置、ホスト、rfid装置搭載機器、及び、rfid装置の制御方法
US8989658B2 (en) 2011-06-24 2015-03-24 Qualcomm Incorporated Methods and apparatuses for improving NFC parameter update mechanisms
US8874038B2 (en) 2011-06-29 2014-10-28 Broadcom Corporation Secure communications via NFC device
JP5423731B2 (ja) 2011-06-30 2014-02-19 株式会社デンソー 近距離無線通信装置
US9326222B2 (en) * 2011-09-23 2016-04-26 Qualcomm Incorporated Methods and apparatus for improving a NFCEE discovery process
CN102404702B (zh) 2011-11-07 2015-04-01 中兴通讯股份有限公司 一种无线数据传输方法、装置和系统
CN103765791B (zh) * 2013-01-24 2015-11-25 华为终端有限公司 近场通信射频发现控制方法、装置和终端设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102047223A (zh) * 2008-03-27 2011-05-04 摩托罗拉移动公司 在电子设备中进行自动近场通信应用选择的方法和装置
JP2010045530A (ja) * 2008-08-11 2010-02-25 Olympus Imaging Corp 情報通信装置
CN102714829A (zh) * 2010-01-14 2012-10-03 Lg电子株式会社 电子设备及其操作方法
CN103326749A (zh) * 2013-06-17 2013-09-25 华为终端有限公司 一种nfc射频通信的控制方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2996256A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170037435A (ko) * 2015-09-25 2017-04-04 삼성전자주식회사 호스트의 정당성 여부에 따라 선택적으로 결제 기능을 온(on)하는 결제 장치의 동작 방법
KR102453705B1 (ko) 2015-09-25 2022-10-11 삼성전자주식회사 호스트의 정당성 여부에 따라 선택적으로 결제 기능을 온(on)하는 결제 장치의 동작 방법

Also Published As

Publication number Publication date
JP2016524880A (ja) 2016-08-18
EP2996256B1 (en) 2019-07-10
EP2996256A4 (en) 2016-08-03
CN103326749A (zh) 2013-09-25
US20160105925A1 (en) 2016-04-14
EP2996256A1 (en) 2016-03-16
CN103326749B (zh) 2016-01-13
US9736878B2 (en) 2017-08-15

Similar Documents

Publication Publication Date Title
WO2014201943A1 (zh) 一种nfc射频通信的控制方法、装置及系统
JP5301533B2 (ja) ニアフィールド・リンクを最適化する方法
EP2861037B1 (en) Radio frequency communication method, device and terminal device for near field communication
EP3185642B1 (en) Method and terminal for establishing communication connection
KR102051772B1 (ko) 무선 통신 장치, 통신 방법 및 비일시적 컴퓨터 판독가능 기록 매체
RU2618515C1 (ru) Способ и устройство для выполнения услуги беспроводной стыковки
WO2012125316A1 (en) Peer-to-peer group with renegotiation of group owner
US20130223361A1 (en) Terminal and method for establishing wireless access channel
EP2961220B1 (en) Connection switching method and corresponding apparatuses based on near field communication
US20220407932A1 (en) Method, device and computer program for communicating information relating to wireless power transmission, and recording medium thereof
US20190268951A1 (en) Communication Method and Device
JP6564070B2 (ja) 近距離無線通信nfcにおいてデータパケット長を調整するための方法、装置、およびシステム
EP2945298B1 (en) Communication method and apparatus for nfc device, and nfc device
US20180227979A1 (en) Communication apparatus, control method, and storage medium
KR102036686B1 (ko) 무선 통신 시스템에서 채널을 선택하기 위한 방법 및 장치
EP3293886A1 (en) Radio frequency finding method, chip and device
WO2019096155A1 (zh) 无线连接方法和具有存储功能的装置
EP2860880B1 (en) Method, device, and terminal device for near field communication radiofrequency discovery control
JP2013005315A (ja) 無線通信システム、移動局、及び基地局

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: 14812966

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2014812966

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016520255

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE