0%

nfc

使用TagWriter制作一枚可以打开指定网站的NFC标签

nfc 标签

nfc app

iOS 13 开放了 NFC 标签读取功能,你的 iPhone 还能这么玩

具体操作

捷径 > 自动化 > 点击右上角 + 号 > 创建个人自动化;在弹出的动作选项「设置」分类下,找到「NFC」;点击「扫描」,将手机靠近 NFC 标签,建议贴紧;设备检测到 NFC 后弹出标签命名框,为标签命名,保存;选择读取 NFC 标签后的下一步操作,例如拨打电话、打开 WiFi、播放音乐等;去掉「运行前询问」的勾选,这是非常影响体验的关键步骤,如果运行前还要在手机上确认的话,NFC 标签的智能化就大打折扣了。

有,iphone6s怎么使用nfc功能教程
首先我们在手机打开桌面的——-【系统设置】功能键。

接着在常用选项栏目或全部选项下方查看,各个手机界面有所不同。
通常情况带有NFC功能的手机多见于内置在【无线网络】或WiFi的【更多。。。】子栏目下。

进入无线和网络更多。。栏目后就可以看见NFC功能的开启按钮了。
向右滑动即可打开NFC功能。

打开NFC按钮后点击进入NFC设置面页——【勾选】相应的模式即可。

开启NFC功能后,不仅能和另一部支持NFC的手机相互传送文件,还可以使用支持NFC芯片的公交卡、地铁、刷卡、支付宝读取等功能。前提是你所在的地方运营商已经支持NFC应用。

nfc功能目前只支持apple pay,苹果支付,没有其他意义

###iphone 用 NFC 标签配合快捷指令实现场景自动化

2019-09-11-nfc-1.jpg

分别是 NFC 卡片(有圆形也有矩形)、NFC 贴纸和 NFC 滴胶卡。我个人比较推荐的是后两种——贴纸和滴胶卡,它们在使用上会更灵活,贴纸可以贴在家里的任意位置2 ,滴胶卡则方便随身携带。这些 NFC 标签都非常便宜,每个在 1 块钱左右,有的还能定制外观。

iPhone 支持扫描多种 NFC 标签,包括比较流行的 NTAG、MIFARE、ICODE 等。我购买的是 NTAG 系列的标签,在淘宝等电商平台上也比较好购买。其中 NTAG 标签有 213、215、216 等型号,主要区别是储存容量的大小,一般买最小的 213 就足够使用。

Open browser on scan of NFC tag in Android

Open browser on scan of NFC tag in Android

That is because you are writing a text record with the text “http://www.google.com" to the tag. NFC devices usually do not know how to interpret text on tags (though they could just display that text – and some devices do exactly that).

What you want to do is create a record based on the NFC Forum’s URI Record Type Definition. The createRecord method could look like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
private NdefRecord createRecord(String uri) throws UnsupportedEncodingException {
byte[] uriBytes = uri.getBytes("UTF-8");
byte[] payload = new byte[1 + uriBytes.length];

// set prefix byte (see URI RTD for possibile values, we just use 0 indicating no prefix for now)
payload[0] = 0;

// copy uriBytes into payload
System.arraycopy(uriBytes, 0, payload, 1, uriBytes.length);

return new NdefRecord(NdefRecord.TNF_WELL_KNOWN,
NdefRecord.RTD_URI,
null,
payload);
}

Or you could just use Android’s built-in method:

record = NdefRecord.createUri(“http://www.google.com");

Regarding the detection on other devices: Using a MIFARE Classic tag on the S3 should work. The S4 (and any other device based on Broadcom’s NFC chipset) does not support MIFARE Classic at all, so you would need to switch to another tag technology to support those devices.


NFC标签上的URL与NFC标签上的纯文本消息不同。它们具有不同的消息类型。您的清单中列出了2个用于纯文本消息的意图过滤器(实际上不会触发最后一个过滤器,TAG_DISCOVERED意图将永远不会包含来自标记的任何数据)。
要匹配示例网址,请尝试:

1
2
3
4
5
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<data android:scheme="http" android:host="www.google.com" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>