Use LPP for radio duty cycling. 1 Hz channel check rate

This commit is contained in:
nvt-se 2010-03-04 15:04:28 +00:00
parent 20cae40694
commit 0fc1c00f09
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
#define WITH_SD 0
#define NETSTACK_CONF_RADIO cc1020_driver
#define NETSTACK_CONF_RDC nullrdc_driver
#define NETSTACK_CONF_RDC lpp_driver
#define NETSTACK_CONF_MAC csma_driver
#define NETSTACK_CONF_NETWORK rime_driver
#define NETSTACK_CONF_FRAMER framer_nullmac
@ -30,8 +30,8 @@
#define CC_CONF_INLINE inline
#define CC_CONF_VA_ARGS 1
#define LPP_CONF_LISTEN_TIME CLOCK_SECOND / 32
#define LPP_CONF_OFF_TIME CLOCK_SECOND
#define LPP_CONF_LISTEN_TIME 2
#define LPP_CONF_OFF_TIME (CLOCK_SECOND - (LPP_CONF_LISTEN_TIME))
#define QUEUEBUF_CONF_NUM 4

View File

@ -147,7 +147,7 @@ main(void)
leds_off(LEDS_ALL);
printf("%d.%d: %s %s, channel check rate %u Hz\n",
printf("Node %d.%d: %s %s, channel check rate %u Hz\n",
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
NETSTACK_MAC.name, NETSTACK_RDC.name,
CLOCK_SECOND / (NETSTACK_RDC.channel_check_interval() == 0 ?