查看WiFi 智能插座的源代码
←
WiFi 智能插座
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Quick Start == === 准备一片通用模块 === [[文件:General-plug.gif]] [[文件:Esp8266-switch-module.jpg]] https://item.taobao.com/item.htm?id=522098524264 <br> === 准备 SDK === <source lang=bash> # clone the whole sdk $ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk $ cd noduino-sdk/toolchain $ ./gen.py # generate the toolchain (you need Python 2.7) </source> 更多参考: * [[Getting Started with Noduino SDK on Linux]] * [[Getting Started with Noduino SDK on Mac OS X]] * [[Getting Started with Noduino SDK on Windows]] <br> === 刷写固件 === 进入插座参考设计,编译固件: <source lang=bash> $ cd ../sketch/plug $ make </source> 准备一个 USB 转串口板,此处我们使用一个 FT232RL USB 转串口板 [[文件:Ft232.jpg]] 用杜邦线把模块引脚按如下规则连上 USB 串口模块和通用插座模块: * USB_VCCIO ---> VCC * USB_RXD ---> TX * USB_TXD ---> RX * USB_GND ---> GND 长按住背面的小按钮开关、通电即进入刷机模式,然后确认一下你的USB转串口的串口设备号,如 Windows 下为 COM6,则: <source lang=bash> $ make flash ESPPORT=COM6 </source> <br> === 控制演示 === 上传完之后,打开微信,扫一扫如下二维码,关注公众号: [[文件:Wechat-qcode-maike.jpg]] 进入公众号后,点下方菜单: 探索 ---> 添加设备: [[文件:Wechat-airkiss-add.jpg | 450px]] 点 ”开始配置“ 后: [[文件:Wechat-airkiss-wificonfig.jpg | 450px]] 然后,进入公众号菜单的“探索”--》我的设备 --》插座 即可控制 <br><br> == 小K mini 微信控制 == 2015 年新的小 K 插座,全部使用 ESP8266 方案,由于芯片需求量大,小 K 要求 ESP8266 的厂家乐鑫打成了小 K 的 LOGO 默认串口波特率 74880,上电输出: <source lang=bash> ets Jan 8 2013,rst cause:1, boot mode:(3,0) load 0x40100000, len 612, room 16 tail 4 chksum 0x12 load 0x3ffe8000, len 788, room 4 tail 0 chksum 0x50 load 0x3ffe8314, len 264, room 8 tail 0 chksum 0x4a csum 0x4a 2nd boot version : 1.1 SPI Speed : 40MHz SPI Mode : SPI Flash Size : 8Mbit jump to run user2 pp_task_hdl : 3fff59b8, prio:14, stack:512 pm_task_hdl : 3fff63b0, prio:1, stack:176 ApiMsgMutex created idle_task_hdl : 3fff80a8 tim_task_hdl : 3fff83c0 xPortStartScheduler frc2_timer_task_hdl:3fff9018, prio:12, stack:200 OS SDK ver: 0.0.8 compiled @ Apr 16 2015 19:50:09 phy ver: 273, pp ver: 8.3 mode : sta(18:fe:34:f6:44:d1) add if0 scandone del if0 usl sul 0 0 add if0 scandone scandone add 0 aid 5 connected with Noduino-AP, channel 7 dhcp client start... cnt ip:192.168.1.50,mask:255.255.255.0,gw:192.168.1.1 </source> <br><br> == Reference == * miniK: http://bbs.mydigit.cn/read.php?tid=1327613 * 云合:http://bbs.mydigit.cn/read.php?tid=1449956 * ORVIBO: http://bbs.mydigit.cn/read.php?tid=1320858 * 海尔: http://bbs.mydigit.cn/read.php?tid=1098323 * D-Link: http://bbs.mydigit.cn/read.php?tid=865037 * 插排:http://bbs.mydigit.cn/read.php?tid=1291309 <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>
返回到
WiFi 智能插座
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面