NFC SNEP Push Fragmentation - ACR122U to Android ICS P2P

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:22:09

问题


How is it done? The documentation is unclear and there are no examples.

What I do is the following..

I chop off the data into small fragments and then I send the fragments sequentially. The SNEP header is only included once in the first fragment. Do I need to change something in my SNEP header or LLCP? I don't understand how LLCP should be changed to make android understand the sequence of the messages? After the whole message is sent, android does not acknowledge receiving the message.

Examples would be much appreciated.

C# Desktop application trying to send data through NFC Peer-to-Peer to an android ICS running on an SIII. The contact-less smart card reader is an ACS ACR-122U/T


回答1:


SNEP Fragmentation needs to be implemented. LLCP Sequences numbers need to be taken care of and finally, I think there should be some acknowledgement messages in between fragments which is where I'm going wrong.




回答2:


You need to implement SNEP fragmentation and encapsulate the fragments in LLCP frames. Read about the LLCP protocol in the NFC forum.




回答3:


Yes, is exactly like you describe.

They change between them consecutive chunks like is specified in the SNEP protocol

Check this classes, i've tested them and works fine in 4.0.4 (not working on => 4.1)



来源:https://stackoverflow.com/questions/13444436/nfc-snep-push-fragmentation-acr122u-to-android-ics-p2p

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!