From bc2f1b5a2ac2f83594b587d1efa6bbff2ee48206 Mon Sep 17 00:00:00 2001 From: thomas-ha Date: Tue, 29 Mar 2016 10:24:38 +0200 Subject: [PATCH] update delay constants --- platform/cc2538dk/contiki-conf.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/cc2538dk/contiki-conf.h b/platform/cc2538dk/contiki-conf.h index ae7c3275d..22891f5ba 100644 --- a/platform/cc2538dk/contiki-conf.h +++ b/platform/cc2538dk/contiki-conf.h @@ -42,9 +42,10 @@ typedef uint32_t rtimer_clock_t; /*---------------------------------------------------------------------------*/ #define TSCH_CONF_HW_FRAME_FILTERING 0 -/* TODO: measure the delays, this are only estimations */ -#define RADIO_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(300)) -#define RADIO_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(100)) +/* 352us from calling transmit() until the SFD byte has been sent */ +#define RADIO_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(352)) +/* 192us as in datasheet but ACKs are not always received, so adjusted to 250us */ +#define RADIO_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(250)) #define RADIO_DELAY_BEFORE_DETECT 0 /*---------------------------------------------------------------------------*/ /**