
Page
36
of
77
Copyright © Access-IS 2020
6.3.3 Get the ATR of the media
Once media has been detected, the ATR of the media can be retrieved by sending the message,
PC_to_RDR_IccPowerOn
. This message is sent from the serial host as shown in Table 16.
Table 16. PC_to_RDR_IccPowerOn message format
Field
Offset
Size in bytes
Value/Description
bMessageType
0
1
[0x62]
dwLength
4
0 (Little endian format)
bSlot
1
Destination reader slot ID. Please refer to
on page 33.
bSeq
1
0
bPowerSelect
1
0
abRFU
2
0
The NFC module respond with a
RDR_to_PC_DataBlock
message conveying the ATR of the
media it has found. If there is an error, then appropriate error message will be conveyed back in
bStatus
and
bError
fields and ATR may not be present in
abData
field.
Field
Offset
Size in bytes
Value/Description
bMessageType
0
1
[0x80]
dwLength
1
4
Size of
abData
field (Contains the ATR, if
present)
bSlot
5
1
Source Reader slot ID. Please refer to
on page 33.
bSeq
6
1
Same as command message
bStatus
7
1
0
bError
8
1
0
bChainParameter
9
1
0
abData
10
Size of the ATR
ATR of the media, if present
6.3.4 Communicate with the media
To communicate with the media,
PC_to_RDR_XfrBlock
message is sent from the serial host as
shown in Table 17.
Table 17.PC_to_RDR_XfrBlock message
Field
Offset
Size in bytes
Value/Description
bMessageType
0
1
[0x6F]
dwLength
1
4
Size of
abData
field in little endian format
bSlot
5
1
Destination Reader slot ID. Please refer to
on page 33.
bSeq
6
1
0
bBWI
7
1
0
wLevelParameter
8
2
0