Getting Started with Noduino SDK on Linux

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(尝试 Noduino SDK)
(尝试 Noduino SDK)
 
(未显示1个用户的10个中间版本)
第1行: 第1行:
 
== 准备 ==
 
== 准备 ==
  
准备一块 Noduino Falcon / nodemcu v1.0 开发板,一根 micro USB 连接线:
+
准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线:
  
[[文件:Nodemcu-v1.0-board.jpg | 600px]]
+
[[文件:Falcon-v1.0-1000.jpg | 600px]]
  
[[文件:Noduino-falcon-v0.9-800.jpg | 600px]]
+
[[文件:Falcon-v2.4-800-wiki.png | 600px]]
  
  
第26行: 第26行:
 
<source lang=bash>
 
<source lang=bash>
 
# clone the whole sdk
 
# clone the whole sdk
$ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk
+
$ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk
 
$ cd noduino-sdk/toolchain
 
$ cd noduino-sdk/toolchain
 
$ ./gen.py
 
$ ./gen.py
第37行: 第37行:
 
# try the first example
 
# try the first example
 
$ cd ../example/noduino/blink
 
$ cd ../example/noduino/blink
$ make
+
</source>
  
 +
 +
编译、上传:
 +
 +
<source lang=bash>
 
# upload the example to dev board through serial
 
# upload the example to dev board through serial
 
$ make flash
 
$ make flash
 
</source>
 
</source>
 +
 +
不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,Linux 下 Falcon 开发板可能被识别为 /dev/ttyUSB1(dmesg 查看),则:
 +
 +
<source lang=bash>
 +
$ make flash ESPPORT=/dev/ttyUSB1
 +
</source>
 +
  
 
上传完之后,你会很快看到板子上的蓝色 LED 开始在慢闪(大概 2s 间隔)
 
上传完之后,你会很快看到板子上的蓝色 LED 开始在慢闪(大概 2s 间隔)
第63行: 第74行:
  
  
;;ESP8266 的各种问题参考:
+
;;更多问题参考:
  
* [[ESP8266]]
+
* [[Noduino]]
  
  

2018年4月23日 (一) 20:19的最后版本

[编辑] 1 准备

准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线:

Falcon-v1.0-1000.jpg

Falcon-v2.4-800-wiki.png


开发板使用 CP2102 这颗 USB 转串口芯片,Linux 系统下无需额外安装驱动,插上开发板后,系统自动将其识别为 /dev/ttyUSB0 这个串口设备:

comcat@jackslab:/work/xwifi/noduino$ dmesg|tail -n 6
[254109.926619] usb 4-1: Product: CP2102 USB to UART Bridge Controller
[254109.926625] usb 4-1: Manufacturer: Silicon Labs
[254109.926630] usb 4-1: SerialNumber: 0001
[254109.931456] cp210x 4-1:1.0: cp210x converter detected
[254110.044391] usb 4-1: reset full-speed USB device number 22 using uhci_hcd
[254110.192809] usb 4-1: cp210x converter now attached to ttyUSB0



[编辑] 2 尝试 Noduino SDK

# clone the whole sdk
$ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk
$ cd noduino-sdk/toolchain
$ ./gen.py
# generate the toolchain (you need Python 2.7)

尝试点灯的例子

# try the first example
$ cd ../example/noduino/blink


编译、上传:

# upload the example to dev board through serial
$ make flash

不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,Linux 下 Falcon 开发板可能被识别为 /dev/ttyUSB1(dmesg 查看),则:

$ make flash ESPPORT=/dev/ttyUSB1


上传完之后,你会很快看到板子上的蓝色 LED 开始在慢闪(大概 2s 间隔)



[编辑] 3 扩展阅读

产品级开发建议使用我们的专业 SDK:


学习、研究、创客可以尝试:


更多问题参考:








个人工具
名字空间

变换
操作
导航
工具箱