射频识别技术漫谈(25)——Felica简介

【转自】http://blog.sina.com.cn/s/blog_9ed067ad01016llo.html

Felica是SONY公司开发的射频识别技术,该技术使用的载波频率与ISO14443A和ISO14443B一样,都是13.56MHz,所以有人把它称为ISO14443C,但SONY并没有正式接受这样的称谓。
    Felica技术并不是一个完全公开的协议,尤其是该技术涉及安全认证和加密的部分,SONY的保密做的很好。本文介绍的也仅是其公开的部分信息。
    Felica技术的通讯协议包括三层:物理层描述数据传输的物理和电气特性; 数据链路层描述数据传输和错误检测的格式;应用层描述命令的功能和规范.
    Felica射频传输的物理特性如下表所示

 Felica卡片和读写器之间的数据传输使用数据包。数据包的格式如下:

Felica技术应用层的命令包由命令码和命令数据两部分组成,包括1字节的命令码和N字节的命令数据。命令码标识命令的类型,命令数据为本条命令执行所需的数据。读卡器命令发出后卡片回复一个响应包,响应包由1字节响应码和N字节响应数据两部分组成。响应码标识响应的类型,响应数据为本条命令执行后卡片返回的数据。

Felica有两个重要的参数:出厂识别码(IDm)和出厂参数(PMm)。IDm和PMm可以使用轮询命令获得,IDm和PMm在出厂时固化在卡片中,卡片出厂后不能修改。
    Felica使用出厂识别码(IDm)在通讯中识别一张卡片。Idm包含制造商代码和卡片识别码两部分。
    出厂参数(PMm)包括2字节的芯片类型(用来识别产品)和6字节的最大响应时间参数(用来确定每一条命令的超时时间)。
    Felica采用基于时隙的方法实现卡片的防冲突机制。为了识别一张卡片,读写器必须使用轮询命令轮询未知数量的卡片。卡片收到轮询命令后,以随机的方式选择一个时隙,并在读写器呼叫该时隙时予以应答,从而实现防冲突。
    当读写器正确接收一个卡片对于轮询命令的应答,读写器可以获得卡片的Idm,在之后的通讯中,读写器通过在命令包中包含Idm,就可以从射频场的多张卡片中唯一的指定一张进行通讯。卡片收到命令后将把自己的Idm与命令包中的Idm比对,如果不同卡片不会对命令做出反应。这种机制实现了射频场中的卡片选择。

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Felica卡ID发送到带有IDm Reader应用的Web页面(支持写入ID和密钥) To exchange data with felica cards, you need Felica IDm Reader App for RC-S380. This extension helps you to sending and recieving data between web pages and reader app. Features: * Sending felica card IDm, random chalenge response to web pages from reader app. * Writing felica card user ID and Key with reader app. * The custom event 'getId' is fired when the data recieved, so you can run your own script when recieved data. * Veryfing random challenge response from the card.(Only for testing) --------------------- How to use --------------------- Please embed html elemnents with following id in your web pages. The option page and script of this extension is an example of usage, so please check it. "extension" means "Felica IDm Receiver Extension for RC-S380", "app" means "Felica IDm Reader App for RC-S380". Basically, extension sends requests to app, and recieves the result. *** Reading IDm *** (Both felica and felica lite-s available) input: startPolling : When it's clicked, extension makes app to start reading IDm. output: felicaIDm : IDm is inserted to the value of this element by extension. This extension fires 'getID' event in this element. *** Reading user ID *** (Only felica lite-s available) input: getCardId : When it's clicked, extension makes app to start reading IDm and user ID. output: felicaIDm : IDm and user ID are inserted together to the value of this element by extension. *** Writing user ID and Key *** (Only felica lite-s available) If you don't enter master key and car key version, only user ID will be written. You can't read card key written in the card directly. input: felicaUserId : 0 - 281474976710655 integral number felicaCKVInput : 0 - 65535 integral number felicaMasterKey : 24bytes hex number string writeCardId : When it's clicked, extension makes app to start writing user ID, card key version, and card key. output: felicaIDm : IDm and user ID are inserted together to the value of thi

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值