NFC标签在android(javacard)的ISO dep通信中丢失

时间:2013-08-14 12:02:48

标签: android tags nfc javacard nexus-s

我是NFC开发的新手。所以我创建了Android应用程序,它将数据发送到jcop(31/36)卡并加密数据(密钥生成)并发送回nexus的设备。但每次我收到此错误。在我的java卡应用程序中,我使用RSA2048进行数据加密。任何人都可以告诉我这是java卡或Android设备的问题。(当我尝试使用galaxy S2时,它工作正常)

08-14 17:20:36.411: D/AudioHardware(89): AudioHardware pcm playback is exiting standby.
08-14 17:20:36.411: D/AudioHardware(89): openPcmOut_l() mPcmOpenCnt: 0
08-14 17:20:36.462: D/NativeNfcTag(460): Check NDEF Failed - status = 255
08-14 17:20:36.559: D/NativeNfcTag(460): Check NDEF Failed - status = 255
08-14 17:20:36.680: D/NativeNfcTag(460): Check NDEF Failed - status = 255
08-14 17:20:36.700: D/NfcDispatcher(460): dispatch tag: TAG: Tech [android.nfc.tech.IsoDep, android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] message: null
08-14 17:20:36.704: I/NfcDispatcher(460): matched TAG override
08-14 17:20:36.708: D/NfcDispatcher(460): Set Foreground Dispatch
08-14 17:20:36.735: W/System.err(5306): java.lang.IllegalStateException: Close other technology first!
08-14 17:20:36.735: W/System.err(5306):     at android.nfc.Tag.setConnectedTechnology(Tag.java:410)
08-14 17:20:36.735: W/System.err(5306):     at android.nfc.tech.BasicTagTechnology.connect(BasicTagTechnology.java:78)
08-14 17:20:36.735: W/System.err(5306):     at android.nfc.tech.IsoDep.connect(IsoDep.java:40)
08-14 17:20:36.739: W/System.err(5306):     at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1153)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2152)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread.performNewIntents(ActivityThread.java:2165)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2174)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread.access$1400(ActivityThread.java:130)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266)
08-14 17:20:36.739: W/System.err(5306):     at android.os.Handler.dispatchMessage(Handler.java:99)
08-14 17:20:36.739: W/System.err(5306):     at android.os.Looper.loop(Looper.java:137)
08-14 17:20:36.739: W/System.err(5306):     at android.app.ActivityThread.main(ActivityThread.java:4745)
08-14 17:20:36.739: W/System.err(5306):     at java.lang.reflect.Method.invokeNative(Native Method)
08-14 17:20:36.743: W/System.err(5306):     at java.lang.reflect.Method.invoke(Method.java:511)
08-14 17:20:36.743: W/System.err(5306):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-14 17:20:36.743: W/System.err(5306):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-14 17:20:36.743: W/System.err(5306):     at dalvik.system.NativeStart.main(Native Method)
08-14 17:20:36.747: D/NfcDispatcher(460): Set Foreground Dispatch
08-14 17:20:37.485: D/NativeNfcTag(460): Tag lost, restarting polling loop
08-14 17:20:40.626: D/AudioHardware(89): AudioHardware pcm playback is going to standby.
08-14 17:20:40.626: D/AudioHardware(89): closePcmOut_l() mPcmOpenCnt: 1

0 个答案:

没有答案