通过NFC标签无需特殊应用程序分享的WiFi凭据凭据、应用程序、特殊、标签

2023-09-04 23:51:42 作者:只能亲一囗哦

我要寻找一种方式来创建一个NFC标签共享我的网络的WiFi凭据没有我的客人不必对他们的手机任何特殊的NFC应用程序(而不是用什么手机未来的除外)。 我一直在寻找的应用程序和服务,如NFC标签作家,WifiTap,NFC任务启动和NFCLabels.com,但在我看来,喜欢它,我需要对客户的移动应用程序的同时,能够使用它,但我不能够测试它,因为我只有一个可用的NFC功能的手机。 (是的,我知道,扭我的脑子了什么,但心里很不舒服,怪异的行为是什么新鲜事......)

I am looking for a way to create a NFC-tag that shares the wifi credentials of my network without my guests having to have any special NFC apps on their phone (other than whats coming with the phone). I have been looking at apps and services like NFC Tag Writer, WifiTap, NFC Task Launcher and NFCLabels.com, but it seems to me like it I would need to have the apps on the guest mobile as well to be able to use it, but I am not able to test it as I only have one NFC-enabled phone available. (Yes, I know, twisting my brains for nothing, but heck, weird behaviour is nothing new...)

我最亲密的线索就是WifiTap指出:

My closest clue is that WifiTap states that:

该应用程序处理的WiFi格式的URI:// [网络SSID] / [WEP | WPA |开] / [网络密码]

The app processes URIs in the format of wifi://[network ssid]/[wep|wpa|open]/[network key]

如果这其实是普遍的,这将意味着我可以做什么,我什么,我想,但我还没有发现有这方面的确认。那么,怎么可能是我想要的工作要做,我是在正确的轨道与WifiTap线索?

If this is actually universal this would mean that I could do what I what I want to, but I have not found any confirmation on this. So, how could what I want be done and am I on the right track with the clue from WifiTap?

推荐答案

没有为这种情况的官方标配​​:的 NFC论坛连接移交技术规范的。然而,这是目前不支持的Andr​​oid。我不认为有任何目前方式转让使用NFC无线凭据没有一个专门的应用程序的帮助。

There is an official standard for this kind of situation: NFC Forum Connection Handover Technical Specification. However, this is currently not supported by Android. I don't think there is currently any way to transfer WiFi credentials using NFC without the help of a dedicated app.

一个要对这个办法是在谷歌Play商店具有以下属性创建(或查找)的应用程序:

One way of going about this is to create (or find) an app in the Google Play Store that has the following properties:

意图过滤器ACTION_NDEF_DISCOVERED并作为URI Play商店应用程序的URL。 意图过滤器ACTION_NDEF_DISCOVERED和类型一些专有类型(如MIME类型)

然后,您可以创建标签包含以下NDEF记录的NDEF消息:

Then you can create tags with an NDEF message containing the following NDEF records:

与Play商店URI和一些描述性文字(应用程序中,例如姓名) SmartPoster记录 在专有类型包含了WiFi凭证记录 Android对于App应用程序记录 SmartPoster record with Play Store URI and some descriptive text (e.g. name of the app) Record of proprietary type containing the WiFi credentials Android Application Record for the app

第三记录将确保适当的应用程序将始终启动或设备用户将被重定向到Play商店来安装它。这仅适用于ICS,但是,但是第一个记录(与第1意图过滤器组合)有异曲同工之妙的姜饼。

The 3rd record will make sure that the proper app will always be started or the device user will be redirected to the Play Store to install it. This works only on ICS, however, but the 1st record (combined with the 1st intent filter) serves the same purpose on Gingerbread.

 
精彩推荐