APG8201-B2
– Reference Manual
Version 1.00
www.acs.com.hk
Page 16 of 48
www.acs.com
.hk
bSendBuffer[2]=20h;
bSendBuffer[3]=00h;
bSendBuffer[4]=00h;
bSendBuffer[abData]=(31 32 33 20 20 20 20 20 … 20h)
dwSendBufferLen=25h
SCARDStatus = SCardControl( hSAM, SCARD_CTL_CODE(3500), bSendBuffer,
dwSendBufferLen, bRecvBuffer, dwRecvBufferLen, &dwRecvBufferLen);
7.1.7.3.
Read Key
Offset
Field
Size
Value
Description
10
bcmdCode
1
06h
-
11
wcmdLength
2
0006h
-
13
abRFU
2
-
Reserved for future use
15
timeout
1
00h
-
16
PinLength
2
XXYYh
XXh: PIN Max length
YYh: PIN Min length
18
KeyReturnCondition
1
-
The value is a bit wise OR operation.
01: Max size reached
02: Key Enter pressed
04: Timeout occurred
08: Key Cancel pressed
19
StartPosition
1
-
Bit7-4: 0000 indicates upper line of
LCD; 0001 indicates lower line.
Bit3-0: indicates the display position
20
EchoLCDMode
1
-
00: display in ASCII code
01: display char *
Example:
bSendBuffer[0]=06h;
bSendBuffer[1]=00h;
bSendBuffer[2]=06h;
bSendBuffer[3]=00h;
bSendBuffer[4]=00h;
bSendBuffer[abData]=(00 08 04 01 00 00h)
dwSendBufferLen=0Bh
SCARDStatus = SCardControl( hSAM, SCARD_CTL_CODE(3500), bSendBuffer,
dwSendBufferLen, bRecvBuffer, dwRecvBufferLen, &dwRecvBufferLen);