Questions tagged [contiki-process]

Use this tag with questions concerning the use of Processes and Threads along with Events when using the Contiki OS. This tag should be used with the [contiki] tag to indicate that the question is specifically about the multi-threading library of the Contiki OS and how to use Threads, Events, Timers, etc.

28 questions
0
votes
0 answers

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/examples/hello-world/hello-world.c) as it is…
Amin Kaveh
  • 117
  • 6
0
votes
0 answers

What is mtype320 and mtype16 in Cooja?

I have a simulation file, called myfile.csc that I can load it into the Cooja Simulator. This file includes two types of nodes. The first one is mtype320 which is used as the sink node and mtype16 that is used for regular nodes. I would like to know…
Amin Kaveh
  • 117
  • 6
0
votes
1 answer

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…
0
votes
1 answer

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(example_process, ev, data) { static struct etimer et; …
0
votes
0 answers

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 struct etimer et; PROCESS_BEGIN(); …
0
votes
0 answers

How to access DIO message of RPL on Contiki Cooja simulator?

Can somebody please help me with on how to access the DIO message from unicast-sender. C and unicast-receiver. The C file of RPL implementation of the Contiki cooja simulator?? We are working on sinkhole attack detection, that's why we need to…
0
votes
0 answers

Get Preferent Path and All Nodes of Preferent Path in Cooja for RPL

I'm using Cooja simulator to study RPL protocol and I'm trying to implement some studies that done already. I must check whether this implementation is correct or not. For this checking, I want to get all nodes of path in Contiki Cooja for RPL in…
sss
  • 1
  • 1
0
votes
1 answer

How i can sensing the network in Contiki os

I’m new in contiki os and Cooja simulator i want to know how i can sense the network so If there is two nodes start communication The third node catch the communication and know the IP address for the sender. I found and try this code but what…
0
votes
1 answer

Execution is transferred to second process while waiting for an event in contiki

I have created two processes in Contiki. In the first process, I want to keep calling a function after a certain amount of time for this I have set an event timer. But while waiting for the event for the expiration of the timer the control of…
0
votes
1 answer

detection of failing nodes in the WSN using cooja

I want to create a project on contiki cooja for the detection of failing nodes in WSN which files I must use to create it.
0
votes
1 answer

Unable to update project conf variable in program

I want to update value of a variable at run time, present in project configuration as per some condition. But currently I am getting this error: error: lvalue required as left operand of assignment Actual code: #include "contiki.h" #include…
0
votes
1 answer

Mutual exclusion within a function Contiki

Because the in built list provided by Contiki doesn't fit my needs (uses too much memory) I have implemented my own list version that has been optimized for how I intend to use it. At any one time there will be a single one of these lists that will…
HXSP1947
  • 1,311
  • 1
  • 16
  • 39
0
votes
2 answers

Contiki timer without pausing the process

is there a way for wait that a timer expire without pausing the process? If we use PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et)); we pause the process. Suppose we want continue to do other stuff and when the timer expires check if the value of a…
rick87
  • 51
  • 9
1
2