NDEF record中的URL数据

来源:互联网 发布:微信客服系统 知乎 编辑:程序博客网 时间:2024/06/17 11:42

从BlackBerry 9900 dump出来的NFC Smart Tag数据中,URL部分是简写为代码的。


例子:

ID: 

Type: Sp
TNF: 1
Payload Len: 33
Hex Payload: 
91 01 10 55 1D 2F 53 44 
43 61 72 64 2F 64 64 64 
2E 6A 70 67 51 01 09 54 
02 7A 68 E5 9B BE E7 89 
87 
Character Payload: 
...U\x1D/SD
Card/ddd
.jpgQ..T
.zh.....

.


The URI Identifier Code is use to shorten the URI length, and can have any of the following values:

Value    Protocol-----    --------0x00     No prepending is done ... the entire URI is contained in the URI Field0x01     http://www.0x02     https://www.0x03     http://0x04     https://0x05     tel:0x06     mailto:0x07     ftp://anonymous:anonymous@0x08     ftp://ftp.0x09     ftps://0x0A     sftp://0x0B     smb://0x0C     nfs://0x0D     ftp://0x0E     dav://0x0F     news:0x10     telnet://0x11     imap:0x12     rtsp://0x13     urn:0x14     pop:0x15     sip:0x16     sips:0x17     tftp:0x18     btspp://0x19     btl2cap://0x1A     btgoep://0x1B     tcpobex://0x1C     irdaobex://0x1D     file://0x1E     urn:epc:id:0x1F     urn:epc:tag:0x20     urn:epc:pat:0x21     urn:epc:raw:0x22     urn:epc:0x23     urn:nfc:

Following the URI Identifier Code is the URI Field. This field provides the URI as per RFC 3987 and contains the rest of the URI after the value corresponding to the URI Identifier is prepended (unless the URI ID is 0x00, in which case the complete URI will be contained in the URI Field).



参考:

NDEF (NFC Data Exchange Format)数据格式说明