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:
- reader/writer mode: nfc device can read/write nfc tags , interact contactless smartcards.
- peer-to-peer mode: 2 nfc device can communicate directly each other.
- 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
Post a Comment