nfc-p2p

NFC P2P tag intercept

本小妞迷上赌 提交于 2019-12-12 05:41:08
问题 I am building an Android app using Eclipse and Android SDK. I would like to implement an NFC P2P function in my app in the sense that when you place the 2 phones back to back, both send a string and receive a string automatically. This would of course happen in a separate activity. I have managed to send a custom tag (String) but have been unable to intercept it and use it afterwards in the app code. How can I do this? This is what I have so far: public class MainActivity extends Activity {

Android : How to change NFC protocol priority?

China☆狼群 提交于 2019-12-12 03:08:59
问题 I have my own Android app (App A) which reads and writes NFC tags and ISO-14443 Type A tags. It works well on many Android devices. I want to give the role of ISO-14443 tag to my Nexus5, so I implemented my own HCE (Host Card Emulation) application (App B) on my Nexus5. When I touch the Nexus5 on an external NFC reader (which uses ISO 14443), it works perfectly. However, when I touch the Nexus5 (App B) on a Nexus7 (running App A), p2p (Android beam) data exchanging sequences start. Even after

How to access the NTAG213 NFC interaction counter?

南笙酒味 提交于 2019-12-11 01:05:41
问题 I'm working on an android app where I need to find the number of times an NFC tag was read. I've gone through the docs on the NFC forum and for NTAG213** there is a field called the MIRROR_CONF using which one can determine whether the interaction counter is enabled/disabled and the value of the counter. I need to access this counter programmatically. I would highly appreciated if someone could help me out with that. It's my third day trying to deal with this now.Thanks. 回答1: This is

Progress Dialog not show on screen

安稳与你 提交于 2019-12-10 15:37:24
问题 I edited my code according dear Mayank'answer but It does not show any message that is sended as input in displayMsg() method before method begines..I should say MethodTest() is started with nfc and in method onNewIntent(Intent intent) @Override protected void onNewIntent(Intent intent) { MethodTest(); .............. } public void MethodTest() { DisplayMsg("method 1 is running"); Method1(); DisplayMsg("method 2 is running"); Method2(); DisplayMsg("method 3 is running"); Method3(); } private

NFC Peer2Peer Mode - Android Beam - ISO 18092

元气小坏坏 提交于 2019-12-10 13:55:49
问题 I need to find out how in Android Beam the P2P mode is managed. I found some general information about P2P: There is an active P2P mode (not recommended by NFC Forum) and a passive one (recommended by NFC Forum) where the passive device works like a smartcard (card emulation mode). I also know that an NFC reader device does usually the following steps: Field on Check for a card or a P2P passive device If found then communicate with the device, if not then field off Field off Check for

NFC SNEP Push Fragmentation - ACR122U to Android ICS P2P

房东的猫 提交于 2019-12-08 13:01:53
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

llcp-dep p2p discovery and connections

旧城冷巷雨未停 提交于 2019-12-08 07:02:38
问题 I am working on a school project to connect the pn532 with a nfc phone. I am using the seeedstudio nfc controller and the library they have, with some code that I am adding. My questions are related to the connection and discovery stage of the protocol. Question 1: What to respond when the initiator sends a CONNECT command to the DSAP = 1 "discovery service". Bellow I explain the results of the protocol. Phones used to test were(gs4, note 2): Situation 1: the phone sends me 05 20 06 this is a

Why Android & IOS11 cannot communicate via NFC

瘦欲@ 提交于 2019-12-07 17:40:34
问题 Currently using React Native and attempting to use react-native-nfc-ios and react-native-nfc so I can have cross-device communication between ios and Android. I'm finding that they cannot communicate, however I think it's due to a broader issue (as other existing apps also don't work). If I download a NFC reader app on iPhone 7, and an NFC writer app on Android they cannot communicate. Why is this? Instructions to Duplicate Turn on NFC Reader on iPhone 7 Put some arbitrary data in NFC write

Android Beam - payload transfer from both devices when only one Touch To Beam?

青春壹個敷衍的年華 提交于 2019-12-06 17:21:28
问题 Ok, I watched the Google I/O from 2011 presentation on NFC on peer to peer. The demo was done on Gingerbread and using the application Sticky Notes found Now in this demo, both device the onNewIntent() was called at the same time so both devices are trying to share information to one another. On ICS and above, you have Android Beam.. With Android Beam, you have to touch to trigger the onNewIntent() event that will send the NDef message across. Now the problem with this is that now to trigger

NFC card emulation with closed reader application

无人久伴 提交于 2019-12-06 11:59:31
I have two apps on two Android devices, similar to CardEmulation and CardReader from the samples for NFC. I want to send data from the host card emulation app running on one Android device to the reader application running on the second Android device. This works when both apps are open in foreground. But if I close the reader application, I can no longer send data to it. Instead, when the two phones are held together, they activate Beam transmission. However, I would like to have the reader phone automatically start the reader app when the two phones are held together. So question is: Can I