諾塔斯智能卡讀寫器Android開發(fā)包(含身份證、社???、CPU、M1、磁條卡、銀行卡等卡)
- 2023-09-14 11:10:00
- zhanghong 原創(chuàng)
- 1201
諾塔斯智能卡讀寫器Android開發(fā)包(含身份證、社保卡、CPU、M1、磁條卡、銀行卡等卡)支持USB免驅(qū)和藍牙BLE4.2。開發(fā)人員和測試人員使用,包括armeabi/armeabi-v7a/armeabi-v8a/x86/x64等安卓處理器使用。開發(fā)包為Android Studio編譯,如遇到編譯有問題,可以直接新建項目,將庫文件和代碼拷貝到新項目的對應(yīng)文件夾就可以編譯。運行后可以在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設(shè)備讀取二代證,包括手機、平板電腦,Android手持移動終端等設(shè)備。
賬號和密碼可以咨詢我司銷售人員,聯(lián)系方式400-023-6649 18166486520 或者訪問二代證云解碼服務(wù)系統(tǒng) 自行注冊,提交資料審核通過即可使用。
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 = "設(shè)備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 = "二代證轉(zhuǎn)發(fā)服務(wù)器";
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; // 連接服務(wù)器失敗
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是把內(nèi)置84個域名解析了 如果整個應(yīng)用是讀二代證 可以放到程序啟動后執(zhí)行 避免第一次讀身份證慢
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));
}
如遇到技術(shù)問題,可以隨時聯(lián)系我司技術(shù)技術(shù)支持。電話400-023-6659 18996709062
聯(lián)系人: | 張經(jīng)理 |
---|---|
電話: | 400-023-6659 |
傳真: | 023-68798110 |
Email: | 843718693@qq.com |
QQ: | 843718693 |
微信: | Lotus-Smart |
微博: | lotusreader |
旺旺: | 諾塔斯智能科技有限公司 |
地址: | 重慶市江北區(qū)宏帆路36號宏帆天地1棟6樓 |