Skip to content

Commit 6e334b8

Browse files
committed
update v1.7.2
OTAA RX2DR is set to 0 by default now for EU868
1 parent f343116 commit 6e334b8

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
STM32CubeExpansion_LRWAN\Projects\Multi\Applications\LoRa\DRAGINO-LRWAN(AT)\MDK-ARM\STM32L072CZ-Nucleo\sx1276mb1las\
1+
STM32CubeExpansion_LRWAN/Projects/Multi/Applications/LoRa/DRAGINO-LRWAN(AT)/MDK-ARM/STM32L072CZ-Nucleo/sx1276mb1las/*

STM32CubeExpansion_LRWAN/Middlewares/Third_Party/Lora/Mac/region/RegionEU868.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
// Definitions
4949
#define CHANNELS_MASK_SIZE 1
5050

51-
extern uint8_t joinrx2_dr;
5251
extern LoRaMacParams_t LoRaMacParams;
5352
extern uint8_t payloadlens;
5453
extern bool DR_small;
@@ -296,14 +295,7 @@ PhyParam_t RegionEU868GetPhyParam( GetPhyParams_t* getPhy )
296295
}
297296
case PHY_DEF_RX2_DR:
298297
{
299-
if(joinrx2_dr==0)
300-
{
301-
phyParam.Value = EU868_RX_WND_2_DR;
302-
}
303-
else
304-
{
305-
phyParam.Value = joinrx2_dr;
306-
}
298+
phyParam.Value = EU868_RX_WND_2_DR;
307299
break;
308300
}
309301
case PHY_CHANNELS_MASK:

STM32CubeExpansion_LRWAN/Projects/Multi/Applications/LoRa/DRAGINO-LRWAN(AT)/inc/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Maintainer: Miguel Luis, Gregory Cristian and Wael Guibene
7272
#define TEST_VERSION (uint32_t) 0x00000000 /*1 lsb is always 0 in releases */
7373
#define LRWAN_VERSION (uint32_t) 0x00001140 /*3 next hex is i_cube release*/
7474
#define VERSION (uint32_t) ( LORA_MAC_VERSION | LRWAN_VERSION | TEST_VERSION )
75-
#define AT_VERSION_STRING "v1.7"
75+
#define AT_VERSION_STRING "v1.7.2"
7676
#define AT_LoRaWan_VERSION_STRING "DR-LWS-005"
7777

7878
/* Exported types ------------------------------------------------------------*/

STM32CubeExpansion_LRWAN/Projects/Multi/Applications/LoRa/DRAGINO-LRWAN(AT)/src/lora.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ uint16_t fire_version=0;
8383
uint16_t fire_frequcy=0;
8484
uint8_t mode;
8585
uint8_t inmode;
86-
uint8_t joinrx2_dr;
8786
bool rx2_flags=0;
8887
bool fdr_flags=0;
8988

@@ -1170,8 +1169,7 @@ void Read_Config(void)
11701169
if((rx2_flags==0)||(lora_config.otaa==LORA_DISABLE))
11711170
{
11721171
mib.Type = MIB_RX2_CHANNEL;
1173-
mib.Param.Rx2Channel.Datarate=r_config[3];
1174-
joinrx2_dr=r_config[3];
1172+
mib.Param.Rx2Channel.Datarate=r_config[3];
11751173
LoRaMacMibSetRequestConfirm( &mib );
11761174
}
11771175
else if(rx2_flags==1)
@@ -1287,6 +1285,7 @@ void new_firmware_update(void)
12871285
update_flags[0]=(fire_frequcy<<16)| fire_version;
12881286
EEPROM_program(EEPROM_USER_Firmware_FLAGS,update_flags,1);//store hardversion
12891287
FLASH_erase(0x8018F80);//page 799
1288+
FLASH_program_on_addr(0x8018F80,0x12);
12901289
FLASH_erase(FLASH_USER_START_ADDR_CONFIG);
12911290
NVIC_SystemReset();
12921291
}

0 commit comments

Comments
 (0)