作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 移动互联与通信技术 • 上一篇    下一篇

近场通信设备间的P2P 通信设计与实现

何晨晖,郑紫微   

  1. (宁波大学通信技术研究所,浙江宁波315211)
  • 收稿日期:2014-04-16 出版日期:2015-03-15 发布日期:2015-03-13
  • 作者简介:何晨晖(1989 - )女,硕士研究生,主研方向:无线移动通信;郑紫微,教授、博士生导师。
  • 基金资助:
    国家自然科学基金资助项目(60972063);国家科技重大专项基金资助项目(2011ZX03002-004-02);浙江省杰出青年科学基金 资助项目(R1110416);教育部高等学校博士学科点专项科研基金资助项目(20113305110002);宁波市科技创新团队基金资助项目 (2011B81002)。

Design and Implementation of P2P Communication Between Near Field Communication Devices

HE Chenhui,ZHENG Ziwei   

  1. (Institute of Communication Technology,Ningbo University,Ningbo 315211,China)
  • Received:2014-04-16 Online:2015-03-15 Published:2015-03-13

摘要: 为实现不同近场通信(NFC)设备间的互通,以NFC 设备的点对点通信(P2P)为研究对象,设计并实现基 于Android 平台的NFC 移动终端与读卡器之间的点对点(P2P)通信方案。NFC 移动终端与读卡器以NFC 数据交 换格式(NDEF)的数据为通信单元,在简单NDEF 交换协议的基础上,一方作为客户端发送传输消息请求,另一方 作为服务器对客户端的请求做出响应。通过应用协议数据单元中的命令-响应消息对使NFC 移动终端与读卡器进 行交互。测试结果表明,NFC 移动终端与NFC 读卡器均可以主动给对方发送消息,较好地实现了两者之间的P2P通信。

关键词: 安卓平台, 近场通信, 点对点通信, 移动终端, 读卡器, 应用协议数据单元

Abstract: To achieve interconnection between different Near Field Communication(NFC) devices,Peer to Peer(P2P) communication of NFC device as the object of study,this paper designs and implements P2P communication between NFC mobile terminal and NFC reader based on Android platform. NFC mobile terminal and NFC reader takes NFC Data Exchange Format(NDEF) as the communication unit,based on the Simple NDEF Exchange Protocol(SNEP) protocol,a party is as a client to send the message transmission request,and the other is as a server to respond client request. It is to enable NFC mobile terminal interact with NFC reader through command-response message pair in Application Protocol Data Unit (APDU). Test results show that both NFC mobile terminal and NFC reader can take the initiative send messages to each other,and better achieve P2P communication between NFC mobile terminal and NFC reader.

Key words: Android platform, Near Field Communication ( NFC ), Peer to Peer ( P2P ) communication, mobile terminal, card reader, Application Protocol Data Unit(APDU)

中图分类号: