【发布时间】:2019-03-27 06:49:38
【问题描述】:
我有一张 Mifare ULC 卡。当我将此卡点击到启用 NFC 的设备时,它应该在手机中打开默认浏览器,而无需任何额外的 NFC 应用程序。
我已将以下 NDEF URL 数据编码到标签中,但是当我扫描标签时,它并没有打开浏览器。谁能指导我在哪里做错了?
03 - tag for the NDEF
12 - length of the NDEF msg (18 Bytes)
D3 Record header (of first and only record)
Bit 7 = MB = 1: first record of NDEF message
Bit 6 = ME = 1: last record of NDEF message
Bit 5 = CF = 0: last or only record of chain
Bit 4 = SR = 1: short record length field
Bit 3 = IL = 0: no ID/ID length fields
Bit 2..0 = 011 = 0x3: Absolute URI Record type
01 Type Length = 1 byte
0E Payload length = 14 bytes
55 Type field "U" (in US-ASCII) = for URI record
02656E02676F6F676C652E636F6D Payload field (decoded according to the value of the Type field)- 14 Bytes
02 Status byte
Bit 7 = 0: Text is UTF-8 encoded
Bit 6 = 0: Not used
Bit 5..0 = 0x02: Length of IANA language code field
656E IANA language code field
"en" (in US-ASCII) = Text is in English
02676F6F676C652E636F6D URL 0x02 = https://www. (URI identifier code) + 676F6F676C652E636F6D = google.com
"https://www.google.com" (in UTF-8)
【问题讨论】:
标签: tags format nfc mifare ndef