问题

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:

Field on

Check for a card or a P2P passive device

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

Field off

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

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

Wait until no more field detected

Goto 1

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

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)

Then, the user types on the screen, and gets the iniator, while the other one goes to the passive receiver.

They pair by P2P passive and change the information over LLCP

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:

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.

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.

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.

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.

来源:https://stackoverflow.com/questions/14082178/nfc-peer2peer-mode-android-beam-iso-18092

android nfc peer to peer 实例,NFC Peer2Peer Mode - Android Beam - ISO 18092相关推荐

  1. Android游戏开发的入门实例

         在Android系统上开发游戏是Android开发学习者所向往的,有成就感也有乐趣,还能取得经济上的报酬.那怎样开发Android游戏呢?下面介绍一个简单的入门实例.        一.创建 ...

  2. android虚拟设备模拟,适用于Android虚拟设备(AVD)的NFC标记模拟

    谷歌从未在AVD中实现对NFC的支持. 所以在Android设备模拟器中没有官方支持NFC. 早在NFC在Android上,Inside Secure开发并发布了NFC堆栈"Open NFC ...

  3. 基于nfc技术的android移动支付终端的设计与实现,基于Android的NFC移动应用平台的设计与实现...

    摘要: 近年来,NFC作为一种安全,快速,低功耗的近距离非接触无线通信技术,受到了广泛关注.然而,尽管Android操作系统上已经集成了NFC技术及相关协议,NFC在移动端的应用仍然未能普及,已有的应 ...

  4. Android适配 - 实现4.3以后NFC的CardReader模式

    Android 4.4更新了NFC的读卡器模式,具体API差异可以查看官方报告,本篇将梳理Android 4.3.Android 4.4以及之后版本的NFC读卡器模式的写法.(主要是对CPU卡的操作) ...

  5. NFC RFID卡用于读取与iPhone或Android

    NFC RFID卡用于读取与iPhone或Android 作为(近场通信)的NFC RFID卡被认为是最快速,最安全的方式在NFC支付,每日的RFID发布了最新的NFC RFID卡-02,以帮助支付过 ...

  6. NFC读写MifareClassic协议的NFC卡

    IC卡 (Integrated Circuit Card,集成电路卡) 有些国家和地区也称智能卡(smart card).智慧卡(intelligent card).微电路卡(microcircuit ...

  7. NFC技术解读及ST NFC产品与方案

    关注.星标公众号,不错过精彩内容 转自:AI电堂 作为一项便捷的通讯技术,NFC无处不在,从移动支付到IoT,再到智能驾驶和智能工业. 一.NFC是什么? NFC,即近场通信技术(Near Field ...

  8. 【Android 逆向】函数拦截实例 ( ③ 刷新 CPU 高速缓存 | ④ 处理拦截函数 | ⑤ 返回特定结果 )

    文章目录 前言 一.刷新 CPU 高速缓存 二.处理拦截函数 1.桩函数 2.处理拦截函数 三.返回特定结果 四.相关完整代码 前言 [Android 逆向]函数拦截实例 ( 函数拦截流程 | ① 定 ...

  9. 【Android 逆向】函数拦截实例 ( ② 插桩操作 | 保存实际函数入口 6 字节数据 | 在插桩的函数入口写入跳转指令 | 构造拼接桩函数 )

    文章目录 前言 一.函数拦截需要的几个参数 二.插桩前先保存实际函数入口 6 字节数据 三.在插桩的函数入口写入跳转指令 | 构造拼接桩函数 前言 [Android 逆向]函数拦截实例 ( 函数拦截流 ...

最新文章

  1. 从Google Mesa到百度PALO(数仓)
  2. U8 种子ID表 及相关 存储过程
  3. 软件测试度量计算方法有哪些,软件测试度量(三)
  4. topcoder SRM712 Div1 LR
  5. c# 使用timer定时器操作,上次定时到了以后,下次还未执行完怎么处理
  6. 转载 MySql常用查询语句(23种)
  7. ssm项目之sql查询的问题
  8. Python数据结构与算法笔记(八):数据结构——树,二叉树和AVL树
  9. 缓存穿透缓存雪崩,缓存击穿,django的6种缓存数据
  10. apache2部署访问yaaw
  11. linux 移动硬盘 mac,Macbook pro使用原生EFI在移动硬盘安装Windows+Fedora双系统
  12. linux设置开机自启动命令
  13. pip install pygame_Python、PyGame游戏项目
  14. 2022年诺贝尔物理学奖的科学内涵辨识
  15. 嘉楠科技任命成进为首席财务官:高管变动频繁,多名核心股东减持
  16. 从代理模式再出发!Proxy.newProxyInstance的秘密
  17. IT行业的魔力在哪里?98%的人都......
  18. python爬图片代码大全_爬虫入门教程⑩— 用漂亮的图表展示爬取到的数据
  19. 漫谈深度学习 这个领域有点火!
  20. 图片存储方案-七牛云存储

热门文章

  1. 【BUG解决】使用body-parser失效的实例解决
  2. GOPROXY环境变量中direct的含义与用途
  3. Python3字符串复制
  4. 解决zip包安装python pip的安装问题
  5. Python Django 迁移失败如何处理
  6. 请简要说明一下CyclicBarrier和CountDownLatch的区别?
  7. 解决idea application context not configured for this file的问题
  8. netty单片机通讯_SSM+Netty实现软硬件通信,真实项目案例
  9. C++设计模式--命令模式(Command)
  10. android中11种常见传感器的使用方法