Questions tagged [cooja]

Cooja is the Contiki wireless sensor network simulator

Cooja is the Contiki wireless sensor network simulator

122 questions
3
votes
1 answer

get the position of node using cooja contiki

I want to get the position (x and y coordinates) of each node in the Cooja simulator. There are 30 nodes in total, of type 'sky mote'. The goal is to build a table consisting of (ID_node x_coordinate y_coordinate) for each node. First I tried to get…
amany
  • 31
  • 3
3
votes
2 answers

How to calculate total energy consumption using Cooja

I'm working with wireless sensor network lead to evaluate its performance in my work. I want to measure the latency and total energy consumption to find the remaining energy in each node. So my problem is that I have some values of tx rx cpu…
Ayoub Benayache
  • 1,046
  • 12
  • 28
2
votes
1 answer

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 _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on…
AmineLBD
  • 69
  • 8
2
votes
0 answers

Getting an error message when running a script in Cooja

I'm trying to code the simulation script editor to calculate end-to-end delay and so on, but after the simulation is finished, I encounter the following message: TEST TIMEOUT TEST FAILED [if test was run without visualization, Cooja would now have…
pheona
  • 21
  • 1
2
votes
1 answer

How to have a random number which changes with time in cooja simulator in c language?

I know there are similar posts to this. I have tried all of them. But that doesn't answer my question. I have already tried srand which is provided by c, but it doesn't work in cooja. I have also tried #include "cfs/cfs.h", #include…
Akash Patel
  • 156
  • 4
  • 15
2
votes
1 answer

Does any alternative for Collect View exist in Contiki NG?

I am using Contiki-NG OS and I pretend to plot some metrics but Collect-View is removed in Contiki-NG. Could anyone help me with this issue? Does any similar application exist? Thanks in advance.
2
votes
1 answer

Need an example of using mmem in Contiki

I am developing code to use in the COOJA simulator. I used malloc() for all of the dynamic memory allocations. While the simulation is running, COOJA motes restart periodically and at last I get an error which tells me the reason is I'm using…
mahshid
  • 41
  • 7
2
votes
0 answers

How to send runicast message to itself?

I'm studying a wireless sensor network and I'm implementing a distributed algorithm. What I want that it sends a runicast message to itself. I tried to send runicast message to '&rimeaddr_node_addr', but it timedout. runicast_send(&runicast,…
dogukanarkan
  • 341
  • 2
  • 8
2
votes
1 answer

make*** No rule to make target 'obj_sky/neighbour-attr.o' contiki-cooja simulation error

I am trying to compile an example code in cooja simulator on contiki-2.7 Operating System. Contiki is an OS for IoT applications. Before implementing in hardware the code is tested in cooja simulator first. For a research purpose I installed…
S. M. Fahad Ahmad
  • 379
  • 1
  • 2
  • 11
2
votes
1 answer

Call process from process in Contiki

In my code, I need to declare two process. In the first process, I want to call the second one like this: PROCESS_THREAD(Initialization_process, ev, data) { PROCESS_BEGIN(); PROCESS_THREAD(example_broadcast_process, ev, data); …
Joe
  • 85
  • 1
  • 9
2
votes
1 answer

How to install cooja simulator in windows 7

Is it possible to install cooja simulator in windows, but without virtual machine. I know that we can easily install that using virtual machine, but i want a method other than that.
qasimcool
  • 21
  • 3
1
vote
0 answers

How to modified sky mote or wake change wake up time periodically in contiki 2.7?

I am working on the Contiki 2.7 cooja simulator . I want to modified sky mote and I want to change periodically wake up time for each node manually ? I check the hello.c and ipv6 sender c. file but I can not find any solution
1
vote
1 answer

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 Buildfile: build.xml does not exist! Build failed I…
Lelle Mohd
  • 21
  • 3
1
vote
0 answers

Reply to broadcasted packets using Simple UDP API in CONTIKI

Good morning everyone, In order to understand how mote communication works in Contiki, I am currently trying to set up a simple communication scenario. This scenario involves two motes "Root" and "Node". Root is going to broadcast a "Test"…
1
vote
0 answers

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 and I get a null pointer error: [15:19:20 -…
Sasha
  • 11
  • 1
1
2 3
8 9