Download NFC Controller Interface Specification

Transcript
NCI Core Framework
3.3
NCI Data Messages
Data Messages are used to exchange data over Logical Connections between a DH and NFCC
target (NFCEE or Remote NFC Endpoint). See Figure 5.
DH
NFCC
Data
DH
NFCC
Data
Data Message
Exchange
Figure 5: Data Exchange
Data Messages are sent over the NCI Transport as payloads of Data Packets. A Data Packet
payload contains a complete, or a segment of a, Data Message.
Data Messages can be sent by either the DH (subject to flow control) or the NFCC at any time
once a Logical Connection has been created.
The DH SHALL be capable of supporting any Data Message size sent by the NFCC (it is
assumed that DH is able to handle any data received either from a local NFCEE or Remote NFC
Endpoint). At any time, the maximum data size the NFCC is able to receive for a Logical
Connection is defined by the Max Data Packet Payload Size announced during RF Interface
activation in a case of Static RF Connection (see Section 7.3) or during Dynamic Logical
Connection (see Section 4.4), times the number of unused credits given by the NFCC for that
connection.
The maximum payload of a Data Packet is 255 octets. The DH SHALL be capable of receiving
Data Packets with 255 octet payloads. However, the NFCC MAY specify a smaller maximum
Data Packet payload size, on a Logical Connection basis.
The DH SHALL NOT send Data Packets with a payload length exceeding the Max Data Packet
Payload Size that was announced during creation of the corresponding Logical Connection.
Data Messages can be segmented as described in Section 3.5.
3.3.1 Flow Control for Data Packets
A credit-based Data flow control mechanism is defined for data sent from the DH to the NFCC
and MAY be invoked by the NFCC to eliminate buffer overflow conditions. It is assumed that the
DH has sufficient buffering to handle all data sent from the NFCC, so credit-based flow control is
not supported in that direction.
The credit-based flow control mechanism applies to Data Packets. Each Data Packet (that can
contain either a complete Data Message or a segment of a Data Message) requires one credit.
NFC Controller Interface (NCI) Specification
Page 26