contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

How use ETX graph in project (sink and sender) and how enable OF0 #2507

Open abbasalouswy opened 6 years ago

abbasalouswy commented 6 years ago

How use ETX graph in project (sink and sender) and how enable OF0 . thanks for all

rahnemoon commented 6 years ago

sorry, I don't get the first part of your question but about the second part, you just need to add following options to your project-conf.h module.

#define RPL_CONF_OF rpl_of0
#define RPL_CONF_OF_OCP RPL_OCP_OF0
#define RPL_CONF_SUPPORTED_OFS {&rpl_of0}
#define RPL_OF0_CONF_SR RPL_OF0_ETX_BASED_SR // based on ETX
#define RPL_OF0_CONF_SR RPL_OF0_FIXED_SR //based on hop-count

for running OF-zero completely based on RFCs you need some little change in rpl-of0.c module.

abbasalouswy commented 6 years ago

@erfanlinman thanks for help me