Download fulltext - DiVA Portal

Transcript
38
CHAPTER 6. IMPLEMENT APPLICATION ON VNC
Inuput
D4
8C
Mode
LEN Gt
MifareParams[ ]
FeliCaParams[ ]
LEN Tk
[ Gt[0Ăn] ]
NFCID3t
[ Tk[0Ăn] ]
Output
D5
8D
Mode
InitiatorCommand[ ]
Figure 6.5. Set Target Command
cfgItem01(RF field) for the PN532. The ConfigurationData is set to 0x02 which
means Auto RFCA(RF Collision Avoidance) is on and RF is off. That means the
PN532 initiator will not switch on its own RF field before detecting external field
which will save power consumption before detecting target.
Inuput
D4
32
CfgItem_RF field(01)
ConfigurationData[ ]
ConfigurationData[ ]:
Nu
Nu
Nu
Nu
Nu
Nu
Auto RFCA
RF on/off
Output
D5
33
Figure 6.6. RF Configuration Command
After followed with the command SetParameters which is used to set the PN532
internal parameters and its behaviour. The detailed command frame can be seen
on figure 7.6. In this thesis project, the internal flag setting is just a little difference form the default one, which is only ATR_RES is used during communication.
Because other bit is for ISO14443 protocol and useless in NFCIP-1 protocol p2p
communication.
Before beginning Peer-to-Peer communication, there still lefts one command
to configure the initiator. Host controller uses InJumpForDEP command to active a target whatever active or passive mode it is. This command contains passive/active mode, baud rate, initiator random id and optional general information
bytes. Next is set to 0x05, and it informs that PassiveInitiatorData is present in the
command frame and Gi is present in the command frame. NFCID3i is the content