nfc-p2p

Android NFC : SNEP protocol and P2P response

空扰寡人 提交于 2020-01-13 09:35:08
问题 I am trying to implement a P2P communication between two Android phones (one of them will be replaced by an independent device in the end). I have seen that Android 4 supports SNEP which is published by the NFC forum and should be available on non-android devices. I have following the Google tutorial for NFC P2P (http://developer.android.com/guide/topics/nfc/nfc.html#p2p) and I can send some information from one phone to the other, but I have a few questions: Android Beam is just a name for

Android: Receiving and processing NDEF records

家住魔仙堡 提交于 2020-01-06 08:30:52
问题 What I've been trying to do is send an integer and receive it and then take that integer and set it to the timer that's counting down. So far I am able to send the integer and have the application open on the other device, However when the device loads the activity, it opens the MainActivity and not the Newgame activity. I must admit at this point I'm not code smart and a bit of a novice but here is the extract of code which deals with NFC Communication, This extract is from the Newgame.java:

NFC card emulation with closed reader application

给你一囗甜甜゛ 提交于 2020-01-02 14:39:53
问题 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

Can we transfer data between two iPhone devices using NFC in iOS? [closed]

孤街醉人 提交于 2019-12-25 20:02:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . With the release of iOS 13, iOS NFC core framework has added API's to write on NFC tags. But does this mean that now we can transfer data between two iPhone devices using NFC APIs. Writing and reading on NFC tags works fine. 回答1: Not directly between two phones. You can read from

How to make an Android phone act like a contactless (NFC) terminal

倾然丶 夕夏残阳落幕 提交于 2019-12-24 13:40:33
问题 In order to help debug a HCE app I would like to make an Android phone act as a contactless terminal. Is this possible without rooting the phone and using NFCProxy? (http://sourceforge.net/projects/nfcproxy/) i.e. I have two phones and want to run my app on one while making the other act as a reader. 回答1: This is only possible if your reader Android device (the one that acts as contactless terminal) has Android 4.4 or later. The problem is that Android's HCE capabilities run in parallel with

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.

How to a send SNEP GET request from Android

谁说胖子不能爱 提交于 2019-12-21 23:20:05
问题 I have an NFC reader ACS ACR122U and I want to send data from my Android phone to it. I have found many examples on how to connect my two devices in P2P mode and how to send data from my phone to the ACR122U, but my desktop server (ACR122U) always receives a SNEP PUT request. I would send a GET request but I can find only examples that use Android built in NDEF system without specifing PUT or GET request. How can I package and send a SNEP GET request from my Android device to an ACR122U? 回答1:

Is it possible to with one touch two Android devices exchange data via NFC?

你说的曾经没有我的故事 提交于 2019-12-17 20:37:44
问题 I want to create an application to exchange information between 2 devices via NFC. I know how to make one mobile send information to the other using Android Beam. What I don't know is how two phones could send data to each other with just one touch. Is this possible? If yes, how? 回答1: That depends on what you are trying to achieve and what Android version(s) you are using: Both devices with Android < 4.0 Both devices can send one NDEF message each with no user interaction required. The

NFC Android App acting differently on different phones

心已入冬 提交于 2019-12-13 17:44:46
问题 I have currently been testing some examples being found on the internet on sending NDEF messages through the NFC on my android phone. I have three phones that I tested the phone with: Samsung Galaxy Nexus (Android 4.4.4), S3 (Android 4.4.2) and S4 (Android 4.4.4). The app works perfect the way I wanted it to on the GN (it sends the message), however on the S3 and the S4 it sends the package name of the app instead of the message. Can anybody help me with this? Does anyone know why or how to

How can I read the NFC ID of another Android device?

巧了我就是萌 提交于 2019-12-12 09:19:00
问题 I want to exchange (or only read) the NFC tag ID from one Android device to another but I don't know if I should use peer-to-peer mode or emulate an NFC tag with HCE. If I use HCE, is the emulated tag ID unique? What is the better option or is there a simpler one? 回答1: Neither P2P nor HCE will provide you a unique ID, least not on any phone I'm aware of. With P2P it's required that the ID exchanged in ATR is random. With HCE the emulated tag ID is usually set to 08h plus a random number.