简体   繁体   English

Android 4.3和pn532之间的NFC SNEP和LLCP协议

[英]NFC SNEP and LLCP protocols between android 4.3 and pn532

Does anyone know where to find the android 4.3 nfc service source code? 有谁知道在哪里可以找到android 4.3 nfc服务源代码?

I recently bought the NFC shield from seeedstudio and downloaded its library. 最近,我从seeedstudio购买了NFC shield并下载了其库。 The library works awesome with a samsung galaxy s3 on android 4.1.2 . 该库与android 4.1.2上的三星s3配合使用非常出色。 However when using galaxy s4 and galaxy note 2 on android 4.3 , the communication just work the first time. 但是,在android 4.3上使用galaxy s4和galaxy note 2时,通信仅在第一次工作。 After the first time the nfc controller gets stuck and does not read from the pn532 . 第一次之后,nfc控制器被卡住,无法从pn532读取。

I wanted to see the source code to see whats the difference between the two services and try to change the seeedstudio library or so. 我想看一下源代码,看看这两个服务之间有什么区别,并尝试更改seeedstudio库。 I also notice that the signal strength plays an important role, when i place the galaxy note 2 antenna in the same exact position of the pn532 antenna then the failure does not occur. 我还注意到,信号强度起着重要作用,当我将Galaxy Note 2天线放置在与pn532天线相同的确切位置时,就不会发生故障。 Maybe the strength signal matters because between the two devices the communication never fails. 强度信号可能很重要,因为两个设备之间的通信永远不会失败。

I would appreciate any help on how to get the Samsung SNEP-LLCP protocol description. 我将不胜感激如何获得Samsung SNEP-LLCP协议说明。 Or if somebody could point me to a NFC library already tested with galaxy s4 and galaxy note 2 would be awesome. 或者,如果有人可以将我指向一个已经通过galaxy s4和galaxy note 2测试过的NFC library ,那就太棒了。

I already notice the reason that was causing the failure in galaxy s4 and galaxy note 2. An unexpected service coming from the phone was asking for connection in the middle of the protocol. 我已经注意到导致s4和galaxy note 2失败的原因。来自电话的意外服务正在协议中间请求连接。 Since the original seeedstudio library did not validated this case the whole protocol failed. 由于原始的seeedstudio库未验证此情况,因此整个协议失败。 I fix the llcp protocol flow bypassing this service request and now it works properly. 我修复了绕过该服务请求的llcp协议流,现在它可以正常工作。 For more details see the next link: llcp-dep p2p discovery and connections 有关更多详细信息,请参见下一个链接: llcp-dep p2p发现和连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM