From 0d26b367d048d20f2eeb20c3e38cccd59c4f3bde Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Fri, 14 Feb 2020 14:00:30 +0100 Subject: [PATCH] examples/gnrc_lorawan: set RX2 DR to 3 only for ABP --- examples/gnrc_lorawan/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/gnrc_lorawan/Makefile b/examples/gnrc_lorawan/Makefile index 6834583cd0..e26cf131ff 100644 --- a/examples/gnrc_lorawan/Makefile +++ b/examples/gnrc_lorawan/Makefile @@ -37,10 +37,12 @@ CFLAGS += -DLORAMAC_APP_EUI_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\, CFLAGS += -DLORAMAC_DEV_EUI_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} # Uncomment and replace with proper keys for joining with ABP +# For TTN, It's necessary to set the RX2 DR to 3 # NOTE: This values will be overriten in case of OTAA. #CFLAGS += -DLORAMAC_DEV_ADDR_DEFAULT=\{0x00\,0x00\,0x00\,0x00\} #CFLAGS += -DLORAMAC_NWK_SKEY_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} #CFLAGS += -DLORAMAC_APP_SKEY_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} +#CFLAGS += -DLORAMAC_DEFAULT_RX2_DR=LORAMAC_DR_3 # Comment/uncomment as necessary CFLAGS += -DLORAMAC_DEFAULT_JOIN_PROCEDURE=LORAMAC_JOIN_OTAA @@ -51,9 +53,6 @@ CFLAGS += -DLORAMAC_DEFAULT_JOIN_PROCEDURE=LORAMAC_JOIN_OTAA # Note this value is also used for the OTAA. #CFLAGS += -DLORAMAC_DEFAULT_DR=LORAMAC_DR_5 -# Set the default RX2 datarate to DR3 (used by The Things Network) -CFLAGS += -DLORAMAC_DEFAULT_RX2_DR=LORAMAC_DR_3 - # Set default messages to unconfirmable CFLAGS += -DLORAMAC_DEFAULT_TX_MODE=LORAMAC_TX_CNF