Questions tagged [contiki]

Contiki is an open source operating system for the Internet of Things.

contiki
Filter by
Sorted by
Tagged with
1 vote
1 answer
501 views

How to get the IP address from the preferred parent of a certain node in Contiki RPL classic

Hello everyone and thank you in advance for the attention. I would like to obtain, in a certain node, the IP Address of it's certain preferred parent. I am using the Contiki-3.x RPL implementation, ...
André Alves's user avatar
0 votes
1 answer
477 views

How to use linkaddr_set_node_addr (linkaddr_t *addr) in Contiki with Unicast

Iam trying to using this function to set the node which send packet to other node in code unicast contiki , but this function doesn't work , what's the problem ? Can you help me ,please ! I want to ...
Đức Giang's user avatar
2 votes
1 answer
800 views

Error when I compile 'hello-world' example from Contiki

I have installed the Contiki OS sources, and the ARM GCC compiler by doing brew install arm-none-eabi-gcc. However, when I try to run the hello world example in Contiki's example folder using the ...
umop apisdn's user avatar
0 votes
0 answers
273 views

tinydtls configuration in Contiki

I am currently trying to configure tinydtls as described in the README in order to later include it into an application, or at least, make the examples run. The first steps, including the resulting ...
juoebz's user avatar
  • 31
0 votes
1 answer
117 views

Implement agregation in cooja

Could someone has an idea on how to implement agregation in udp-client.c with cooja Please? I have a linear network with one server (node 1) and 4 clients running on contiki. 1 is connected to 2 which ...
atangopascall's user avatar
0 votes
2 answers
192 views

AES implementation in COAP

I am trying to implement AES_128 provided in Contiki-2.7 in my CoAP server, but in a little bit of confusion as to how it will be translated in the browser. I have some physical sky motes as CoAP ...
Farid Ahmed's user avatar
0 votes
1 answer
538 views

Separating RPL and application timeslots on TSCH Schedule (Contiki-NG)

I'm trying to build a TSCH Schedule that makes the RPL transmit into a timeslot and my application transmit in another timeslot, does someone know if is that possible? I tried to use the following ...
j-r-mota's user avatar
1 vote
1 answer
418 views

How to access data packet details in rpl's objective function MRHOF in contikiRPL?

I wants to implement DAG Metric Container objective types such as energy, throughput, latency, hop count in mrhrof objective function in contikirpl. I am trying to get data packet details packet like ...
GULSHAN SONI's user avatar
2 votes
1 answer
601 views

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.
Mario Martínez Morfa's user avatar
1 vote
1 answer
487 views

How ETX (Estimated Transmissions) is implemented in contikiRPL?

I am working on creating a modified version of MRHOF for RPL. However, I have some doubts about the ETX metrics used. i am running an rpl-udp example (..../contiki-3.0/examples/ipv6/rpl-udp). As per ...
GULSHAN SONI's user avatar
0 votes
1 answer
459 views

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 ...
SUBHANSHU SAHU's user avatar
1 vote
1 answer
738 views

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's user avatar
1 vote
1 answer
419 views

Does Contiki-NG support Radio Duty Cycling (RDC)?

I'm currently developing a wireless sensor network project with Contiki-NG. However, I need to add Radio Duty Cycling feature to save energy. It was possible to add RDC in Contiki using contiki mac. ...
Anuradha's user avatar
-1 votes
1 answer
85 views

Same random number is displayed on calling the function [closed]

I have created a method that returns a string as per the value of generated random number. This work as expected when the function is in the same program file where it is called. But when I define ...
SUBHANSHU SAHU's user avatar
2 votes
1 answer
476 views

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 ...
Mathew Slingsby's user avatar
0 votes
2 answers
339 views

How to implement coap observer with block2 in Contiki OS

I will explain setup first; Setup: I have a microcontroller board running a Coap rest server (using Contiki OS) with an observable resource and a client (using Coapthon - python library for the Coap) ...
Arya's user avatar
  • 13
0 votes
1 answer
257 views

how to change the energy level of nodes on cooja

I use the wireless sensor network simulation software cooja I want to know how I can change the level of each node manually. Is this function (cc2420_set_txpower()) able to help me and how? if not, do ...
user11434431's user avatar
0 votes
1 answer
448 views

Erase all contents of cc2650 from contiki using command

I can upload my compiled code to TI cc2650 using the following command: make TARGET=srf06-cc26xx BOARD=launchpad/cc2650 savetarget sudo make PORT=/dev/ttyACM0 BOARD=launchpad/cc2650 hello-world....
SUBHANSHU SAHU's user avatar
0 votes
1 answer
65 views

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.
user11434431's user avatar
0 votes
1 answer
48 views

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 ...
SUBHANSHU SAHU's user avatar
1 vote
1 answer
446 views

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 ...
SUBHANSHU SAHU's user avatar
0 votes
1 answer
304 views

RPL routing neighbors

Just to be on the safe side, please CORRECT me if I am wrong. When RPL is in storing mode, each node knows its direct children and via which child a given node can be accessed. E.g., the following ...
George Violettas's user avatar
10 votes
1 answer
461 views

How to execute a different binary on run-time in Contiki OS?

I am trying to make a sensor that runs on Contiki OS to execute a new binary and replace the current one, if an event occurs. I am using Cooja simulator and sky note and I uploaded the binary into ...
Paris Constantinides's user avatar
0 votes
0 answers
201 views

contiki/examples/ipv6/rpl-collect/udp-sink.c file function "tcpiphandler" is not being called for z1 motes in Cooja Simulator

I am trying to extract the sequence number for each packet of all the Z1 motes in my simulation. The problem is that, the function (tcpiphaandler in udp-sink.c) does not get called but the nodes are ...
Sanan Ahmad's user avatar
1 vote
0 answers
203 views

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 ...
SukantaCB's user avatar
-1 votes
3 answers
659 views

Where are headers file present in Contiki?

I am trying to understand the IPv6-over-BLE UDP-client demo example which is present in examples/cc26xx/cc26xx-ble-client-demo, the code has following header files: #include "contiki.h" #include "...
SUBHANSHU SAHU's user avatar
0 votes
0 answers
55 views

What is the RPL DIS sending interval fixed in RIOT?

What is the RPL DIS sending interval fixed in RIOT ? In Contiki the DIS interval is 60 seconds and start delay is 5 sec.
av92's user avatar
  • 120
1 vote
1 answer
264 views

Is there any function in Contiki similar to clock_gettime() from time.h?

I want to use a function similar to the clock_gettime() function from time.h to calculate the time taken in a function call. I to include time.h, but found that it does not exist in Contiki.
SUBHANSHU SAHU's user avatar
1 vote
1 answer
471 views

Not able to import "time.h" in contiki

I am trying to create a simple program in which I have imported "time.h", but I am getting fatal error: time.h: No such file or directory error on compiling the code. Following is the code I am trying ...
SUBHANSHU SAHU's user avatar
0 votes
0 answers
51 views

In RPL, How do I block some node at link layer itself so that further layer do not process the data from that node?

I want to block malicious node at data-link layer itself so that the further layers do not have to process data from that node. Is there any way to block all communications from that node. Note: I ...
av92's user avatar
  • 120
0 votes
1 answer
150 views

How to use serial-perl tool of contiki to write output of mote in file along with timestamp?

I want to save output of a mote in a text file along with timestamp. Can someone show how to use "serial-perl" tool of Contiki?
SUBHANSHU SAHU's user avatar
0 votes
1 answer
293 views

How can I add time field in incoming messages?

I am looking for a way to add time field in incoming message, either of seconds or milliseconds so that I can calculate the amount of time taken in reception of a packet, for determining the latency, ...
SUBHANSHU SAHU's user avatar
0 votes
1 answer
223 views

Delay/Latency calculation for Zolertia Re-motes

I intend to calculate the latency of packets sent by multiple (24) sensor nodes to a single sink using CSMA/CA MAC in Contiki-ng. Apparently, there is no synchronization mechanism available for the ...
rmateeq's user avatar
1 vote
1 answer
219 views

Cooja hello-world-example.csc simulator in instantcontiki 3.0 is giving comiplation error: attempt to use poisoned "SPMCR" in boot.h

Inside instantcontiki3.0 ubuntu, started cooja simulator using command to start cooja simulator. ant run from folder /home/user/contiki/tools/cooja Below error is seen when hellow world simulation ...
Shadaksharayya H A's user avatar
2 votes
1 answer
256 views

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 ...
mahshid's user avatar
  • 41
1 vote
1 answer
781 views

Unable to flash cc2650 from ubuntu machine

Timeout error is displayed on flashing cc2650, perfomed following steps: Connected the cc2650 mote wih ubuntu machine Compiled the client example for the target using following command: make TARGET=...
SUBHANSHU SAHU's user avatar
0 votes
1 answer
240 views

Printing PRINT6ADDR with DEBUG_ANNOTATE

I'm working with Contiki, with the rpl-collect example. I'm trying to print out the debug message, printing the initiation of rpl and the formation of the DAG. I enabled debug printing with changing ...
Sara Sosh's user avatar
0 votes
1 answer
670 views

simulation in COOJA is too slow

I am using COOJA simulator to simulate an ad_hoc scenario which has 20 mobile mote and one static client. the type of the motes is exp5438. the client broadcast a message and all other motes who have ...
mahshid's user avatar
  • 41
2 votes
0 answers
51 views

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 '&...
dogukanarkan's user avatar
1 vote
1 answer
216 views

Receive UART messages via Cooja on a Z1 mote

I'm currently developing a contiki programm that runs on a Z1 device for debugging purposes. I would like to send UART messages to that device and found out that Cooja appears to supports that with a ...
alex-j's user avatar
  • 21
0 votes
1 answer
460 views

Sending UDP packets from local to UDP server moto in Contiki Cooja

I am running a simulation in Cooja. My simulation has only 2 motos: an rpl border router, an rpl udp-server. I am using the example code given in Contiki: border-router.c and udp-server.c. I am using ...
kayas's user avatar
  • 713
0 votes
0 answers
61 views

Dynamically assign addresses in an IoT IEEE 802.15.4 Network

Some context First let explain the context, for a course I had to create some protocol to save power consumption in a IoT IEEE 802.15.4 network (thus how to optimise the routing, fault detection, ... ...
desmaxi's user avatar
  • 293
0 votes
1 answer
54 views

How to find last relay node of a data packet in-transit?

I'm trying to implement a security mechanism in RPL. For this, I need to log where did a packet come from. For example, if a packet is transmitted from A-->B-->C-->D, I want to find out at C that the ...
Shubham Kumaram's user avatar
0 votes
1 answer
2k views

Set paramaters of Cooja Simulation

I'm trying to do some simulation of the RPL protocol using Contiki 3.0 and the Cooja Simulator. I'm using the sky motes and i'd like to see how the DODAG is formed and monitor the parameters of the ...
FraMan's user avatar
  • 27
0 votes
1 answer
165 views

What is the significance of double red circles around node?

I am simulating a simple rpl-udp scenario. In the radio environment during simulation these double red circles around nodes are showing up ? what exactly does it show ?
av92's user avatar
  • 120
0 votes
2 answers
181 views

convert ipv6 to ipv4 in contiki

I am trying to convert an ipv6 address to an ipv4 address on a exp5438 mote, in Contiki OS, using the implemented function "ip64_addr_6to4" : int ip64_addr_6to4(const uip_ip6addr_t *ipv6addr, ...
mahshid's user avatar
  • 41
0 votes
0 answers
71 views

TelosB library sensor Contiki

I'm new on langage C and Contiki. I'm a student (French) so sorry for my little english. I went through a lot of GitHub for help but i didn't found ... So i'm here. I try to make my PIR motion ...
Alexandre's user avatar
0 votes
0 answers
490 views

How to fix "fatal: Not a valid object name HEAD" error in Contiki?

I entered a command line below. ../../contiki/examples/hello-world$ make TARGET=native savetarget But I couldn't save the target because an error occurred. fatal: Not a valid object name HEAD ...
Yejin's user avatar
  • 23
0 votes
0 answers
48 views

border router still showing the node that already powered off

In my setup, I have couple of nodes running contiki coap server and a border router. When I turned off any nodes, that node didn't disappear from route list. Can I somehow make that node disappear ...
Arya's user avatar
  • 13
0 votes
1 answer
103 views

How can I force a coap server node to connect an specific border router?

force nodes to connect to specific border router in a mesh network Here is my setup; 6 nodes, n1, n2, n3, n4, n5, n6 all running https://github.com/contiki-os/contiki/blob/master/examples/er-rest-...
Arya's user avatar
  • 13

1 2
3
4 5
12