Questions tagged [contiki-ng]
The contiki-ng tag has no usage guidance, but it has a tag wiki.
65
questions
0
votes
0
answers
17
views
increasing the value of the packet during packet transmission (Contiki-ng)
I'm trying to learn Contiki-ng.
In the rpl-udp example, I want to make changes to the packet while forwarding the packet between nodes. Can you help with this?
1st mote client
2.3.4.5.6. nodes ...
-2
votes
0
answers
44
views
Receiving garbage from USB port on Raspberry Pi
I am getting garbled output from a Nordic nRF52840 DK mote. It is connected to a USB port on Raspberry Pi 3 Model B V1.2. The code does nothing much beyond printing a log line every 10 seconds, and ...
0
votes
0
answers
17
views
Does contiki-ng require extern RTC oscillator/crystal
I have custom board based on CC1310F64RHB (32 pin) without external crystal for rtc. It works well with 'normal' CCS and Energia projects. Now, I try to implement contiki-ng on it. SO, I adapt and ...
0
votes
0
answers
15
views
Renode's terminal and node's window not opening in Contiki-ng
I'm trying to use Renode inside the Conitiki-ng container, I followed this tutorial https://docs.contiki-ng.org/en/develop/doc/tutorials/Running-Contiki-NG-in-Renode.html and while everything "...
0
votes
1
answer
24
views
cooja : Simulation stopped due to error: Event is already scheduled: DELAY
I am trying to use Cooja simulator on Contiki-ng and I have sensors such as this one:
'''
#include "contiki.h"
#include <stdio.h>
#include <stdlib.h>
#include "sys/etimer.h&...
0
votes
0
answers
16
views
fatal error: dtls-support-conf.h: No such file or directory - Contiki-Ng, Cooja
I am trying to run:
make TARGET=native client
in this directory:
:~/contiki-ng/bpmac-master$
But I am receiving this error:
MKDIR build/native/obj/.deps
CC client.c
In file included ...
0
votes
1
answer
88
views
Why is my Cooja simulator's RPL border router (sky mote) not transmitting packets to the HTTP server via serial communication but the Cooja mote is?
I am new to using the Contiki-NG OS and the Cooja simulator. I was following a tutorial from this link and the steps I followed are:
I created an RPL border router mote (sky mote) from the example ...
0
votes
1
answer
64
views
Is is possible to switch between radios in Contiki NG during runtime (change NETSTACK_RADIO struct)?
I am having difficulty changing the NETSTACK_RADIO struct in Contiki NG to switch between 2 radios with Zolertia Firefly, since it is defined as preprocessor directives.
/* Radio driver configuration. ...
0
votes
0
answers
39
views
how can i load different code for each node in contiki-ng?
i want to implement different rule and conditions in contiki-ng core OS for each node in the network base on node_id.
how can implement this without change core OS for each node?
something like:
```if(...
0
votes
0
answers
62
views
connectionless ble in contiki-ng not present
I'm looking to observe BLE behaviour by running the contiki-ng example with NullNet, broadcast. I'm aware connectionless ble relies on scanning requests from the master and scan responses for the ...
0
votes
0
answers
61
views
Problem in compiling hello-world.c file to add SKY mote in Cooja
I am trying to create a IoT network on Cooja using SKY mote. I add a SKY mote and when it wants me to give it the address of a Contiki process/firmware, I give the hello-world.c file (contiki-ng/...
0
votes
0
answers
107
views
How can I combine RPL, UDP and MQTT in Cooja of Contiki-NG?
All this is done in the Cooja simulation.
I need to develop a project in which I have a mote (or many) that acts like a sensor and sends data to a server which does computations and publishes the ...
0
votes
0
answers
43
views
contiki-ng : actuating practice
insung@ubuntu:~/actuating$ make TARGET=zoul
LD build/zoul/remote-revb/actuating.elf
build/zoul/remote-revb/obj/actuating.o: In function `process_thread_sensing_process':
actuating.c:(.text....
0
votes
0
answers
60
views
What is the difference between cc26x0-cc13x0 platform and simplelink platform in Contiki-NG
I am really confused with the contiki-NG platform naming. I am new to contiki-NG so after reading their docummentation i bought the CC2650 LaunchPad.
I decided to build the BLE-IPV6 examples in ...
0
votes
0
answers
20
views
Reassembly of IPV6 packets might not work?
I think it should be possible to send long ICMP ping or UDP from Host to node from Host.
( UIP_CONF_IPV6_REASSEMBLY =1)
MTU is set 1500 bytes on the host ( via tunslip6 ) and on node UIP_LINK_MTU 1500....
0
votes
0
answers
17
views
How to exclude all uart debug traces ( security, code size, release of application )?
I'm looking for official way in Contiki-NG for exclude all debug traces from code (security, code size, release version of application).
I have used extra definition in my Makefile
-DLOG_CONF_OUTPUT=&...
1
vote
0
answers
38
views
Using an Openmote-B ADC
I'm working on signal acquisition and transmission using Openmote-B. I have an analogue signal from a sensor, that is to be transmitted using an openmote. Is it possible to directly feed the analog ...
2
votes
0
answers
87
views
dht11 sensor timed out with cc2650 launchpad
I'm running launchxl-cc2650 on Contiki to read temperature and humidity value from dht11 sensor. Build with Contiki, and flash with ti programmer 2. But my board can't seem to read the value of the ...
1
vote
1
answer
36
views
Does contiki-ng support UIP_REASSEMBLY?
I can see in uipopt.h
#define UIP_REASSEMBLY (UIP_CONF_REASSEMBLY)
But no code about it in uIP stack.
It means no way to send ICMP/UDP with size > (MTU - header) from Host to node and between ...
1
vote
1
answer
291
views
Contiki-NG Cooja simulator fails to start
I have installed Contiki-NG on Ubuntu VMware Player and have been struggling to run it using ant run command following is the whole terminal code:
layla@ubuntu:~/contiki-ng/tools/cooja$ ant run
...
1
vote
0
answers
293
views
JAVA Simulation error when using Cooja mote in Contiki-ng
I'm trying to do a simulation in Cooja simulator, Contiki-ng using cooja motes and CSMA and the energest model.
Even though the simulation works well in Z1 mote with cooja motes the simulation stops ...
0
votes
1
answer
155
views
How to get routes of the DODAG at the root?
I'm using contiki-ng with the TI Simplelink CC1310 and with RPL in non-storing mode and my objective is to get the routes of the DODAG at the root of the network in order to know which nodes are ...
0
votes
1
answer
329
views
How to make downward connection in Contiki-NG with UDP
I'm trying to make a simple mesh connection using 6LoWPAN with Contiki.
For simplicity I'm making this in Cooja, so the hardware is not a constrain in this problem i think.
My objective is to have one ...
2
votes
0
answers
168
views
Connect two native Contiki NG motes over SLIP
Since the RPL border router example works as either a Cooja mote or a native mote, I thought using the SLIP code in /services/rpl-border-router/native might work. I made a copy of hello-world. I ...
2
votes
1
answer
262
views
How can I build with ant as a normal user (no need for sudo) COOJA
Recently I started working on a project in IoT, using contiki-ng.
The problem I faced is when I tried to run cooja with:
$ ant run
under ~/contiki-ng/tools/cooja.
the build failed
$ ant run
Picked up ...
0
votes
1
answer
92
views
Remove route in Contiki
I am trying to remove a route in Contiki if attack is detected. I am using struct route_entry *e; route_remove(e);
But I am getting the following error: undefined reference to 'route_remove'.
0
votes
1
answer
144
views
Dropping only UDP packets in RPL
1)I am trying to drop only UDP packets in RPL in Contigi-ng OS.
I modified the code in/contiki/core/net/tcpip.c as:
...
static void
packet_input(void)
{
#if DEST_PORT_IS_MAL_DROP
...
0
votes
1
answer
175
views
Application level packets, parent address, RPL Contiki-ng
I know the answer to this question theoretically, but I want to know where to access the info in code level.
So let's say in the example rpl-udp, when the client sends a message to the server, ...
1
vote
1
answer
150
views
How to disable Trickle Timer in Contiki-NG?
I have one question for you. I want to disable the trickle timer in the rpl-mrhof.c file. I defined one flag name as Trickle_flag. I want to disable the Trickle timer in my program when the ...
2
votes
1
answer
334
views
Radio payload limitation for Cooja mote of Contiki-ng
Consider an RPL network as shown in below. In this network node 1 is the root of the DODAG. Node 2 is the sender and sends unicast UDP packets toward receiver nodes (nodes 3-18). The DODAG is working ...
1
vote
0
answers
477
views
MSP430 compiler not found when using Contiki-NG
I'm trying to simulate a Sky mote with the Cooja simulator shipped with the Contiki-NG project. I access the simulator as stated at their wiki:
cd contiki-ng/tools/cooja
ant
But when I try to compile ...
0
votes
0
answers
197
views
Maximum number of hops for a packet in Contiki RPL
I am trying to send a P2P packet from a source to a destination node using classic RPL protocol of Contiki-ng. Unfortunately, the packet can traverse only 8 hops. If the destination is placed ...
0
votes
0
answers
87
views
Contiki NG/Cooja - Non-RPL Simulation with No-Root Node
Can we simulate in Contiki-NG / Cooja a non-RPL sensor network where each node can directly communicate to any other node, without having to go through any root node?
1
vote
0
answers
140
views
How can I use Wismote in Contiki-NG?
I am running Cooja and Contiki-NG using Docker. When I want to emulate a simple application using "Wismote" mote, Cooja returns the following error:
> make udp-server.wismote TARGET=...
0
votes
1
answer
335
views
Unexpected behavior of Z1 and Sky motes in Cooja simulation in DODAG formation
I was exploring the Contiki Cooja simulator (with Contiki NG) and experimenting with a UDP server and several UDP clients (from examples/rpl-udp) with different mote types when I noticed something I ...
1
vote
1
answer
109
views
How to disable address filtering in Contiki-NG cc2420 radio module?
When trying to disable address filtering by changing RADIO_PARAM_RX_MODE like below, cc2420 auto ack is not working and motes get duplicated packets.
radio_value_t radio_rx_mode;
NETSTACK_RADIO....
0
votes
1
answer
228
views
DTLS-CoAP server from Contiki-NG fails during DTLS handshake
I have flashed a cc2650 Sensortag with cc26xx-web-demo example in Contiki-NG with option MAKE_WITH_DTLS=1 now I want to access it through a coaps:// request. When I try to access it as coaps:// from ...
0
votes
1
answer
156
views
Incorrect line numbers in gdb with openocd and contiker ng
I am trying to debug a contiki-ng application running on a LaunchPad CC1312r1 board using OpenOCD. When I add a breakpoint to a line in a source file, gdb gets the line number wrong.
(gdb) b packet-...
0
votes
0
answers
174
views
Contiki-NG: tsch network creation takes a really long time
Im currently developing a low power IoT node based on a TI CC1350 launchpad board. I'm using Contiki-NG with tsch to let the nodes connect to themselves and the network coordinator.
My problem is that ...
2
votes
1
answer
292
views
Contiki ng: how to lower power consumption?
Im currently developing a low power IoT node based on Contiki-ng running on a TI CC1350 launchpad board. My problem is that my power consumption is always >6mA.
Compiling and running the energest ...
0
votes
1
answer
119
views
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 ...
0
votes
1
answer
132
views
Contiki-NG RE-Mote board: The radio is always listening
I wanted to measure the energy consumption of my app using energest. However, I found out that the radio is almost always listening, as the RX energest value is pretty close to the Rtime interval I ...
0
votes
1
answer
355
views
Is there a way to do set a timer without having to put it inside a process in the Contiki OS?
Is it possible to do what the code below does without any process? I need a timeout without surrounding it with Contiki process. Is this possible?
#include "sys/etimer.h"
PROCESS_THREAD(...
0
votes
0
answers
273
views
timer in contiki cooja
I want to settle a timer and check it if it's expired in the next invocation of the function coap_send_transaction(). How can I do that?
PROCESS_THREAD(example_process, ev, data){
static ...
0
votes
1
answer
321
views
Contiki find neighbors
I want to find or list all of my neighbor nodes. It should be broadcast or unicast process for nodes. How can I find them with Contiki? Are there any functions for that?
0
votes
1
answer
270
views
Packet forwarding event in Contiki
I am doing some work on worm-attack detection in RPL. In RPL, the communication between the clients might be multiple hops, with the packets going through many nodes.
However, only the receiver gets a ...
0
votes
1
answer
364
views
How to get data from another process in Contiki-NG?
I try to send data from A process to B process with contiki-NG and firefly.
This is sender part of A process
PROCESS_THREAD(A_process, ev, data)
{
...
int data=1;
if(process_post(&...
0
votes
1
answer
84
views
is it possible to call a web service from cooja?
is it possible to call a web service from cooja? May be I can read from border-router then call web service (via python script for example). I can ping border-router but I dont know how to read from ...
1
vote
1
answer
234
views
How does contiki os map an IP address to a MAC address
How does contiki os map an IP address to a MAC address, and where is this stored?
I know the basics of ICMPv6 and RPL but once the network is built, when sending an IPv6 packet, how is the MAC address ...
0
votes
1
answer
222
views
Contiki ng cant find reference to rpl_set_root()
Im trying to run code that was written for contiki3.x on contiki-ng, I get a compilation error stating undefined reference to `rpl_set_root', eventhough I include "net/routing/rpl-classic/rpl.h&...