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.
Questions tagged [contiki-process]
28 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
1 answer
How to start multiple Processes in Contiki to create load on CPU
How can I start multiple processes in parallel to create a congestion in CPU usage? Below is the code I was trying:-
#include "contiki.h"
#include
PROCESS(cpu_load_process_1, "CPU Loading Process 1");
PROCESS(cpu_load_process_2, "CPU…

ashish mishra
- 1,401
- 2
- 10
- 13
2
votes
0 answers
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 edited hello-world.c to read
#include…

btgwynn
- 21
- 3
2
votes
1 answer
Start Contiki process from a process
I am using contikiOS and C, I am trying to create code that will wait for 10s then print the temperature. It will then start a different process and record temp every 1s. It will check when temperature exceeds 28c and turn led on.
Currently, it…

Mathew Slingsby
- 23
- 3
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 post two different events to the same Contiki process?
I have two Contiki processes with one process, master, posting two different events to a second process, send. The first event sent is PROCESS_EVENT_CONTINUE and the second event is PROCESS_EVENT_MSG.
I am posting these events sequentially, one…

Sgio Dz
- 129
- 11
2
votes
2 answers
What does 'Yield' means in Contiki rtos
I am working with contiki and trying to understand the terminology used in it.
I am observing certain words such as yield, stackless here and there on internet. Some examples
PROCESS_EVENT_CONTINUE : This event is sent by the kernel to a process…

Mlo Bootloader
- 49
- 1
- 7
1
vote
0 answers
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 data to the Openmote? How can I use the inbuild ADC…

jishnu k
- 11
- 1
1
vote
0 answers
How to share data between nodes
I have created a network with one sink & five sender nodes. I wanted to share one single data (an integer value) with all the nodes. I wanted the nodes to be able to update as well as read the shared integer value. I used a pointer and tried to…

Ron Nen
- 11
- 1
1
vote
1 answer
How to run parallel processes in Contiki
I want to create two processes that should be executed parallelly. I am trying with following code:
PROCESS(hello_world_process, "Hello world process");
PROCESS(hello_world_process2, "Hello world…

SUBHANSHU SAHU
- 179
- 8
1
vote
1 answer
Failing attempt to use thread and timer to send two different messages with UDP
I want to send two different type of messages from server to client. I have created two functions data_signal() and probe_signal() for each of these two different messages.
The data_signal() function will periodically send a defined message with an…

SUBHANSHU SAHU
- 179
- 8
1
vote
0 answers
Contiki BR not executing tcp_ip event,, does'nt goes after PROCESS_YIELD
I'm trying to implement ECC in 6LoWPAN border router. I'm using contiki Wismote motes for all udp_sender.c as sender and the Border router (border_router.c) needs to receive some messages and also reply ECC keys. I have disabled the default server…

SukantaCB
- 21
- 7
1
vote
1 answer
How could i send a message to another program, and output that it has been received?
In contiki, i need to have two files, sender and receiver, the sender sends packets to the receiver. My problem is, the receiver is not outputting that the packets have been received.
I tried a while loop inside the receiving packet, i even tried to…

Mack
- 11
- 1
0
votes
0 answers
OTA with contiki
I want to perform the ota update process in our custom board of cc2538 uses contiki os. I found some information regarding this process. To add the contiki.oad.client library to the program file. But, I did not find the library like these.
Best…

kamalesh
- 1
- 1
0
votes
0 answers
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 slave. However, I'm running into a set of…

ayesha
- 3
- 2