诺塔斯智能卡读写器Android开发包(含身份证、社保卡、CPU、M1、磁条卡、银行卡等卡)支持USB免驱和蓝牙BLE4.2。开发人员和测试人员使用,包括armeabi/armeabi-v7a/armeabi-v8a/x86/x64等安卓处理器使用。开发包为Android Studio编译,如遇到编译有问题,可以直接新建项目,将库文件和代码拷贝到新项目的对应文件夹就可以编译。运行后可以在DEMO中选择接口类型,主要有USB、BLE、RS232、TCP/IP,NFC二代证。其中USB主要包含了我司USB和RS232接口的智能卡读写器,主要型号有L5-UP、L12-U,L12-2IN1,L13-U,L12-DH-22、L11-U等型号。BLE代表有L5-B蓝牙读卡器,TCP/IP代表型号有L9-E-POE。NFC二代证主要是第三方NFC设备读取二代证,包括手机、平板电脑,Android手持移动终端等设备。
账号和密码可以咨询我司销售人员,联系方式400-023-6649 18166486520 或者访问二代证云解码服务系统 自行注册,提交资料审核通过即可使用。
private static final String INTERFACE_TYPE_USB = "USB";
private static final String INTERFACE_TYPE_BLE = "BLE";
private static final String INTERFACE_TYPE_RS232 = "RS232";
private static final String INTERFACE_TYPE_TCPIP = "TCPIP";
private static final String INTERFACE_TYPE_NFC = "NFC二代证";
private static final String TEST_ITEM_LIV_BUILD_TIME = "库编译时间";
private static final String TEST_ITEM_DEVICE_API = "设备API";
private static final String TEST_ITEM_M1 = "测试M1";
private static final String TEST_ITEM_CPU = "测试CPU";
private static final String TEST_ITEM_CPU_7816 = "测试接触式CPU";
private static final String TEST_ITEM_4442 = "测试4442";
private static final String TEST_ITEM_4428 = "测试4428";
private static final String TEST_ITEM_24CXX = "测试24CXX";
private static final String TEST_ITEM_BANKNO = "测试银行卡号";
private static final String TEST_ITEM_BANKNO_7816 = "测试接触式银行卡号";
private static final String TEST_ITEM_TWO_ID = "测试二代证";
private static final String TEST_ITEM_TWO_ID_BRIDGE = "二代证转发服务器";
private static final String TEST_ITEM_SOCIAL_SECURITY_CARD = "测试社保卡";
private static final String TEST_ITEM_PETRO_CHINA_CARD = "测试中石油";
private static final String TEST_ITEM_SINOPEC_CARD = "测试中石化";
private static final String TEST_ITEM_3DES_MAC = "测试3DesMac";
private static final String TEST_ITEM_CTID = "测试CTID";
/**
* 处理二代证
*/
public void testTwoIdCard(LotusCardDriver driver, long nHandle, NfcB nfcB, boolean bLotusDevice) {
final int TIEC_GET_SAMV_IP_PORT = 31; // 获取SAMV地址端口错误
final int TIEC_CONNECT_SERVER = 24; // 连接服务器失败
boolean bShowOkResult = true;// false;
byte[] arrBmp = null;
int nDecodeRet = 0;
String strDispatchUrl = m_edtDispatchUrl.getText().toString();
int nAccount = Integer.valueOf(m_edtAccout.getText().toString());
String strPassword = m_edtPassword.getText().toString();
if (null == driver) return;
if (nHandle == -1) return;
TwoIdInfoParam tTwoIdInfo = new TwoIdInfoParam();
SamvErrorInfoParam tSamvErrorInfo = new SamvErrorInfoParam();
boolean bResult = false;
boolean bResultTmp = false;
int nResult = 0;
boolean bWlDecodeResult = false;
byte[] arrBmpAndWl = null;
String temp;
int nErrorCode = 0;
LotusCardParam tLotusCardParam1 = new LotusCardParam();
//ResolutionSamBridgeDomainName是把内置84个域名解析了 如果整个应用是读二代证 可以放到程序启动后执行 避免第一次读身份证慢
driver.ResolutionSamBridgeDomainName(nHandle);
if (true == bLotusDevice) {
bResult = driver.SetCardType(nHandle, 'B');
if (!bResult) {
AddLog("Call SetCardType Error!");
return;
}
if(m_bShowOkLog) {
if (bShowOkResult) AddLog("Call SetCardType Ok!");
}
nResult = driver.RequestB(nHandle, 0, tLotusCardParam1);
if (nResult == 0) {
AddLog("Call RequestB Error!");
return;
}
nResult = driver.SelectB(nHandle, tLotusCardParam1);
if (nResult == 0) {
AddLog("Call SelectB Error!");
return;
}
if(m_bShowOkLog)AddLog("二代证UID:" + driver.GetTwoGenerationIDCardNo(nHandle));
}
如遇到技术问题,可以随时联系我司技术技术支持。电话400-023-6659 18996709062