查看Noduino OpenOnoff的源代码
←
Noduino OpenOnoff
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Hacking == === Prepare firmware === Get noduino-sdk: <source lang=bash> $ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk </source> Generate toolchain (you need Python 2.7): <source lang=bash> $ cd noduino-sdk/toolchain $ ./gen.py </source> Compile the firmware: <source lang=bash> $ cd ../sketch/open-onoff $ make </source> The generated firmware is located in build/ dir named user1.bin annnd user2.bin Window environment please refer to [[Getting Started with Noduino SDK on Windows]], you can get how to setup the basic developmennt environment <br><br> === Upload === ==== Serial ==== Same as OpenPlug, you can refer to the OpenPlug example: [[文件:Openplug-fw-upload.jpg | 800px]] [[文件:Ft232.jpg | 800px]] * USB2UART_GND ------> SmartNode_GPIO0 * USB2UAR_GND -----> SmartNode_GND * USB2UAR_RXD -----> SmartNode_TX * USB2UAR_TXD -----> SmartNode_RX Connect USB2UAR_VCC3.3 -----> SmartNode_VCC at last ESP8285 will be enter upload mode, we can upload the compiled firmware through serial using following commands in Linux: <source lang=bash> $ cd /path/to/noduino-sdk/sketch/open-onoff $ make produce ESPPORT=/dev/ttyUSB0 </source> In windows: <source lang=bash> $ make produce ESPPORT=COM7 </source> COM7 is your USB2UART device In MAC OS, maybe it's: <source lang=bash> $ make produce ESPPORT=/dev/cu.SLAB_USBtoUART </source> /dev/cu.SLAB_USBtoUART is your USB2UART device <br><br> ==== Online ==== ;; Access: http://dev.noduino.org/openonoff ;; Login: * Username: noduino * password: noduino1234 ;; Click the "Add files", select the user1.bin and user2.bin located in /path/to/noduino-sdk/sketch/open-onoff/build/ ;; Then click "Start upload" to upload the user1.bin and user2.bin into the server temporaily ;; Enter Official Account, then click "Add" menu, enter "Debug" page [[文件:Maike-upload-online-1.jpg | 450px]] ;; Select your device and the input "ota" in the data aera then click "send data" [[文件:Maike-upload-online-2.jpg | 450px]] Device will download your user1.bin or user2.bin and write it into flash when the device received the "ota" message You will see the device online message in the Debug page when the uploading is finished <br><br>
返回到
Noduino OpenOnoff
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面