mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
Use LPP for radio duty cycling. 1 Hz channel check rate
This commit is contained in:
parent
20cae40694
commit
0fc1c00f09
@ -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
|
||||
|
||||
|
||||
|
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user