NFC无法发送Android 4.0.3数据

时间:2012-01-25 08:51:19

标签: java android nfc android-4.0-ice-cream-sandwich nexus-s

我有一个NFC设备( SCL3711 )和 Google Nexus S 手机。我写了一个应用程序,它将数据从手机发送到NFC设备,反之亦然。在 Android 2.3.3 上,一切都运行良好。现在我将我的Nexus S操作系统更新为 4.0.3 Ice Cream Sandwich ,一切都停止了。现在我无法将数据从手机发送到NFC设备,反之亦然。我可以理解的主要原因是我无法连接到设备,但为什么我无法理解。

请帮助我,提供一些链接或信息来考虑这个问题。一切都对我有所帮助。

电话日志

01-25 13:12:42.629: DEBUG/NFC JNI(23320): Discovered P2P Initiator
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 46 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 66 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 6d 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 01 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 01 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 10 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 02 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 02 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 00 
01-25 13:12:42.629: DEBUG/NFC JNI(23320): 00 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 03 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 02 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 00 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 03 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 04 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 01 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 64 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 07 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 01 
01-25 13:12:42.633: DEBUG/NFC JNI(23320): 03 
01-25 13:12:42.688: DEBUG/NfcService(23320): LLCP Activation message
01-25 13:12:42.688: INFO/NFC JNI(23320): LLCP Link activated (LTO=100, MIU=128, OPTION=0x03, WKS=0x03)
01-25 13:12:42.688: INFO/NfcP2pLinkManager(23320): LLCP activated
01-25 13:12:42.692: DEBUG/NfcP2pLinkManager(23320): onP2pInRange()
01-25 13:12:42.704: DEBUG/AudioHardware(82): AudioHardware pcm playback is exiting standby.
01-25 13:12:42.704: DEBUG/AudioHardware(82): openPcmOut_l() mPcmOpenCnt: 0
01-25 13:12:42.793: DEBUG/dalvikvm(23320): GC_FOR_ALLOC freed 2291K, 27% free 12018K/16327K, paused 51ms
01-25 13:12:42.793: INFO/dalvikvm-heap(23320): Grow heap (frag case) to 13.179MB for 1463056-byte allocation
01-25 13:12:42.821: DEBUG/dalvikvm(23320): GC_CONCURRENT freed <1K, 18% free 13447K/16327K, paused 2ms+2ms
01-25 13:12:43.708: INFO/NFC JNI(23320): LLCP Link deactivated
01-25 13:12:43.708: DEBUG/NfcService(23320): LLCP Link Deactivated message. Restart polling loop.
01-25 13:12:43.708: INFO/NfcP2pLinkManager(23320): LLCP deactivated.
01-25 13:12:43.708: DEBUG/NFC JNI(23320): Failed to accept incoming socket  0x0096[NFCSTATUS_ABORTED]
01-25 13:12:43.915: DEBUG/NFC JNI(23320): Discovered P2P Initiator
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 46 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 66 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 6d 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 01 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 01 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 10 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 02 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 02 
01-25 13:12:43.915: DEBUG/NFC JNI(23320): 00 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 00 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 03 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 02 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 00 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 03 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 04 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 01 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 64 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 07 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 01 
01-25 13:12:43.918: DEBUG/NFC JNI(23320): 03 
01-25 13:12:43.985: DEBUG/NfcService(23320): LLCP Activation message
01-25 13:12:43.985: INFO/NFC JNI(23320): LLCP Link activated (LTO=100, MIU=128, OPTION=0x03, WKS=0x03)
01-25 13:12:43.985: INFO/NfcP2pLinkManager(23320): LLCP activated
01-25 13:12:44.989: INFO/NFC JNI(23320): LLCP Link deactivated
01-25 13:12:44.989: DEBUG/NfcService(23320): LLCP Link Deactivated message. Restart polling loop.
01-25 13:12:44.993: INFO/NfcP2pLinkManager(23320): LLCP deactivated.
01-25 13:12:45.747: DEBUG/NfcP2pLinkManager(23320): Debounce timeout
01-25 13:12:45.747: DEBUG/NfcP2pLinkManager(23320): onP2pOutOfRange()
01-25 13:12:47.141: DEBUG/AudioHardware(82): AudioHardware pcm playback is going to standby.
01-25 13:12:47.141: DEBUG/AudioHardware(82): closePcmOut_l() mPcmOpenCnt: 1

1 个答案:

答案 0 :(得分:1)

我在找到解决方案后关闭了这个问题,主要原因是协议更改而不是 ndef 现在我们必须使用 snep 协议。如果您有相同的问题更改协议类型。