2

有没有人使用 Thingsquare Mist 应用程序成功完成 Cooja 模拟?

我尝试为各种 Mote 类型编译 hello-world 或 mesh-node 示例,但大多数都因缺少 ip64-conf.h 而失败(当然,因为 Mist 不支持目标)但那些具有某种Mist 端口(例如 exp2420)失败,因为应用程序无法放入 ROM。

我尝试操纵Compile commands选项卡上的行以使其为任何其他平台构建,但即使构建正常,Create按钮也永远不会启用。

我正在使用 Instant Contiki 2.6 环境并从 Thingsquare Mist 1.0.1 构建代码

4

1 回答 1

0

尽管 Thingssquare 的雾代码基于 Contiki 2.6,但您无法在即时 Contiki (cooja) 中编译 thingsquare 代码。目前mist中make文件的配置只支持cc1101、cc2420、cc2538和二三平台。请查看thingsquare网站了解详情。要做的事情。

  1. 您需要更改特定平台的模拟设置。不要浪费时间在 cooja 上运行雾应用程序;它不会编译。看看这个链接:https ://github.com/contiki-os/contiki/wiki/An-Introduction-to-Cooja#wiki-Create_a_Hello_World_simulation

  2. 用于最小化丢失的 ip64-conf.h。只需在 mesh-node 文件夹中创建一个 ip64-conf.h 文件并粘贴以下代码。

#ifndef IP64_CONF_H

#define IP64_CONF_H

#include "ip64-slip-interface.h"

#include "ip64-null-driver.h"

#define IP64_CONF_UIP_FALLBACK_INTERFACE_SLIP 1

#define IP64_CONF_UIP_FALLBACK_INTERFACE ip64_slip_interface

#define IP64_CONF_INPUT ip64_slip_interface_input

#define IP64_CONF_ETH_DRIVER ip64_null_driver

#endif /* IP64_CONF_H */

3.尽量减少ROM溢出错误;你需要安装msp430-gcc compile 4.7.0。看看这个链接:http ://wiki.contiki-os.org/doku.php?id=msp430x

于 2013-06-20T18:45:13.840 回答