This is running with a USB cable and Windows XP. It installs as a HID device. 

4.2    Mifare Appilication Commands 

4.2.1 int 
API_PCDRead(HANDLEcommHandle,int:DeviceAddress,unsignedchar:mode,unsigned
char:blk_add,unsigned char:num_blk,unsigned char:*snr, unsigned char:*buffer);

Description:
read the appointed length date at the appointed station
Input Parameter Description

commHandle      the serial port handle
DeviceAddress   equipment address
mode            read mode
        ( Request Idle + Key A    mode=00 ,  Request Idle + Key B     mode= 02,
        Request All  + Key A    mode=01 ,  Request All  + Key B     mode=03
        the up number is hex)
blk_add read block address
num_blk read block amount
*snr    a finger, transfer eight byte secret key
*buffer wait receive the variable of output finger

Output Parameter
If Command success
        *snr    4 byte card number
        *buffer the read date (the fact number is num_blk*16)
If Command Failure
        buffer[0]       System Error/Status Codes(You can consult the 2.2)

Return value:
        0x00    Command OK. ( success)
        0x01    Command FAILURE


The full manual is here
http://www.marshland.co.nz/ftp/Misc/DLL.doc
Thanks Wallace. 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to