CN103378877B - A kind of method and device realizing near-field communication terminal full duplex point-to-point communication - Google Patents

A kind of method and device realizing near-field communication terminal full duplex point-to-point communication Download PDF

Info

Publication number
CN103378877B
CN103378877B CN201210109056.1A CN201210109056A CN103378877B CN 103378877 B CN103378877 B CN 103378877B CN 201210109056 A CN201210109056 A CN 201210109056A CN 103378877 B CN103378877 B CN 103378877B
Authority
CN
China
Prior art keywords
data
record
nfc
ndef
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210109056.1A
Other languages
Chinese (zh)
Other versions
CN103378877A (en
Inventor
赵栋
杨杰
傅启洪
朱渊
范勇
魏攀
张芝萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210109056.1A priority Critical patent/CN103378877B/en
Priority to PCT/CN2012/076868 priority patent/WO2013152557A1/en
Publication of CN103378877A publication Critical patent/CN103378877A/en
Application granted granted Critical
Publication of CN103378877B publication Critical patent/CN103378877B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses one and realize the method that near-field communication (NFC) terminal full duplex point-to-point (P2P) communicates, comprising: parse request message or response message from NFC data exchange format (NDEF) the extracting data data record received; If resolve and obtain request message, then get response packet to after request message process, after response message being encapsulated as head record and data record, again head record and data record are encapsulated as NDEF data, NDEF data are sent to corresponding NFC terminal; Get response packet if resolve, then response message is processed.The present invention also also discloses a kind of device realizing NFC terminal full duplex P2P and communicate, and employing the present invention can realize the full-duplex communication between NFC terminal, ensures Consumer's Experience.

Description

A kind of method and device realizing near-field communication terminal full duplex point-to-point communication
Technical field
The present invention relates to the near-field communication (NFC in moving communicating field, Near Field Communication) technology, particularly relate to one and realize method that NFC terminal full duplex point-to-point (P2P, Point-to-Point) communicates and device.
Background technology
NFC technique is a kind of technology carrying out radio-frequency (RF) identification (RFID, Radio Frequency IDentification) functions of card reader and intelligent card function to combine, be applicable to hand held mobile terminals.In NFC technique, communication distance is generally 0 to 10 centimetres, and in this communication distance, two mobile terminals (NFC terminal) with NFC function can complete transfer of data within the extremely short time.In prior art, the mode transmitting data between NFC terminal is half-duplex P2P communication pattern, namely NFC terminal and another NFC terminal near after, send the data to another NFC terminal; Wherein, the mode that data send is propelling movement (Push) mode.
Along with the development of technology, may progressively occur needing NFC terminal to carry out the NFC two-way services of two-way interactive, if still use above-mentioned half-duplex P2P communication pattern, then two NFC terminal need twice even repeatedly near and the operation removed just can complete the NFC business of two-way interactive.
Visible, for the NFC two-way services that may occur, need to provide the method realizing NFC terminal full duplex P2P and communicate, to ensure Consumer's Experience.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method and the device that realize NFC terminal full duplex P2P communication, the full-duplex communication between NFC terminal can be realized, ensure Consumer's Experience.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method realizing NFC terminal full duplex P2P and communicate, the method comprises:
Parse request message or response message from the NFC data exchange format received (NDEF, NFC Data Exchange Format) extracting data data record;
If resolve and obtain request message, then get response packet after processing request message, after response message being encapsulated as head record and data record, head record and data record are encapsulated as NDEF data, NDEF data are sent to corresponding NFC terminal; Get response packet if resolve, then response message is processed.
In such scheme, the described NDEF extracting data data record from receiving, comprising: from NDEF extracting data head record and data record.
In such scheme, described from after NDEF extracting data lifts one's head record and data record, the method also comprises: extract type of message, type of service and the record number in head record, and the data content in extraction data record; Determine that the data content extracted is request message or response message according to type of message.
In such scheme, described response message is encapsulated as head record and data record, comprise: record head corresponding for response message, type of message, cipher mode, type of service and record number are written as a record, and request message or corresponding record head, data length, data content and the cyclic redundancy check (CRC) code CRC of response message are written as one or more data record.
In such scheme, described head record and data record are encapsulated as NDEF data, comprise: utilize head record and one or more data record composition NDEF data.
In such scheme, described NFC terminal NDEF data being sent to correspondence, comprising: NFC terminal obtains the NDEF data after encapsulating, and sets up logical channel with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel.
In such scheme, before described processing request message, the method also comprises: the service identification checking the NFC two-way services of registration according to the type of service in head record, if find consistent service identification, then and processing request message.
In such scheme, before the described NFC data exchange format NDEF extracting data data record from receiving, the method also comprises: real-time judge is the need of sending request message, if desired, after then request message being encapsulated as head record and data record, head record and data record being encapsulated as NDEF data and sending to corresponding NFC terminal; If do not need, then continue to judge whether to need to send request message.
Present invention also offers a kind of device realizing NFC terminal full duplex P2P and communicate, this device comprises: application (APP) module, application service module, the two-way P2P communication module of NFC; Wherein,
The two-way P2P communication module of NFC, for the data record from the NDEF extracting data received is sent to application service module, and the head record that application service module is sent and data record be encapsulated as NDEF data after send to corresponding NFC terminal;
Application service module, for receiving the data record that the two-way P2P communication module of NFC is sent, the request message parsed in data record or response message are sent to APP module, and after the response message that APP module is sent is encapsulated as head record and data record, sends to the two-way P2P communication module of NFC;
APP module, for receiving the request message or response message that application service module sends, if receive request message, then get response packet to after request message process, response message is sent to application service module, if receive response message, then response message is processed.
In such scheme, the two-way P2P communication module of described NFC comprises: NDEF Data Analysis submodule and NFC service end receive submodule; Wherein,
NFC service end receives submodule, for the NDEF received data are sent to NDEF Data Analysis submodule;
NDEF Data Analysis submodule, lifts one's head record and data record for receiving the NDEF extracting data sent of submodule from NFC service end, head record and data record is sent to application service module.
In such scheme, described application service module comprises: Data Analysis submodule and response process submodule; Wherein,
Data Analysis submodule, for receiving the head record and data record that the two-way P2P communication module of NFC sends, extract type of message, type of service and the record number in head record, and the data content in extraction data record, determine that the data content extracted is request message or response message according to type of message, request message or response message are sent to response process submodule;
Response process submodule, sends to APP module for the request message sent by Data Analysis submodule or response message.
In such scheme, described application service module comprises further: data encapsulation submodule and request receiving submodule; Wherein,
Data encapsulation submodule, be written as a record for the request message sent by request receiving submodule or corresponding record head, type of message, cipher mode, type of service and the record number of response message, and request message or corresponding record head, data length, data content and the CRC of response message are written as one or more data record;
Request receiving submodule, the response message for APP module being sent sends to data encapsulation submodule.
In such scheme, the two-way P2P communication module of described NFC comprises further: NDEF data encapsulation submodule, for utilizing head record and one or more data record composition NDEF data.
In such scheme, the two-way P2P communication module of described NFC comprises further: NFC client sends submodule, after receiving NDEF data that NDEF data encapsulation submodule sends, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel;
Accordingly, described NDEF data encapsulation submodule, also for sending to NFC client to send submodule the NDEF data after encapsulation.
In such scheme, described application service module comprises further: service log-on submodule, for providing the service identification of the NFC two-way services of registration for Data Analysis submodule;
Accordingly, described response process submodule, also for checking the service identification of the NFC two-way services that service log-on submodule is registered according to the type of service in head record, if find consistent service identification, then sends to APP resume module by this request message.
In such scheme, described device also comprises: administration module, whether will send request message for notifying that APP module real-time judge is current;
Accordingly, described APP module, also for after receiving that real-time judge that administration module sends is current and whether will sending the notice of request message, start whether real-time judge is current will send request message, if desired, then request message is sent to application service module, if do not need, then continue to judge whether to need to send request message;
Described application service module, after the request message also for APP module being sent is encapsulated as head record and data record, sends to the two-way P2P communication module of NFC by head record and data record;
The two-way P2P communication module of described NFC, is also encapsulated as NDEF data for the head record sent by application service module and data record and sends to corresponding NFC terminal.
Method and the device realizing NFC terminal full duplex P2P communication provided by the present invention, can when NFC terminal receives NDEF data, process the request message parsed, and after the response message to obtain when NFC terminal processing request message, response message is encapsulated as NDEF data and issues corresponding NFC terminal; So, after NFC two-way services can being installed in NFC terminal, calling NFC two-way services and the request message received is processed, get response packet and return to corresponding NFC terminal, thus realize the full-duplex communication between NFC terminal, ensure Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram that the present invention realizes NFC terminal full duplex P2P communication;
Fig. 2 is head record of the present invention composition schematic diagram;
Fig. 3 is data record of the present invention composition schematic diagram;
Fig. 4 is NDEF data of the present invention composition schematic diagram;
Fig. 5 is the device composition structural representation that the present invention realizes NFC terminal full duplex P2P communication.
Embodiment
Basic thought of the present invention is: NFC terminal is from the NDEF extracting data data record received and parse request message or response message, if resolve and obtain request message, then get response packet to after request message process, again head record and data record are encapsulated as NDEF data after response message being encapsulated as head record and data record, NDEF data are sent to corresponding NFC terminal; Get response packet if resolve, then response message is processed.
Wherein, the NFC terminal of described correspondence is the NFC terminal close with described NFC terminal.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
A kind of method realizing NFC terminal full duplex P2P and communicate provided by the invention, as shown in Figure 1, comprises the following steps:
Step 101: whether real-time judge receives NDEF data, if receive, then performs step 102; Otherwise, repeated execution of steps 101.
Here, the current NDEF data that whether receive of described real-time judge comprise: whether NFC terminal real-time listening has the request of setting up logical channel, set up the request of logical channel if receive, then start the NDEF data sent in this logical channel of mutual port accepts of specifying;
Wherein, described mutual port of specifying is the port being exclusively used in reception NDEF data preset, such as NFC terminal conventionally sets multiple logic receiving port, and be respectively each logic receiving port numbering, can using number one logic receiving port wherein as the receiving port of existing NFC one way traffic, mutual port that wherein No. second logic receiving port is specified as NFC two-way services.
Before performing step 101, described NFC terminal also can be registered the NFC two-way services that self installs; Described being registered as is extracted and preserves service identification corresponding to each NFC two-way services.
Step 102: from NDEF extracting data data record.
Be specially: NFC terminal from NDEF extracting data lift one's head record and data record; Extract type of message, type of service and the record number in head record, and extract the data content in data record.
Here, as shown in Figure 2, wherein, described record head can be NDEF protocol version to described head record composition structure; Described type of message is request message or response message, such as can represent request message and response message respectively with 0,1; Described cipher mode can be arranged according to actual conditions, can be such as bidirectional encipher mode; Described type of service is arrange according to the type of available NFC two-way services, such as, if the NFC two-way services that can provide have three kinds, then can arrange 00,01 and 10 respectively and represent three kinds of NFC two-way services; Described record number is the number of data record;
As shown in Figure 3, wherein, described record head can be NDEF protocol version to described data record composition structure; Described data length is the length of data content; Described data content is the request message that will send or response message; Described cyclic redundancy check (CRC) code (CRC, Cyclic Redundancy Check) is the CRC generated according to prior art.
Step 103: judge to parse as request message or response message, if request message, then perform step 104; If response message, then perform step 106.
Here, described judgement from data record, parse request message or response message is: the service identification checking the NFC two-way services of the registration of self preserving according to the type of service in head record, if find consistent service identification, then determine according to the type of message in head record that the data content in the data record extracted is request message or response message; Otherwise end process flow process.
Step 104: get response packet to after request message process, is encapsulated as head record and data record by response message.
Here, the described NFC two-way services to getting response packet after request message process as calling NFC terminal self preservation carry out process acquisition response message to request message;
Describedly response message is encapsulated as head record and data record comprises: record head corresponding for response message, type of message, cipher mode, type of service and record number are written as a record, and record head, data length, data content and CRC corresponding for response message is written as one or more data record.
Step 105: head record and data record are encapsulated as NDEF data, NDEF data are sent to corresponding NFC terminal, end process flow process.
Here, described in be encapsulated as NDEF data separate head record and one or more data record composition NDEF data, wherein said NDEF data composition structure is as shown in Figure 4.
The described NFC terminal of correspondence that NDEF data sent to is: after NFC terminal obtains the NDEF data after encapsulating, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel; Wherein, described logical channel of setting up is: the NFC terminal to correspondence initiates the request of setting up logical channel, after corresponding NFC terminal receives the request of setting up logical channel, starts the NDEF data sent in this logical channel of mutual port accepts of specifying.
Step 106: response message is processed.
Concrete, the NFC two-way services calling NFC terminal self preservation process response message, need not return response.
In addition, while execution step 101, NFC terminal also can judge whether to send request message according to practical operation situation, is specially:
Whether step a:NFC terminal real-time judge will send request message, if so, then performs step b; Otherwise, repeated execution of steps a.
Here, the message of content composition of request message for sending in the NFC two-way services selected according to user is sent described in.
Step b: request message is encapsulated as head record and data record.
Describedly request message is encapsulated as head record and data record comprises: record head corresponding for request message, type of message, cipher mode, type of service and record number are written as a record, and record head, data length, data content and CRC corresponding for request message is written as one or more data record.
Step c: head record and data record are encapsulated as NDEF data.
Steps d: NDEF data are issued corresponding NFC terminal by NFC terminal, and end process flow process.
The present invention proposes a kind of device realizing NFC terminal full duplex P2P and communicate, and as shown in Figure 5, comprising: the two-way P2P communication module 53 of APP module 51, application service module 52, NFC.
The two-way P2P communication module 53 of NFC, for the data record from the NDEF extracting data received is sent to application service module 52, and the head record that application service module 52 is sent and data record be encapsulated as NDEF data after send to corresponding NFC terminal;
Application service module 52, for receiving the data record that the two-way P2P communication module 53 of NFC is sent, the request message parsed in data record or response message are sent to APP module 51, and after the response message that APP module 51 is sent is encapsulated as head record and data record, sends to the two-way P2P communication module 53 of NFC;
APP module 51, for receiving the request message or response message that application service module 52 sends, if obtain request message, then get response packet to after request message process, response message is sent to application service module 52, if get response packet, then response message is processed.
Described device also comprises: administration module 54, for when place NFC terminal open after or self-management NFC function unlatching after, the two-way P2P communication module 53 of notice NFC starts to judge whether to receive NDEF data, and notifies that APP module 51 starts to judge whether to send request message; Accordingly, the two-way P2P communication module 53 of described NFC, after also judging whether to receive NDEF data notification for starting of receiving that administration module 54 sends, starts to judge whether to receive NDEF data; Described APP module 51, also for receive that administration module 54 sends start the notice judging whether to send request message after, start to judge whether to send request message.
Whether the two-way P2P communication module 53 of described NFC, have the request of setting up logical channel, set up the request of logical channel if receive specifically for real-time listening, then the NDEF data sent in this logical channel of mutual port accepts of specifying.
Described APP module 51, the NFC two-way services also for self being installed are registered to application service module 52; Accordingly, described application service module 52, also for receiving the NFC two-way services that APP module 51 is registered.
Described application service module 52, specifically for extracting and preserving service identification corresponding to each NFC two-way services that APP module 51 registers.
Whether the two-way P2P communication module 53 of described NFC, also receive NDEF data for real-time judge, if receive, then the data record of NDEF extracting data sent to application service module 52, otherwise, do not operate.
The two-way P2P communication module 53 of described NFC, specifically for lifting one's head record and data record from NDEF extracting data, sends to application service module 52 by head record and data record; Accordingly, described application service module 52, the head record sent specifically for the two-way P2P communication module 53 of reception NFC and data record, extract type of message, type of service and the record number in head record, and the data content in extraction data record, determine that the data content extracted is request message or response message according to type of message.
Described application service module 52, specifically for checking the service identification of the NFC two-way services of self preserving according to the type of service in head record, if find consistent service identification, then this request message or response message are sent to APP module 51, otherwise do not operate; Accordingly, described APP module 51, also for receiving the request message or response message that application service module 52 sends.
Described APP module 51, specifically for determining that according to the type of message in head record the data content in the data record of extraction is request message or response message, if request message, then call corresponding NFC two-way services to process request message, after obtaining response message, then response message is sent to application service module 52, if response message, then call corresponding NFC two-way services to process response message, need not response be returned, end operation flow process; Accordingly, described application service module 52, record head, type of message, cipher mode, type of service and the record number corresponding specifically for response message APP module 51 sent are written as a record, and request message or corresponding record head, data length, data content and the CRC of response message are written as one or more data record.
Described application service module 52, specifically for sending to the two-way P2P communication module 53 of NFC by head record and one or more data record; Accordingly, the two-way P2P communication module 53 of described NFC, after the head record sent specifically for utilizing application service module 52 and one or more data record form NDEF data, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel.
Whether described APP module 51, also will send request message for real-time judge, if so, then request message be sent to application service module 52, otherwise, do not operate; Accordingly, described application service module 52, record head, type of message, cipher mode, type of service and the record number corresponding specifically for request message APP module 51 sent are written as a record, and request message or corresponding record head, data length, data content and the CRC of response message are written as one or more data record.
Described application service module 52 comprises: request receiving submodule 521, response process submodule 522, data encapsulation submodule 523 and Data Analysis submodule 524; Wherein,
Data Analysis submodule 524, for receiving the data record that the two-way P2P communication module 53 of NFC is sent, sends to response process submodule 522 by the request message parsed in data record or response message;
Response process submodule 522, sends to APP module 51 for the request message sent by Data Analysis submodule 524 or response message;
Request receiving submodule 521, the response message for APP module 51 being sent sends to data encapsulation submodule 523;
Data encapsulation submodule 523, the response message for being sent by request receiving submodule 521 is encapsulated as head record and data record, head record and data record is sent to the two-way P2P communication module 53 of NFC.
Described application service module 52 also comprises: service log-on submodule 525, for receiving the service application that APP module 51 is registered.
Described service log-on submodule 525, specifically for extracting and preserving service identification corresponding to each NFC two-way services that APP module 51 registers.
Described data encapsulation submodule 523, be written as a record specifically for the request message sent by request receiving submodule 521 or corresponding record head, type of message, cipher mode, type of service and the record number of response message, and request message or corresponding record head, data length, data content and the CRC of response message are written as one or more data record.
Described Data Analysis submodule 524, the head record sent specifically for the two-way P2P communication module 53 of reception NFC and data record, extract type of message, type of service and the record number in head record, and the data content in extraction data record, determine that the data content extracted is request message or response message according to type of message.
Described response process submodule 522, also for checking the service identification of the NFC two-way services that service log-on submodule 525 is preserved according to the type of service in head record, if find consistent service identification, then this request message or service message are sent to APP module 51; Accordingly, described service log-on submodule 525, also for the service identification of the NFC two-way services that provide self to preserve for Data Analysis submodule 524.
The two-way P2P communication module 53 of described NFC comprises: NDEF data encapsulation submodule 531, NDEF Data Analysis submodule 532, NFC client send submodule 533 and NFC service end receives submodule 534; Wherein,
NFC service end receives submodule 534, for the NEDF received data are sent to NDEF Data Analysis submodule 532;
NDEF Data Analysis submodule 532, for receiving the NEDF data that NFC service end reception submodule 534 is sent, sends to application service module 52 by the data record from NDEF extracting data;
NDEF data encapsulation submodule 531, for receiving the head record and data record that application service module 52 sends, is encapsulated as NDEF data by head record and data record, NDEF data is sent to NFC client to send submodule 533;
NFC client sends submodule 533, and the NDEF data for being sent by NDEF data encapsulation submodule 531 send to corresponding NFC terminal.
Described NFC service end receives submodule 534, after also judging whether to receive NDEF data notification for starting of receiving that administration module 54 sends, whether real-time judge receives NDEF data, if receive, then the data record of NDEF extracting data is sent to application service module 52, otherwise, do not operate.
Described NFC service end receives submodule 534, whether has the request of setting up logical channel, sets up the request of logical channel if receive, then the NDEF data sent in this logical channel of mutual port accepts of specifying specifically for real-time listening.
Described NFC client sends submodule 533, after utilizing head record and one or more data record composition NDEF data, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel.
Described NDEF Data Analysis submodule 532, specifically for lifting one's head record and data record from NDEF extracting data, sends to application service module 52 by head record and data record.
Said apparatus can be arranged in existing NFC terminal as functional software.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (12)

1. realize a method for near-field communication NFC terminal full duplex point-tor point P 2 P communication, it is characterized in that, the method comprises:
Parse request message or response message from the NFC data exchange format NDEF extracting data data record received, wherein, the described NDEF extracting data data record from receiving, comprising: from NDEF extracting data head record and data record;
Extract type of message, type of service and the record number in head record, and extract the data content in data record; Determine that the data content extracted is request message or response message according to type of message;
If resolve and obtain request message, then get response packet after processing request message, after response message being encapsulated as head record and data record, head record and data record are encapsulated as NDEF data, NDEF data are sent to corresponding NFC terminal; Get response packet if resolve, then response message is processed.
2. method according to claim 1, it is characterized in that, described response message is encapsulated as head record and data record, comprise: record head corresponding for response message, type of message, cipher mode, type of service and record number are written as a record, and request message or corresponding record head, data length, data content and the cyclic redundancy check (CRC) code CRC of response message are written as one or more data record.
3. method according to claim 1, is characterized in that, described head record and data record is encapsulated as NDEF data, comprising: utilize head record and one or more data record composition NDEF data.
4. method according to claim 1, it is characterized in that, described NFC terminal NDEF data being sent to correspondence, comprise: NFC terminal obtains the NDEF data after encapsulating, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel.
5. method according to claim 1, it is characterized in that, before described processing request message, the method also comprises: the service identification checking the NFC two-way services of registration according to the type of service in head record, if find consistent service identification, then processing request message.
6. method according to claim 1, it is characterized in that, before the described NFC data exchange format NDEF extracting data data record from receiving, the method also comprises: real-time judge is the need of sending request message, if desired, after then request message being encapsulated as head record and data record, head record and data record being encapsulated as NDEF data and sending to corresponding NFC terminal; If do not need, then continue to judge whether to need to send request message.
7. realize the device that NFC terminal full duplex P2P communicates, it is characterized in that, this device comprises: application APP module, application service module, the two-way P2P communication module of NFC; Wherein,
The two-way P2P communication module of NFC, for the data record from the NDEF extracting data received is sent to application service module, and the head record that application service module sent and data record be encapsulated as NDEF data after send to corresponding NFC terminal, wherein, the two-way P2P communication module of described NFC comprises: NDEF Data Analysis submodule and NFC service end receive submodule; Wherein, NFC service end receives submodule, for the NDEF received data are sent to NDEF Data Analysis submodule; NDEF Data Analysis submodule, lifts one's head record and data record for receiving the NDEF extracting data sent of submodule from NFC service end, head record and data record is sent to application service module;
Application service module, for receiving the data record that the two-way P2P communication module of NFC is sent, the request message parsed in data record or response message are sent to APP module, and after the response message that APP module is sent is encapsulated as head record and data record, send to the two-way P2P communication module of NFC, wherein, described application service module comprises: Data Analysis submodule and response process submodule; Wherein, Data Analysis submodule, for receiving the head record and data record that the two-way P2P communication module of NFC sends, extract type of message, type of service and the record number in head record, and the data content in extraction data record, determine that the data content extracted is request message or response message according to type of message, request message or response message are sent to response process submodule; Response process submodule, sends to APP module for the request message sent by Data Analysis submodule or response message;
APP module, for receiving the request message or response message that application service module sends, if receive request message, then get response packet to after request message process, response message is sent to application service module, if receive response message, then response message is processed.
8. device according to claim 7, is characterized in that, described application service module comprises further: data encapsulation submodule and request receiving submodule; Wherein,
Data encapsulation submodule, be written as a record for the request message sent by request receiving submodule or corresponding record head, type of message, cipher mode, type of service and the record number of response message, and request message or corresponding record head, data length, data content and the CRC of response message are written as one or more data record;
Request receiving submodule, the response message for APP module being sent sends to data encapsulation submodule.
9. device according to claim 7, is characterized in that, the two-way P2P communication module of described NFC comprises further: NDEF data encapsulation submodule, for utilizing head record and one or more data record composition NDEF data.
10. device according to claim 9, it is characterized in that, the two-way P2P communication module of described NFC comprises further: NFC client sends submodule, after receiving NDEF data that NDEF data encapsulation submodule sends, logical channel is set up with corresponding NFC terminal, NDEF data are sent to corresponding NFC terminal from logical channel, completes after NDEF data send and close logical channel;
Accordingly, described NDEF data encapsulation submodule, also for sending to NFC client to send submodule the NDEF data after encapsulation.
11. devices according to claim 8, is characterized in that, described application service module comprises further: service log-on submodule, for providing the service identification of the NFC two-way services of registration for Data Analysis submodule;
Accordingly, described response process submodule, also for checking the service identification of the NFC two-way services that service log-on submodule is registered according to the type of service in head record, if find consistent service identification, then sends to APP resume module by this request message.
12. devices according to claim 7, is characterized in that, described device also comprises: administration module, whether will send request message for notifying that APP module real-time judge is current;
Accordingly, described APP module, also for after receiving that real-time judge that administration module sends is current and whether will sending the notice of request message, start whether real-time judge is current will send request message, if desired, then request message is sent to application service module, if do not need, then continue to judge whether to need to send request message;
Described application service module, after the request message also for APP module being sent is encapsulated as head record and data record, sends to the two-way P2P communication module of NFC by head record and data record;
The two-way P2P communication module of described NFC, is also encapsulated as NDEF data for the head record sent by application service module and data record and sends to corresponding NFC terminal.
CN201210109056.1A 2012-04-13 2012-04-13 A kind of method and device realizing near-field communication terminal full duplex point-to-point communication Expired - Fee Related CN103378877B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210109056.1A CN103378877B (en) 2012-04-13 2012-04-13 A kind of method and device realizing near-field communication terminal full duplex point-to-point communication
PCT/CN2012/076868 WO2013152557A1 (en) 2012-04-13 2012-06-13 Method and apparatus for implementing full-duplex point-to-point communication between near field communication terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210109056.1A CN103378877B (en) 2012-04-13 2012-04-13 A kind of method and device realizing near-field communication terminal full duplex point-to-point communication

Publications (2)

Publication Number Publication Date
CN103378877A CN103378877A (en) 2013-10-30
CN103378877B true CN103378877B (en) 2015-08-12

Family

ID=49327034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210109056.1A Expired - Fee Related CN103378877B (en) 2012-04-13 2012-04-13 A kind of method and device realizing near-field communication terminal full duplex point-to-point communication

Country Status (2)

Country Link
CN (1) CN103378877B (en)
WO (1) WO2013152557A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201573B (en) * 2016-06-23 2019-07-30 青岛海信移动通信技术股份有限公司 A kind of method and terminal for realizing OMAPI function
CN206650802U (en) * 2016-10-12 2017-11-17 纳思达股份有限公司 A kind of NFC video playback apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146125A (en) * 2006-09-11 2008-03-19 三星电子株式会社 Peer-to-peer communication method for near field communication
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146125A (en) * 2006-09-11 2008-03-19 三星电子株式会社 Peer-to-peer communication method for near field communication
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NFC Data Exchange Format(NDEF)Technical Specification;NFC Forum-TS-NDEF_1.0;《NFC Forum》;20060724;第1-25页 *
Simple NDEF Exchange Protocol;NFCForum-TS-SNEP_1.0;《NFC Forum》;20110831;第1-20页 *

Also Published As

Publication number Publication date
CN103378877A (en) 2013-10-30
WO2013152557A1 (en) 2013-10-17

Similar Documents

Publication Publication Date Title
CN108141759A (en) Machine type communication is established using shared SIM parameters
CN102497630B (en) Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module
CN103716781B (en) It is a kind of to realize that mobile terminal intelligent card writes the method for card, apparatus and system
CN107105414A (en) A kind of income system and method for Big Dipper RDSS short messages and SMS
CN105263140A (en) System and method for realizing remote authentication of subscriber identity module (SIM) card
CN102752375A (en) Method and system for realizing remote operation of smart card
CN104206000A (en) Mobile terminal architecture for dual personality wireless devices
WO2008065667A3 (en) Bridging between a mobile cellular telephone network and a data, voice over internet protocol (voip) network
CN105592403B (en) NFC-based communication device and method
EP3058792B1 (en) Wireless protocol message conversion method and corresponding device
CN104066101A (en) Wireless local area network card equipment automatic configuration method based on wireless network
JP2016541148A5 (en)
CN103186497B (en) Parallel communication control system and method
CN103378877B (en) A kind of method and device realizing near-field communication terminal full duplex point-to-point communication
US20150126111A1 (en) Emulation of Multiple NFC Devices Inside a Communication Device
CN101478598B (en) Communication negotiation method for mobile terminal and smart card, mobile terminal therefor
CN103546873B (en) Services through one key pushed processing method and processing device
US9252843B2 (en) Method and apparatus for data transmission
CN102474505A (en) Method and apparatus for providing interoperability between a first protocol and a second protocol
CN105991816A (en) User identification module, mobile terminal and communication method
CN101140667B (en) Queuing method and system for actively recognizing visitant customer
CN107071921A (en) A kind of terminal equipment control method and system based on wireless management frame
US20150110119A1 (en) Virtual gateway for machine to machine capillary network
CN113965918B (en) Service processing method, device and storage medium
CN102869015A (en) Method and system for triggering machine type communication (MTC) equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150812

Termination date: 20180413