如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

Near-Field Communication, or NFC, is an incredibly useful technology that gets ignored far too often. While it can be used for advanced automation of things on your Android phone, it can also be used for equally simplistic stuff, like easily sharing your home Wi-Fi data with friends.

近场通信(NFC )是一项非常有用的技术,经常被忽略。 尽管它可以用于Android手机上的事物的高级自动化 ,但它也可以用于同样简单的事物,例如轻松与朋友共享您的家庭Wi-Fi数据。

你需要什么 (What You’ll Need)

NFC, as we’ve discussed before, allows you to tap your phone to an NFC-enabled object—like a pastic “tag”—and have it perform a certain action on your phone. This is what allows you to pay for your groceries with Android Pay, and perform other similar tasks. But by buying some NFC tags online, you can customize them to perform nearly any action you want.

如前所述 ,NFC允许您将手机轻触到启用NFC的对象(例如粘贴“标签”),并使其在手机上执行某些操作。 这就是您可以使用Android Pay为杂货付款并执行其他类似任务的原因。 但是,通过在线购买一些NFC标签,您可以自定义它们以执行几乎任何所需的操作

Before we get into the specifics of this trick, let’s first talk about what you’ll need to get started. First, you’ll need a compatible phone. Basically nearly all modern Android phones should have NFC capabilities, but you can jump into Settings > More (under the “Wireless & networks” section)—if “NFC” is an option here, then your phone has it. If not, well, it doesn’t. Easy enough.

在详细介绍此技巧之前,让我们先谈谈开始所需的知识。 首先,您需要一部兼容的手机。 基本上,几乎所有现代Android手机都应具有NFC功能,但是您可以跳到“设置”>“更多”(在“无线和网络”部分下)—如果此处可以选择“ NFC”,那么您的手机就可以了。 如果不是,那么就不会。 很简单。

Next, you’ll need to get some NFC tags. If you all you ever plan on doing is adding simple things like Wi-Fi, then almost any model of NFC tag will work—just search Amazon for “NFC tags” and they’ll probably work. If you want to eventually used NFC tags to do more advanced things, then you’ll want to get more modern tags that have higher capacity—these are known as “NTAG216” chips. If you don’t know what to buy, just buy these—if you’re having a hard time finding them, NTAG213 is also a good choice.

接下来,您需要获取一些NFC标签 。 如果您打算做的所有事情就是添加简单的功能(例如Wi-Fi),那么几乎任何型号的NFC标签都可以使用-只需在亚马逊上搜索“ NFC标签”,它们就可以使用。 如果您最终希望使用NFC标签来做更多高级的事情,那么您将想要获得具有更高容量的更现代的标签,这些标签被称为“ NTAG216 ”芯片。 如果您不知道要买什么,只需购买它们-如果您很难找到它们, NTAG213也是一个不错的选择。

Once you have your tags in hand, you’ll need to install an app on your phone to interface with these tags—most need to be erased before they can be re-written. I generally use NFC Tools to do this, as it’s easy to use and does essentially everything you could want it to do.

拿到标签后,您需要在手机上安装一个应用程序才能与这些标签交互-多数情况下,必须先擦除它们才能重写它们。 我通常使用NFC工具来执行此操作,因为它易于使用,并且可以完成您可能希望执行的所有操作。

第一步:擦除您的NFC标签 (Step One: Erase Your NFC Tag)

Okay, now that you have everything you need, fire up NFC Tools. There will be a quick tutorial the first time you run it—read it, skip it…do whatever you want. We’re only using it for one thing: erasing your new tag. With NFC Tools open, navigate to the “Other” tab, then select the “Erase tag” option. It will tell you to “approach an NFC tag.”

好的,既然您拥有所需的一切,请启动NFC工具。 首次运行时,将有一个快速教程-阅读,跳过它...做任何您想做的事情。 我们仅将其用于一件事:删除新标签。 在NFC工具打开的情况下,导航到“其他”标签,然后选择“擦除标签”选项。 它将告诉您“接近NFC标签”。

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签
如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

This can be the tricky part: depending on your device, the NFC chip will vary in location, so you may have to move the tag around on the back of your device a little bit. It will give an audible notification once you’ve found the right spot, and it should only take a split second to erase the tag. Once it’s finished, the app will let you know.

这可能是棘手的部分:根据您的设备,NFC芯片的位置会有所不同,因此您可能需要在设备背面稍微移动一下标签。 找到正确的位置后,它会发出声音通知,并且只需要花一秒钟的时间即可删除标签。 完成后,该应用程序将通知您。

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

第二步:将Wi-Fi数据写入NFC标签 (Step Two: Write the Wi-Fi Data to Your NFC Tag)

Now that you have a blank tag to work with, jump back into the Settings menu, then into Wi-Fi. A lot of NFC tricks require a separate app, but if you want to write Wi-Fi data, the functionality is built right into Android.

现在您有了一个空白标签,可以跳回到“设置”菜单,然后再进入Wi-Fi。 许多NFC技巧都需要一个单独的应用程序,但是如果您要编写Wi-Fi数据,则该功能内置于Android中。

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签
如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

In this menu, long-press on the network that you want to write its data to the NFC tag. A handful of options will show up, but you want “Write to NFC tag.” Tap it.

在此菜单中,长按要在网络上将其数据写入NFC标签的网络。 将会显示一些选项,但您需要“写入NFC标签”。 点一下

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签
如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

The next menu will ask you to input the network’s password. Go ahead and enter that, then tap the “Write” option.

下一个菜单将要求您输入网络的密码。 继续输入,然后点击“写入”选项。

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

A screen will appear that shows the device it looking for the tag. Tap the tag on the same spot you did earlier to erase it, and within seconds the phone will let you know that writing the network was a success.

将出现一个屏幕,显示正在寻找标签的设备。 在您之前删除的同一位置上点击标签以将其擦除,然后电话会在几秒钟内告知您编写网络成功。

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签
如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

And that’s that. The next time someone comes over that needs to log in to your network, have them tap their Android phone to the tag. The phone should ask if they want to connect—all they have to do is tap “Connect.” Bam.

就是这样。 下次有人需要登录到您的网络时,请他们将其Android手机轻触到标签。 电话应询问是否要连接-他们要做的就是点击“连接”。 am

如何创建将任何Android手机连接到Wi-Fi网络的NFC标签

翻译自: https://www.howtogeek.com/278104/how-to-create-an-nfc-tag-that-connects-any-android-phone-to-a-wi-fi-network/