hi dear
I want to integrate crt450 card reader with my c#.net 2010 application
the read card function gave error
rc = CRT450_ReadCard(a, 0x31, 0x0F, true, 0x30, _FingerFeatures1, 0x0000000d);
-------------------------
[DllImport("CRT450U.dll")]
public static extern unsafe int CRT450_ReadCard(int a, byte p, byte p_2, bool p_3, byte p_4, byte p_6, int p_5);
----------------------------------
this is help file for this function which manufacturer company provide
int APIENTRY CRT450_ReadCard (HANDLE ComHandle, BYTE _ReadOption, BYTE _WaitTime, bool *_IsOutofTime, BYTE *_mode,BYTE _CardData[],int *_CardDataLen)
// Parameter:
// HANDLE ComHandle: Com port Handle
// BYTE _ReadOption: Card swipe modal
●0x30: Swipe once
●0x31: Swipe until valid result
// BYTE _WaitTime: Waiting time for Swiping
●0x05: Data range (0x01~0x0F)
//bool *_IsOutofTime: Set of overtime
●true: Overtime
●false: No overtime
// BYTE *_mode: Format of card data reading
●0x30: ASCII
●0x31: Binary
// int *_CardDataLen: Content of text in every designated track
Format of text in every designated track:
Start word + Status word+ Track data
●Start word : 0x80 for track#1
:0x81 for track#2
:0x82 for track#3
●Status word :0x59, positive read, then track data is the reality content of the track text
:0x4E, negative read, then track data is the error info. shown below
:0x4F, No read, then track data is 0x4E
●Error info :
:0xE1, No STX
:0xE2, No ETX
:0xE3, VRC Error
:0xE4, LRC Error
:0xE5, No Data
Note
︰Format of card read by binary
●Track#1 : b0, b1, b2, b3, b4, b5,P
●Track#2/Track#3: b0, b1, b2 b3,P
︰If reading card by ASCII style ,the device will return data by every character is encoded into 1byte ASCII
●E.g. The first byte in Track #1: 0x03(HEX),
Return encoded data: 0x30(ASCII)
︰If reading card by binary style , device will return the data by 4bits of every character is encoded into 1byte ASCII
●E.g. The first byte at Track #1 :0x03(HEX)
Return track data: 0x30 0x33(ASCII)
// int *_CardDataLen: Length of all designated tracks text
//Returned value:
If the function is succeeded, zero will be returned, and if failed, nonzero will be returned.
///////////////////////////////////////////////////////////////////////Pplease help me
Thanks
SHUAIb