From 34793034541b39456957d318c242b0665b690f50 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Mon, 2 Oct 2017 16:15:16 +0200 Subject: [PATCH] enable rpl etx messurement --- platform/osd-merkur-128/contiki-conf.h | 10 ++++++++++ platform/osd-merkur-256/contiki-conf.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/platform/osd-merkur-128/contiki-conf.h b/platform/osd-merkur-128/contiki-conf.h index 2b111057b..0efe75ba4 100644 --- a/platform/osd-merkur-128/contiki-conf.h +++ b/platform/osd-merkur-128/contiki-conf.h @@ -173,6 +173,16 @@ typedef unsigned short uip_stats_t; #define UIP_CONF_TCP_SPLIT 1 #define UIP_CONF_DHCP_LIGHT 1 +/* rpl routing settings */ +#define RPL_CONF_DEFAULT_LIFETIME 5 +#define RPL_CONF_WITH_MC 1 +#define RPL_CONF_WITH_DAO_ACK 1 +#define RPL_CONF_RPL_REPAIR_ON_DAO_NACK 1 +//#define RPL_CONF_DIO_REFRESH_DAO_ROUTES 1 +#define RPL_CONF_WITH_PROBING 1 +#define RPL_MRHOF_CONF_SQUARED_ETX 1 +#define RPL_CONF_DAG_MC RPL_DAG_MC_ETX +#define LINK_STATS_CONF_INIT_ETX(stats) guess_etx_from_rssi(stats) //#if 1 /* No radio cycling */ #if 0 /* radio cycling */ diff --git a/platform/osd-merkur-256/contiki-conf.h b/platform/osd-merkur-256/contiki-conf.h index 6425fc168..273d0557a 100644 --- a/platform/osd-merkur-256/contiki-conf.h +++ b/platform/osd-merkur-256/contiki-conf.h @@ -174,6 +174,16 @@ typedef unsigned short uip_stats_t; #define UIP_CONF_TCP_SPLIT 1 #define UIP_CONF_DHCP_LIGHT 1 +/* rpl routing settings */ +#define RPL_CONF_DEFAULT_LIFETIME 5 +#define RPL_CONF_WITH_MC 1 +#define RPL_CONF_WITH_DAO_ACK 1 +#define RPL_CONF_RPL_REPAIR_ON_DAO_NACK 1 +//#define RPL_CONF_DIO_REFRESH_DAO_ROUTES 1 +#define RPL_CONF_WITH_PROBING 1 +#define RPL_MRHOF_CONF_SQUARED_ETX 1 +#define RPL_CONF_DAG_MC RPL_DAG_MC_ETX +#define LINK_STATS_CONF_INIT_ETX(stats) guess_etx_from_rssi(stats) //#if 1 /* No radio cycling */ #if 0 /* radio cycling */