NFC Peer2Peer Mode - Android Beam - ISO 18092

2019-06-22 06:20发布

问题:

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:

  1. Field on

  2. Check for a card or a P2P passive device

  3. If found then communicate with the device, if not then field off

  4. Field off

  5. Check for external field for around 500ms-1s at least

  6. If external field detected act as a card or P2P passive target. Receive commands and perform the transaction as a target

  7. Wait until no more field detected

  8. Goto 1

Now my question is, in Android Beam what happens when the 2 phones are put together?

  1. I think they both create the field for scanning, and they both recognize them, by showing then the Android Beam interface (the smaller windows with the information for sending)
  2. Then, the user types on the screen, and gets the iniator, while the other one goes to the passive receiver.
  3. They pair by P2P passive and change the information over LLCP
  4. The callback is sent to the iniator and the end.

I don't know if this is correct, does someone have information herefore?

What happens in Android Beam when the 2 smartphones/devices are put together, in which mode are they, and who gets when active/passive and which mode is used (P2P active or passive)?

In LLCP there is no master/slave so both are master and slave what exactly means this?

Thanks for your help!

回答1:

As far as I remember it is as follows:

  1. The initiator initiates the transmission, i.e., it is the one that begins the communication - comparable with first come first serve - independent of the direction of the data flow.

  2. In a second step, the initiator dictates the kind of transmission mode, i.e., passive or active in peer-to-peer mode, or RFID mode (reader/writer mode). The chosen mode depends what kind of modes the initiator and/or the target supports. The passive mode is used when the initiator has enough power to drive both devices (itself and target). Whereas the active mode can be used if power should be shared among initiator and target device.

  3. When two NFC devices are put together, the device which wants to communicate first, will be the initiator. Therefore, passive devices like tags are always targets. However, there is no peer-to-peer mode between NFC devices and RFID tags.

  4. LLCP is just a top level protocol to transmit data in either way. Therefore, the initiator asks the target to transmit or receive data. The good thing about the NFC peer-to-peer mode is, that the NFC devices can swap its roles after each successful communication.