Skip to content

Commit

Permalink
Update iOS SDK
Browse files Browse the repository at this point in the history
Fix bugs with bR301, more information, please check readme in iOS SDK
  • Loading branch information
FeitianSmartcardReader committed May 24, 2017
1 parent 1993f15 commit ff6079c
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 31 deletions.
1 change: 1 addition & 0 deletions Readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# bR301_SDK_Latest
2017/05/24 Update iOS SDK, release lib 1.32.3
2017/02/22 Update iOS SDK, release lib 1.32.0
2016/12/27 Upload whole Bluetooth bR301 SDK into Github

61 changes: 31 additions & 30 deletions SDK/iOS/Lib/include/ft301u.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "wintypes.h"


typedef enum READERTYPE{
READER_UNKOWN = 0,
READER_bR301,
Expand All @@ -22,8 +21,9 @@ typedef enum READERTYPE{
extern "C"
{
#endif


LONG SCARD_CTL_CODE(unsigned int code);

/*
Function: FtGetSerialNum
Expand All @@ -35,6 +35,7 @@ extern "C"
Description:
This function userd to get serial number of iR301.
*/

LONG FtGetSerialNum(SCARDHANDLE hCard, unsigned int length,
char * buffer);
/*
Expand Down Expand Up @@ -79,7 +80,17 @@ extern "C"
*/
LONG FtSetTimeout(SCARDCONTEXT hContext, DWORD dwTimeout);


/*
Function: FT_AutoTurnOffReader
Parameters:
isOpen IN the switch is able to open/close the automatic shutdown function of reader.
Description:
The function is able to open/close the automatic shutdown function of reader.
*/
LONG FT_AutoTurnOffReader(BOOL isOpen);
//for dukpt
/*
Function: FtDukptInit
Expand Down Expand Up @@ -143,62 +154,52 @@ extern "C"
Parameters:
bDidEnter IN must be set 1
Description:
Use this method to release monitor thread of reader status
*/
void FtDidEnterBackground(unsigned int bDidEnter);

/*
Function: FtSle4442Cmd
Function: FtGetDevVer
Parameters:
hCard IN Connection made from SCardConnect(Ignore this parameter and just set to zero in iOS system)
pbCmd IN SLE4442 cmd(3 byte) which are listed in sle4442 cmd table
bLengthToRead IN The data length which reading from the card
bIsClockNum IN If bIsClockNum = 1, then bToReadLength should be '1' and that means the returned one byte is
the clock number for card completing the command.
If bIsClockNum = 0, firmware don't care it.
pbRecvBuffer OUT Return data
pcbRecvLength INOUT IN:length of pbRecvBuffer OUT: length of return data
hContext IN Connection made from SCardConnect(Ignore this parameter and just set to zero in iOS system)
firmwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data
hardwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data
Description:
This function userd to transmit data with SLE4442 card
Get the current Reader firm Version and hardware Version
*/
LONG FtSle4442Cmd(SCARDHANDLE hCard,LPCBYTE pbCmd,DWORD bLengthToRead,BYTE bIsClockNum,LPBYTE pbRecvBuffer,LPDWORD pcbRecvLength);
LONG FtGetDevVer( SCARDCONTEXT hContext,char *firmwareRevision,char *hardwareRevision);


/*
/*
Function: FtGetLibVersion
Parameters:
buffer :buffer of libVersion
buffer : INOUT IN: The buffer OUT: The real buffer contain lib version data
Description:
Get the Current Lib Version
*/

void FtGetLibVersion (char *buffer);

/*
Function: FtGetDevVer
Parameters:
hContext IN Connection made from SCardConnect(Ignore this parameter and just set to zero in iOS system)
firmwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data
hardwareRevision INOUT IN: The buffer OUT: The real buffer contain return version data
Description:
Get the current Reader firmware Version and hardware Version
*/
LONG FtGetDevVer( SCARDCONTEXT hContext,char *firmwareRevision,char *hardwareRevision);

/*
/*
Function: FtGetCurrentReaderType
Parameters:
readerType : INOUT IN: int value OUT: The real current reader type
Description:
Get current Reader Type
*/

LONG FtGetCurrentReaderType(unsigned int *readerType);
Expand Down
Binary file removed SDK/iOS/Lib/lib/libiRockey301_ccid_1.32.0_debug.a
Binary file not shown.
Binary file removed SDK/iOS/Lib/lib/libiRockey301_ccid_1.32.0_release.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 5 additions & 1 deletion SDK/iOS/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2017/02/22
2017/05/24
Update lib to 1.32.3
- Add customer OEM API to switch auto turn off function, the function is no communication data between App with reader, then the reader will do turn off automatically
- Fix bug when call ScardStatus API get wrong reader name, now make it same as SCardListReaders “FT smartcard reader”
2017/02/22
Update to 1.32.0
1.31.9 - Fix bug while in close session, the behave is using bluetooth printer with bR301 and iR301, the reader session will close.
1.32.0 - Fix block issue while in reading data from reader, the behave is random get 0x80100016 error, the error only happen with iR301 series
Expand Down

0 comments on commit ff6079c

Please sign in to comment.