java - Can Kitkat HCE(NFC) device talk to another Kitkat HCE(NFC) device -


can kitkat hce(nfc) device talk kitkat hce(nfc) device?

i want write apps transfer data 1 kitkat hce(nfc) device kitkat hce(nfc) device.

if code present

what ask not make sense. if both devices operate in card emulation mode, can't communicate directly each other.

nfc has 3 operating modes:

  1. reader/writer mode: nfc device can read/write nfc tags , interact contactless smartcards.
  2. peer-to-peer mode: 2 nfc device can communicate directly each other.
  3. card emulation mode (either secure element or through software card emulation/hce): nfc device acts contactless smartcard , can therefore interact legacy contactless smartcard readers (or nfc devices in reader/writer mode).

thus if 1 of devices should use android hce, other device need operate in reader/writer mode. android devices use peer-to-peer mode (specifically snep on llcp) default, other device need device android 4.4+. second device need disable peer-to-peer mode , card emulation mode , explicitly put nfc interface in reader/writer mode only. can done through android's reader-mode api.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -