无线自动连接的二维码规则

二维码

http://www.baike.com/wiki/%E4%BA%8C%E7%BB%B4%E7%A0%81

二维条码/二维码(2-dimensional bar code)是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形记录数据符号信息的;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电扫描设备自动识读以实现信息自动处理:它具有条码技术的一些共性:每种码制有其特定的字符集;每个字符占有一定的宽度;具有一定的校验功能等。同时还具有对不同行的信息自动识别功能、及处理图形旋转变化点。

http://pro.wwei.cn/open/qrcode_format.html

二维码(Quick Response Code),又称二维条码,在现代商业活动中,可实现的应用十分广泛,如:产品防伪/溯源、广告推送、网站链接、数据下载、商品交易、定位/导航、电子商务应用、车辆管理、信息传递等,随着国内物联网产业的蓬勃发展,更多的二维码技术应用解决方案被开发,二维码成为移动互联网入口真正成为现实。

通用格式

http://pro.wwei.cn/open/qrcode_format.html

类型

 说明
文本 text 直接生成,无需处理
网址 url 直接生成,无需处理(如果前缀加上url:在微信中不能自动跳转)
名片 mecard MECARD:N:小明;TEL:13723456789;EMAIL:payonesmile@qq.com;ADR:广州天河区;ORG:xx有限公司;URL:http://pro.wwei.cn/;NOTE:QQ:13783821;
电话 tel tel:13723456789
邮箱 mail mailto:payonesmile@qq.com
短信 sms smsto:13723456789:短信内容
无线网络 WIFI WIFI:S:CMCC;P:123456;T:WPA/WPA2;

无线连接格式

http://blog.csdn.net/jeffasd/article/details/50129621

获取Wifi配置(Android)

{WIFI:T:WPA;S:mynetwork;P:mypass;;}

相关参数说明:

参数  例子  说明
T   WPA 认证类型: WEP 或WPA, ‘nopass’ 代表无需认证
S   network 无线网络的 SSID. (例如 “ABCD”)
P   mypass  无线网络的密码,如果无需认证则忽略此项 (例如 “pass”)
H   true    可选。针对隐藏了SSID的网络

二维码WIFI自动连接生成格式

WIFI:T:WPA;S:MM;P:123456;H:true;  (H:为隐藏SSID,可选)

WIFI:S:MM;T:nopass;P:123456;

谷歌库实现wifi格式,以及其他格式:

https://github.com/zxing/zxing/wiki/Barcode-Contents

Wifi Network config (Android)

We propose a syntax like "MECARD" for specifying wi-fi configuration. Scanning such a code would, after prompting the user, configure the device's wi-fi accordingly. The only client that implements this at the moment is for Android. Example:

WIFI:T:WPA;S:mynetwork;P:mypass;;
ParameterExampleDescription
T WPA Authentication type; can be WEP or WPA, or 'nopass' for no password. Or, omit for no password.
S mynetwork Network SSID. Required. Enclose in double quotes if it is an ASCII name, but could be interpreted as hex (i.e. "ABCD")
P mypass Password, ignored if T is "nopass" (in which case it may be omitted). Enclose in double quotes if it is an ASCII name, but could be interpreted as hex (i.e. "ABCD")
H true Optional. True if the network SSID is hidden.

Order of fields does not matter. Special characters "", ";", "," and ":" should be escaped with a backslash ("") as in MECARD encoding. For example, if an SSID was literally "foo;baraz" (with double quotes part of the SSID name itself) then it would be encoded like: WIFI:S:"foo;bar\baz";;

网站生成

http://club2011.auto.163.com/post/100010081560.html

库生成

zxing

https://github.com/zxing/zxing

扫描软件

http://www.zhihu.com/question/20960810

android上Barcode Scanner是可以扫了直接连接的。

原文地址:https://www.cnblogs.com/lightsong/p/6063685.html