What is Zephyr?
Zephyr Project is a small, scalable real-time operating system for use on resource-constrained systems supporting multiple architectures. Developers are able to tailor their optimal solution. As a true open source project, the community can evolve the Zephyr Project to support new hardware, developer tools, sensor and device drivers. Advancements in security, device management capabilities, connectivity stacks and file systems can be easily implemented.
官方网站:https://www.zephyrproject.org/
开发环境
Ubuntu 14.04 LTS 32bit
Zephyr Kernel v1.5.0
官网下载那叫一个蜗牛啊!我以上传到微云 。
链接:http://share.weiyun.com/5a586306c22c9af133e39431a92735e6 (密码:MiWL)
安装要求与相关设置
Ubuntu安装所依赖的软件包:
$ sudo apt-get install git make gcc g++ python3-ply ncurses-dev
Zephyr开发工具包SDK
选用zephyr-sdk-0.8.2-i686-setup.run作为开发工具包,工具包支持以下架构:
IA - 32
ARM
ARC
下载链接:http://share.weiyun.com/c18e49c87076ef4190581c8a3320e127 (密码:N1BF)
运行安装SDK
$ chmod +x zephyr-sdk-0.8.2-i686-setup.run
$ ./zephyr-sdk-0.8.2-i686-setup.run
在安装过程中会出现安装路径选择,建议安装在个人主目录 /home/user/zephyr-1.5.0/zephyr-sdk (新建/home/user/zephyr-1.5.0目录)中,而非默认 /opt/zephyr-sdk/中。
-------------------------------------------------------
物联网操作系统-Contiki
What is Contiki?
Contiki is an open source operating system for the Internet of Things. Contiki connects tiny low-cost, low-power microcontrollers to the Internet. Contiki is a powerful toolbox for building complex wireless systems.
开始使用Contiki
官方:http://www.contiki-os.org/
开发环境:
宿主机:Windows 10 Pro 64-bit (10.0, Build 10586)
虚拟机:VMware® Workstation 11.1.1 build-2771112
集成环境:Instant Contiki 3.0,解压:
在VMware中新建虚拟机ubuntu_contiki,过程中使用Instant_Contiki_Ubuntu_12.04_32-bit.vmdk虚拟磁盘。
启动新建虚拟机ubuntu_contiki,登录密码为 user 。
使用Cooja:
$ cd contiki-3.0/tools/cooja
$ ant run
BUT 执行 ant run ,有如下报错:
解决办法:
在 https://github.com/contiki-os/mspsim.git 中下载mspsim-58f187351f3417814aa2d0d92af9e2bb768d92ee.zip文件;
解压,并拷贝到/contiki-3.0/tools/mspsim/ 目录下;
重新在/contiki-3.0/tools/cooja/ 下执行 ant run
仿真运行Contiki
创建一个新的仿真:
设置仿真选项:
添加 motes 到仿真
创建新的mote type ,选择一个应用及其源代码文件 (例如:ipv6 udp )
编译(点击Compile)、创建(点击Create)应用
添加节点仿真
开始(点击Start)、暂停(点击Panuse)仿真
运行Contiki 小例程
先运行一个hello world试试!
在目录/contiki-3.0/examples/hello-world 中,执行make
/contiki-3.0/examples/hello-world$ make
生成hello-world.native 文件,执行 ./hello-world.native
/contiki-3.0/examples/hello-world$ ./hello-world.native
清除执行:
/contiki-3.0/examples/hello-world$ meke clean
或者
/contiki-3.0/examples/hello-world$ make distclean
说明:make clean仅仅是清除之前编译的可执行文件及配置文件。而make distclean要清除所有生成的文件。
from https://archive.is/FjHyl
https://www.xitongjiaocheng.com/linux/2017/43230.html
No comments:
Post a Comment