Is HCE bi-directional communication possible?

笑着哭i 提交于 2021-02-10 15:12:11

问题


According to this solution, by using the sample app for card emulation and card reader:

  1. we can setup a HCE card (card emulation) in "Device A", and send the data to a reader (card reader) in "Device B".
  2. What if I want to continue this process by sending a "amount" from "Device B" back to "Device A"? Is this achievable?

Note: Both devices are 4.4+.


回答1:


HCE use ISO-7816-4 standard so you communicate with APDU

APDU process is: Reader send command (with optional data) to card. Card respond (with optional data) to reader.

Card could not send command to Reader.



来源:https://stackoverflow.com/questions/32389516/is-hce-bi-directional-communication-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!