User Manual
Table Of Contents
- E7 IC Card Reader Introduction
- 1.1 Overview
- 1.2 Features
- 1.3 Device Interface
- 1.4 Peader Packing List
- 1.5 Software
- 1.6 Reader Type Description
- 1.7 Function Instruction
- 1.8 API Function List
- Common Functions
- Device Function
- Keyboard Specific Functions
- S50 card functions
- S70 card specific function
- Ultralight card specific function
- Ultralight-C card specific function
- Mifare pro card specific function
- Mifare PLUS card specific function
- Contactless CPU card(ISO14443) specific function
- Desfire card specific function
- CPU(SAM) card specific functions
- 4442 card-specific functions
- 4428 Card-Specific Functions
- 1.9 Error codes and Meanings
- 2. API Function
- 2.1 Common Functions
- 2.2 Device Functions
- 2.3 Keyboard Special Functions
- 2.4 S50(M1)Functions
- 2.5 S70 card specific function
- 2.6 Ultralight card specific function
- 2.7 Ultralight-Ccard specific function
- 2.8 Mifare Pro card specific function
- 2.9 Contactless CPU card(ISO1443) specific functi
- 2.10 Desfirecard specific function
- 2.11 Mifare Plus card specific function
- 2.12 CPU(SAM)Functions
- 2.13 SLE4442 special Functions
- 2.14 SLE4428 special Functions
- 3.MIFARE ONE Card Structure
- 4.Appendix

57
Description
Information transfer between CPU Card and APDU(Application Protocol Data Unit),
This function encapsulates the T = 0 and T = 1 operation
Parameters
ICDev: Handle of Reader Device
slen: Length of information for send
sbuff: Information buffer for send
rlen: Length of information received
rbuff: [out] buff for returned Information
Return Value
<0 error, its absolute value is error number
=0 successful
Example
int st;
unsigned char slen,rlen,senddata[100], recdata[100];
slen=5;
senddata[0]=0x00;senddata[1]=0x84;senddata[2]=0x00;
senddata[3]=0x00;senddata[4]=0x04;
st= fw_cpuapdu ( icdev,slen,senddata,&rlen,recdata)
/*send the random number command to the card*/
__int16 fw_setcpupara (HANDLE ICDev, unsigned char cputype, unsigned char cpupro,
unsigned char cpuetu)
Description
Set parameters of CPU card, default parameter cpupro=0(T=0 protocol)
cpuetu=92(baud rate 9600) after power on.
Parameters
ICDev: Handle of Reader Device
cputype:Type of Deck.
ox0c: Main deck(ISO7816);
0x0d: SAM1;
0x0e:SAM2;
0x0f:SAM3.
Cpupro: Protocol of card. value 0: T=0 Protocol; value 1: T=1 protocol.
cpuetu: Time-delay data (Decimal) in card operation. For cards with different baud
rates, the value of this parameter is different. Set 92 for 9600(baud rate), set
20 for 38400(baud rate)
Return Value
<0 error, its absolute value is error number
=0 successful
__int16 fw_cpureset (HANDLE ICDev, unsigned char *rlen, unsigned char *rbuff)
Description
Power-on reset function of CPU Card, it will automatically judge card protocol
after reset.
Parameters
ICDev: Handle of Reader Device