91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 64KB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2021-05-07
  • 語言: Java
  • 標簽:

資源簡介

諾塔斯智能科技為非接觸式IC卡讀寫器二次開發SDK提供了豐富的版本、針對不同的使用環境,我們提供了C#、C++、JAVA、dephi、Android、JS、Liunx、VC等多個版本,可以根據自己需要有針對性下載。

資源截圖

代碼片段和文件信息

package?cc.lotuscard;

import?java.util.HashMap;

import?android.app.Activity;
import?android.app.PendingIntent;
import?android.content.Intent;
import?android.hardware.usb.UsbDevice;
import?android.hardware.usb.UsbDeviceConnection;
import?android.hardware.usb.UsbEndpoint;
import?android.hardware.usb.UsbInterface;
import?android.hardware.usb.UsbManager;
import?android.os.Bundle;
import?android.util.Log;

public?class?LotusCardDemoActivity?extends?Activity?{
private?LotusCardDriver?mLotusCardDriver;

private?UsbManager?m_UsbManager?=?null;
private?UsbDevice?m_LotusCardDevice?=?null;
private?UsbInterface?m_LotusCardInterface?=?null;
private?UsbDeviceConnection?m_LotusCardDeviceConnection?=?null;
private?final?int?m_nVID?=?1306;
private?final?int?m_nPID?=?20763;
private?static?final?String?ACTION_USB_PERMISSION?=?“com.android.example.USB_PERMISSION“;

@Override
public?void?onCreate(Bundle?savedInstanceState)?{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//?設置USB讀寫回調?串口可以不用此操作
SetUsbCallBack();

//?LotusCardParam?tLotusCardParam?=?new?LotusCardParam();
mLotusCardDriver?=?new?LotusCardDriver();
//?int?nDeviceHandle?=?mLotusCardDriver.OpenDevice(“/dev/ttyTCC1“?0
//?0);
//?int?nDeviceHandle?=?mLotusCardDriver.OpenDevice(“/dev/ttyS3“?0?0);

int?nDeviceHandle?=?mLotusCardDriver.OpenDevice(““?0?0true);

if?(nDeviceHandle?>?0)?{

testIcCardReader(nDeviceHandle);
mLotusCardDriver.CloseDevice(nDeviceHandle);
}
}

private?void?testIcCardReader(int?nDeviceHandle)?{
boolean?bResult?=?false;
int?nRequestType;
LotusCardParam?tLotusCardParam1?=?new?LotusCardParam();
bResult?=?mLotusCardDriver.Beep(nDeviceHandle?10);
bResult?=?mLotusCardDriver.Beep(nDeviceHandle?10);
if?(!bResult)
return;
nRequestType?=?LotusCardDriver.RT_NOT_HALT;
//以下3個函數可以用GetCardNo替代
// bResult?=?mLotusCardDriver.Request(nDeviceHandle?nRequestType
// tLotusCardParam1);
// if?(!bResult)
// return;
// bResult?=?mLotusCardDriver.Anticoll(nDeviceHandle?tLotusCardParam1);
// if?(!bResult)
// return;
// bResult?=?mLotusCardDriver.Select(nDeviceHandle?tLotusCardParam1);
// if?(!bResult)
// return;
bResult?=?mLotusCardDriver.GetCardNo(nDeviceHandle?nRequestType
tLotusCardParam1);
if?(!bResult)
return;
tLotusCardParam1.arrKeys[0]?=?(byte)?0xff;
tLotusCardParam1.arrKeys[1]?=?(byte)?0xff;
tLotusCardParam1.arrKeys[2]?=?(byte)?0xff;
tLotusCardParam1.arrKeys[3]?=?(byte)?0xff;
tLotusCardParam1.arrKeys[4]?=?(byte)?0xff;
tLotusCardParam1.arrKeys[5]?=?(byte)?0xff;
tLotusCardParam1.nKeysSize?=?6;
bResult?=?mLotusCardDriver.LoadKey(nDeviceHandle?LotusCardDriver.AM_A
0?tLotusCardParam1);
if?(!bResult)
return;
bResult?=?mLotusCardDriver.Authentication(nDeviceHandle
LotusCardDriver.AM_A?0?tLotusCardParam1);
if?(!bResult)
return;
bResult?=?mLotusCardDriver.Read(nDeviceHandle?1?tLotusCardParam1);
if?(!bResult)
return;

tLotusCardParam1.arrBuffer

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-11-21?17:37??Android\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\
?????文件?????????491??2013-09-17?13:23??Android\LotusCardDemo\.classpath
?????文件?????????849??2013-09-17?13:23??Android\LotusCardDemo\.project
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\.settings\
?????文件?????????208??2013-09-17?13:23??Android\LotusCardDemo\.settings\org.eclipse.jdt.core.prefs
?????文件????????1541??2013-09-27?15:29??Android\LotusCardDemo\AndroidManifest.xml
?????目錄???????????0??2013-12-09?15:27??Android\LotusCardDemo\assets\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\libs\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\libs\armeabi\
?????文件???????93304??2013-10-31?09:58??Android\LotusCardDemo\libs\armeabi\libLotusCardDriver.so
?????文件??????????53??2013-09-17?13:23??Android\LotusCardDemo\lint.xml
?????文件????????1248??2013-09-17?13:23??Android\LotusCardDemo\proguard.cfg
?????文件?????????361??2013-09-17?13:23??Android\LotusCardDemo\project.properties
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\drawable-hdpi\
?????文件????????4147??2013-09-17?13:23??Android\LotusCardDemo\res\drawable-hdpi\ic_launcher.png
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\drawable-ldpi\
?????文件????????1723??2013-09-17?13:23??Android\LotusCardDemo\res\drawable-ldpi\ic_launcher.png
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\drawable-mdpi\
?????文件????????2574??2013-09-17?13:23??Android\LotusCardDemo\res\drawable-mdpi\ic_launcher.png
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\layout\
?????文件?????????398??2013-09-17?13:23??Android\LotusCardDemo\res\layout\main.xml
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\values\
?????文件?????????192??2013-09-17?13:23??Android\LotusCardDemo\res\values\strings.xml
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\res\xml\
?????文件?????????161??2013-09-28?14:07??Android\LotusCardDemo\res\xml\device_filter.xml
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\src\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\src\cc\
?????目錄???????????0??2013-11-21?17:37??Android\LotusCardDemo\src\cc\lotuscard\
?????文件????????5489??2013-09-30?11:54??Android\LotusCardDemo\src\cc\lotuscard\LotusCardDemoActivity.java
............此處省略4個文件信息

評論

共有 條評論