我正在进行62字节NDEF数据包的NDEF推送(android v2.3.4)。这推动失败了。但是,如果我将数据包大小调整为58,它就会很好。 58似乎是某种限制。
这些是我的日志:
我尝试了一个59字节的NDEF数据包,但它失败了。
I/NFC JNI ( 186): LLCP Link activated (LTO=132, MIU=256, OPTION=0x03, WKS=0x03)
D/NdefPushClient( 186): LLCP connection up and running
D/NdefPushClient( 186): sending foreground
D/NdefPushClient( 186): about to create socket
D/NdefPushClient( 186): about to connect to service com.android.npp
D/dalvikvm( 109): GC_EXPLICIT freed 186K, 47% free 5325K/9927K, external 4760K/5615K, paused 112ms
D/NdefPushClient( 186): about to send a 59 byte message
D/NdefPushClient( 186): about to send a 59 byte packet
I/NFC JNI ( 186): LLCP Link deactivated
E/NdefPushClient( 186): couldn't send tag
D/NfcService( 186): LLCP Link Deactivated message. Restart polling loop.
D/NdefPushClient( 186): exception:
D/NdefPushClient( 186): java.io.IOException
D/NdefPushClient( 186): at com.android.internal.nfc.LlcpSocket.send(LlcpSocket.java:172)
D/NdefPushClient( 186): at com.android.nfc.ndefpush.NdefPushClient$SendAsync.doInBackground(NdefPushClient.java:123)
D/NdefPushClient( 186): at com.android.nfc.ndefpush.NdefPushClient$SendAsync.doInBackground(NdefPushClient.java:99)
D/NdefPushClient( 186): at android.os.AsyncTask$2.call(AsyncTask.java:185)
D/NdefPushClient( 186): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
D/NdefPushClient( 186): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
D/NdefPushClient( 186): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
D/NdefPushClient( 186): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
D/NdefPushClient( 186): at java.lang.Thread.run(Thread.java:1019)
D/NdefPushClient( 186): about to close
然后自动删除链接。 关于为什么会发生这种情况的任何想法?
欢呼声, Earlence