Android 4.4。在VirtualBox下无法访问ACR122U阅读器

时间:2016-11-21 08:18:11

标签: android nfc smartcard-reader acr122

我使用在VirtualBox下运行的Android 4.4,并连接了ACR122U NFC阅读器。

我向Manifest添加了几行:

<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />

<intent-filter>
    <action android:name="android.nfc.action.TAG_DISCOVERED" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

尝试通过

检查NFC阅读器
nfcAdapter = NfcAdapter.getDefaultAdapter(this);
if(nfcAdapter == null) {
    Toast.makeText(this, "NFC NOT supported on this devices!", Toast.LENGTH_LONG).show();

但是接收不支持NFC的消息。我在哪里做错了?

1 个答案:

答案 0 :(得分:0)

Android NFC堆栈不支持开箱即用的ACR122U阅读器。实际上,我怀疑你是否能够为可以利用该读卡器的NFC堆栈编写驱动程序层,因为它只支持Android设备中当前NFC控制器的一部分功能,并且因为它支持PN532 NFC芯片。与目前的NFC控制器(即NCI)相比,ACR122U使用完全不同的协议。

相关问题