Difference between revisions of "Contiki - 6TiSCH - RPL code HOWTO"

From Cyber-Physical Systems Laboratory
Jump to navigationJump to search
(Created page with "= Files explanation = There are two things to consider for compiling the example available here: File:6TiSCH_-_RPL_-_UDP_Transmitter_and_Receiver.tar.gz * You need the a...")
 
 
Line 17: Line 17:
 
== Makefile ==
 
== Makefile ==
  
Without going to much into the details you might want to change 2 things:
+
Without going to much into the details you might want to change 3 things:
  
 
* CONTIKI variable that points to the ContikiOS root directory
 
* CONTIKI variable that points to the ContikiOS root directory
 
* TARGET (if none is specified the default target is sky)
 
* TARGET (if none is specified the default target is sky)
 
* WITH_TSCH_CONF (if none is specified the default is 1)
 
* WITH_TSCH_CONF (if none is specified the default is 1)

Latest revision as of 20:37, 25 April 2017

Files explanation

There are two things to consider for compiling the example available here: File:6TiSCH - RPL - UDP Transmitter and Receiver.tar.gz

lprintfsky app

This app contains simple output functions for the sky target (TelosB).

  • lprint: outputs the given string
  • lprinti: outputs the given integer (unsigned)

For it to work you need to copy the lprintsky folder into the apps folder of contiki.

Makefile

Without going to much into the details you might want to change 3 things:

  • CONTIKI variable that points to the ContikiOS root directory
  • TARGET (if none is specified the default target is sky)
  • WITH_TSCH_CONF (if none is specified the default is 1)