Bi-Directional Android Beam

后端 未结 5 1401
难免孤独
难免孤独 2021-01-03 04:05

Here\'s what I\'m trying to do with 2 Galaxy Nexuses running Android 4.0 with NFC capabilities:

  • Device A and B are in close enough to initiate an Android Beam
相关标签:
5条回答
  • 2021-01-03 04:14

    I don't know how but it seems to work. Look at 10min 50sec in this video. They demonstrate peer to peer.

    How to NFC on the Android Platform

    0 讨论(0)
  • 2021-01-03 04:25

    I have not tried that myself, but you might be able to acheive a form of bi-directional communication by using one phone in reader/writer mode and the other phone in host based card emulation mode (HCE). See also this thread: NFC reader/writer mode - is it only for tags?.

    0 讨论(0)
  • 2021-01-03 04:30

    I don't think this is possible unless you pull the devices apart then put them together again and explicitly beam data from Device B to A with the touch to beam UI. You can use NFC to initiate a BT connection though and get the job done.

    0 讨论(0)
  • 2021-01-03 04:30

    while the two devices are close to each other you can show a toast at B device to ensure it receive the NDEf message

    0 讨论(0)
  • 2021-01-03 04:34

    For now, (unfortunately) peer-to-peer mode is only accessible on Android through Android Beam, which can't be used for bi-directional communication. If you want to archieve true bi-directional communication, you can better use reader/writer & card-emulation modes. When emulate a ISO/IEC 14443-4 tag, you can use APDU commands (see ISO/IEC 7816-4) to send bi-directional information.

    0 讨论(0)
提交回复
热议问题