问题标签 [contiki-ng]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
34 浏览

texas-instruments - 如何在 CC2650 Launchpad 上读取 DHT11 传感器,运行 ContikiNg OS 网络演示示例?

我想在 TI CC2650 Launchpad 中添加一个 DHT11 传感器,它从 Contiki-Ng OS 运行 web-demo-example

0 投票
1 回答
131 浏览

c - Contiki 中的数据包转发事件

我正在做一些关于 RPL 中的蠕虫攻击检测的工作。在 RPL 中,客户端之间的通信可能是多跳的,数据包要经过许多节点。

但是,只有接收方tcpip_event接收到数据包。路由经过的节点不会得到这个事件。有没有办法检测中间节点上的数据包?

0 投票
1 回答
90 浏览

contiki - Contiki找邻居

我想查找或列出我所有的邻居节点。它应该是节点的广播或单播过程。如何使用 Contiki 找到它们?有什么功能吗?

0 投票
0 回答
123 浏览

c - Contiki cooja 中的计时器

我想设置一个计时器并检查它是否在下一次调用函数时过期coap_send_transaction()。我怎样才能做到这一点?

0 投票
0 回答
33 浏览

c - Cooja 模拟器 clock_time 函数没有被模拟

因此,当我在我的代码中使用clock_wait() 函数时,cooja 模拟器不会像实时那样模拟clock_wait 的模拟时间,例如,如果我输入clock_wait(128),我将不得不实时等待1 秒,这样模拟可以继续,是否有任何解决方案或类似于clock_wait()的功能

0 投票
1 回答
112 浏览

contiki - 有没有办法设置计时器而不必将其放入 Contiki OS 的进程中?

是否可以在没有任何过程的情况下执行下面的代码?我需要一个超时而不用 Contiki 进程包围它。这可能吗?

0 投票
1 回答
46 浏览

contiki - Contiki-NG RE-Mote 板:收音机一直在收听

我想使用 energest 来测量我的应用程序的能耗。然而,我发现收音机几乎总是在收听,因为 RX energest 值非常接近我测量的 Rtime 间隔。我想问你我是否应该在板上使用低功耗模式,以便我强制无线电停用并降低能耗。如果我真的需要使用 RAM,我可以使用 PM0 吗?我问你是因为链接器在只有 PM1 可以访问 32k RAM 的头文件中添加了注释,并绕过了定义的宏:#define LPM_CONF_MAX_PM 0。谢谢。

0 投票
0 回答
44 浏览

docker - 在 macOS 上运行 Contiki 容器

我正在尝试使用此处的说明在 macOS 上运行 Contiki 。那里写着“可以在工具/docker下的Contiki-NG存储库中找到Dockerfile”,我正在使用它。尝试运行容器时,我收到以下消息:

“警告:请求的图像平台 (linux/386) 与检测到的主机平台 (linux/amd64) 不匹配,并且未请求特定平台”

0 投票
0 回答
39 浏览

docker - 基于 64 位 CPU 的 Contiki(基于容器)开发

由于 Dockerfile 中指定的 i386 CPU 架构,Contiki 建议的 Docker 映像无法为 macOS 构建。i386 与 Mac 上的 64 位 CPU 不兼容(Windows 可能会出现同样的问题)。我认为,如果开发人员可以简单地下载一个 Contiki 容器以在现代 CPU 上进行本地开发,那将非常有帮助,我将很乐意设计和贡献它。

突出的问题是为什么 Contiki 容器被迫采用 i386 架构?是因为我们希望容器在 RPi 等计算机上运行吗?

现在我正在考虑两种解决挑战的方法,并且很高兴听到更多的想法。

  1. 在 macOS 上运行 32 位 VM,并让 Contiki Docker 容器在其中运行。但这似乎虚拟化了太多层。对这种方法有任何反馈吗?
  2. 构建一个可以在多种架构上运行的容器。我已经开始朝这个方向发展,但在容器构建期间遇到了安装问题libcanberra-gtk-module:i386(在Contiki Dockerfile中指定)。
0 投票
1 回答
50 浏览

java - Moving more than one node simultaneously in contiki-os (Mobility)

Do the lines need to be in time order? e.g.

#node time(s) x y

0 1.1 50.26 139.3

1 1.1 55.26 144.3

0 1.3 60.26 153.1

1 1.3 65.26 158.1 ...

I've only done single-node movement myself, but that's what I'd guess based on the error you're getting.

Hi everyone,

I have been able to incorporate the mobility plugin with Cooja and am able to make a single node traverse a particular path (via specifying the time instants and coordinate positions in the 'positions.dat' file).

I now wish to enable two or more nodes to move simultaneously along different paths.

Is this possible in Cooja? I have tried to write the contents of the positions.dat file in the following manner to achieve it but either only one node would move at a time or the 'java.lang.RuntimeException: Next event is in the past' error is encountered.

#node time(s) x y

0 1.1 50.26 139.3

0 1.3 60.26 153.1

0 1.5 70.26 174.1

0 1.7 50.26 139.3

1 1.1 55.26 144.3

1 1.3 65.26 158.1

1 1.5.26 179.1

1 1.7 85.26 144.3

Any information regarding the above would be highly appreciated.