NFC SNEP Push Fragmentation - ACR122U to Android I

2019-05-30 03:07发布

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

标签: nfc nfc-p2p
3条回答
可以哭但决不认输i
2楼-- · 2019-05-30 03:40

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)

查看更多
贼婆χ
3楼-- · 2019-05-30 03:41

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.

查看更多
We Are One
4楼-- · 2019-05-30 03:52

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

查看更多
登录 后发表回答