From 8e7c35111c1e30da735676081d68101fd16568b3 Mon Sep 17 00:00:00 2001 From: Yunhorn Date: Wed, 16 Oct 2024 12:09:18 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f81cc4b..f493308 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ ---- STS-P2 --- - 2024 09 11 START P2A - 2024 09 12 GOOD P2A merge to P2 - 2024 09 20 Overall good of Yunhorn STS AUTO RESPONDER PARSE - - 2024 09 20 START RR - 2024 09 25 START R1D - 2024 09 27 GOOD STS-R4 on single board RM2_1 +##--- STS-P2 --- + + 2024 09 11 START P2A + 2024 09 12 GOOD P2A merge to P2 + 2024 09 20 Overall good of Yunhorn STS AUTO RESPONDER PARSE + + 2024 09 20 START RR + 2024 09 25 START R1D + 2024 09 27 GOOD STS-R4 on single board RM2_1 From 78e652fd20fb1cecde9c849875355c7a68790754 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Tue, 22 Oct 2024 17:12:22 +0800 Subject: [PATCH 02/12] --- refine STS-R4 txperiod and heart-beat period --- Core/Src/main.c | 14 +++++++++++++- LoRaWAN/App/lora_app.c | 13 +++++++------ LoRaWAN/App/lora_app.h | 2 +- LoRaWAN/Target/lorawan_conf.h | 2 +- STM32CubeIDE/Release/makefile | 2 ++ STM32CubeIDE/Release/sources.mk | 2 ++ STS/Core/Src/yunhorn_sts_process.c | 19 +++++++++---------- 7 files changed, 35 insertions(+), 19 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 6393797..2fc0a88 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -100,8 +100,20 @@ int main(void) MX_I2C2_Init(); MX_DMA_Init(); + if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) == RESET) + { + + MX_LoRaWAN_Init(); + } else + { + __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); + + /* Enable access to RTC domain for following wake-up source configuration */ + //HAL_PWR_EnableBkUpAccess(); + //__HAL_RCC_RTCAPB_CLK_ENABLE(); + + } - MX_LoRaWAN_Init(); /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 2e67930..9f3c5fb 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -1080,6 +1080,7 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams) LmHandlerParams.IsTxConfirmed = true; LmHandlerErrorStatus_t status = LmHandlerSend(&AppData, LmHandlerParams.IsTxConfirmed, false); if (status ==LORAMAC_HANDLER_SUCCESS ) LmHandlerParams.IsTxConfirmed = false; + } else { @@ -1426,26 +1427,26 @@ static void OnYunhornSTSHeartBeatTimerEvent(void *context) * @brief Yunhorn STS Heart Beat Periodicity Chagne function * @param duration of periodicty in ms (1/1000 sec) */ -void OnYunhornSTSHeartBeatPeriodicityChanged(uint32_t periodicity) +void OnYunhornSTSHeartBeatPeriodicityChanged(uint32_t newperiodicity) { /* USER CODE BEGIN OnYunhornSTSHeartBeatPeriodicityChanged_1 */ /* USER CODE END OnYunhornSTSHeartBeatPeriodicityChanged_1 */ - if (periodicity == 0) + if (newperiodicity == 0) { /* Revert to application default Heat-beat periodicity */ - periodicity = 10*APP_TX_DUTYCYCLE; //10*10 000 ms + newperiodicity = 10*APP_TX_DUTYCYCLE; //10*10 000 ms } /* Update timer YunhornSTSHeartBeatTimer */ UTIL_TIMER_Stop(&YunhornSTSHeartBeatTimer); - UTIL_TIMER_SetPeriod(&YunhornSTSHeartBeatTimer, periodicity); + UTIL_TIMER_SetPeriod(&YunhornSTSHeartBeatTimer, newperiodicity); UTIL_TIMER_Start(&YunhornSTSHeartBeatTimer); /* USER CODE BEGIN OnYunhornSTSHeartBeatPeriodicityChanged_2 */ - APP_LOG(TS_OFF, VLEVEL_M,"* STS HeartBeatPeriodicity = %u (sec)\r\n", periodicity/1000 ); + APP_LOG(TS_OFF, VLEVEL_H,"* STS HeartBeatPeriodicity = %u (sec)\r\n", newperiodicity/1000 ); /* USER CODE END OnYunhornSTSHeartBeatPeriodicityChanged_2 */ } @@ -1478,6 +1479,6 @@ void OnYunhornSTSTxPeriodicityChanged(uint32_t periodicity) UTIL_TIMER_Start(&TxTimer); /* USER CODE BEGIN OnYunhornSTSTxPeriodicityChanged */ - APP_LOG(TS_OFF, VLEVEL_M,"* STS TxPeriodicity = %u (sec)\r\n", TxPeriodicity/1000 ); + APP_LOG(TS_OFF, VLEVEL_H,"* STS TxPeriodicity = %u (sec)\r\n", TxPeriodicity/1000 ); /* USER CODE END OnYunhornSTSTxPeriodicityChanged */ } diff --git a/LoRaWAN/App/lora_app.h b/LoRaWAN/App/lora_app.h index 52f4d16..ae4a403 100644 --- a/LoRaWAN/App/lora_app.h +++ b/LoRaWAN/App/lora_app.h @@ -68,7 +68,7 @@ extern "C" { /*! * LoRaWAN default class */ -#define LORAWAN_DEFAULT_CLASS CLASS_C +#define LORAWAN_DEFAULT_CLASS CLASS_A /*! * LoRaWAN default confirm state diff --git a/LoRaWAN/Target/lorawan_conf.h b/LoRaWAN/Target/lorawan_conf.h index 1706743..9ddccb0 100644 --- a/LoRaWAN/Target/lorawan_conf.h +++ b/LoRaWAN/Target/lorawan_conf.h @@ -109,7 +109,7 @@ extern "C" { * - CHANNEL_PLAN_GROUP_AS923_4 (Freq offset = -5.90 MHz / Freq range = 917-920MHz) * - CHANNEL_PLAN_GROUP_AS923_1_JP (Freq offset = 0.0 MHz / Freq range = 920.6-923.4MHz) */ -#define REGION_AS923_DEFAULT_CHANNEL_PLAN CHANNEL_PLAN_GROUP_AS923_1 +#define REGION_AS923_DEFAULT_CHANNEL_PLAN CHANNEL_PLAN_GROUP_AS923_1_JP /*! * @brief Limits the number usable channels by default for AU915, CN470 and US915 regions diff --git a/STM32CubeIDE/Release/makefile b/STM32CubeIDE/Release/makefile index 2173897..7427775 100644 --- a/STM32CubeIDE/Release/makefile +++ b/STM32CubeIDE/Release/makefile @@ -15,6 +15,8 @@ RM := rm -rf -include Drivers/STM32WLxx_HAL_Driver/subdir.mk -include Drivers/CMSIS/subdir.mk -include Drivers/BSP/STM32WLxx_Nucleo/subdir.mk +-include Drivers/BSP/Components/subdir.mk +-include Drivers/BSP/53L8A1/subdir.mk -include Application/User/Startup/subdir.mk -include Application/User/STS/TOF/vl53l0x/subdir.mk -include Application/User/STS/TOF/Target/subdir.mk diff --git a/STM32CubeIDE/Release/sources.mk b/STM32CubeIDE/Release/sources.mk index a6f330f..f021f94 100644 --- a/STM32CubeIDE/Release/sources.mk +++ b/STM32CubeIDE/Release/sources.mk @@ -30,6 +30,8 @@ Application/User/STS/TOF/App \ Application/User/STS/TOF/Target \ Application/User/STS/TOF/vl53l0x \ Application/User/Startup \ +Drivers/BSP/53L8A1 \ +Drivers/BSP/Components \ Drivers/BSP/STM32WLxx_Nucleo \ Drivers/CMSIS \ Drivers/STM32WLxx_HAL_Driver \ diff --git a/STS/Core/Src/yunhorn_sts_process.c b/STS/Core/Src/yunhorn_sts_process.c index f48a1cd..a05e377 100644 --- a/STS/Core/Src/yunhorn_sts_process.c +++ b/STS/Core/Src/yunhorn_sts_process.c @@ -108,7 +108,7 @@ volatile uint8_t sts_work_mode=4; volatile uint32_t rfac_timer=0; volatile uint16_t sts_sensor_install_height=3000; volatile uint8_t sensor_data_ready=0; -volatile uint32_t STS_TOFScanPeriod_msec=50, STS_TxPeriod_sec=10, STS_HeartBeatTimerPeriod_sec=60; +volatile uint32_t STS_TOFScanPeriod_msec=50, STS_TxPeriod_sec=300, STS_HeartBeatTimerPeriod_sec=3600; static uint8_t outbuf[128]={0x0}; extern volatile hmac_result_t hmac_result; extern uint16_t sensor_id; @@ -1330,7 +1330,11 @@ void USER_APP_AUTO_RESPONDER_Parse(uint8_t *parse_buffer, uint8_t parse_buffer_s sts_cfg_nvm.sts_service_mask = sts_service_mask; OnStoreSTSCFGContextRequest(); - + i=0; + UTIL_MEM_set_8((void*)outbuf, 0x0, sizeof(outbuf)); + UTIL_MEM_cpy_8((void*)outbuf,(void*)tlv_buf, parse_buffer_size); + i = parse_buffer_size; + STS_SENSOR_Upload_Message(YUNHORN_STS_USER_APP_CTRL_REPLY_PORT, i, (uint8_t *)outbuf); } else { sts_service_mask = STS_SERVICE_MASK_L2; @@ -1338,12 +1342,6 @@ void USER_APP_AUTO_RESPONDER_Parse(uint8_t *parse_buffer, uint8_t parse_buffer_s sts_ac_code[19] =0x0; } - i=0; - UTIL_MEM_set_8((void*)outbuf, 0x0, sizeof(outbuf)); - UTIL_MEM_cpy_8((void*)outbuf,(void*)tlv_buf, parse_buffer_size); - i = parse_buffer_size; - STS_SENSOR_Upload_Message(YUNHORN_STS_USER_APP_CTRL_REPLY_PORT, i, (uint8_t *)outbuf); - } break; default: @@ -1578,7 +1576,8 @@ void OnRestoreSTSCFGContextProcess(void) APP_LOG(TS_OFF, VLEVEL_H, "\n\n Tx periodicity in NVM =%u sec\n",periodicity); TxPeriodicity= periodicity*1000; // to ms - + STS_TxPeriod_sec = periodicity; + //STS_TxPeriod_sec=10, STS_HeartBeatTimerPeriod_sec=60; uint32_t sampling_heartbeat_periodicity = (sts_cfg_nvm.sampling); //Heart-beat or Sampling interval if ((char)sts_cfg_nvm.s_unit =='M') { sampling_heartbeat_periodicity *= 60; @@ -1587,7 +1586,7 @@ void OnRestoreSTSCFGContextProcess(void) } else if ((char) sts_cfg_nvm.s_unit =='S') { sampling_heartbeat_periodicity *= 1; } - + STS_HeartBeatTimerPeriod_sec = sampling_heartbeat_periodicity; APP_LOG(TS_OFF, VLEVEL_H, "\n\n sampling or heartbeat periodicity in NVM =%u sec\n",sampling_heartbeat_periodicity); if ((sts_cfg_nvm.ac[0] ==0x0 )&& (sts_cfg_nvm.ac[19]==0x0)) From 7b1863a2dec3b0380a2daa2ca1685598f5eaa1f3 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Tue, 22 Oct 2024 19:06:15 +0800 Subject: [PATCH 03/12] refine R4 logic --- Core/Inc/sys_conf.h | 8 ++++---- Core/Src/main.c | 21 ++++++++------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index f10502a..4941614 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,12 +47,12 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_M +#define VERBOSE_LEVEL VLEVEL_OFF /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 1 +#define APP_LOG_ENABLED 0 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose @@ -75,13 +75,13 @@ extern "C" { * @brief Enable/Disable MCU Debugger pins (dbg serial wires) * @note by HW serial wires are ON by default, need to put them OFF to save power */ -#define DEBUGGER_ENABLED 1 +#define DEBUGGER_ENABLED 0 /** * @brief Disable Low Power mode * @note 0: LowPowerMode enabled. MCU enters stop2 mode, 1: LowPowerMode disabled. MCU enters sleep mode only */ -#define LOW_POWER_DISABLE 1 +#define LOW_POWER_DISABLE 0 /* USER CODE BEGIN EC */ diff --git a/Core/Src/main.c b/Core/Src/main.c index 2fc0a88..a24ded7 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -98,20 +98,15 @@ int main(void) /* Initialize all configured peripherals */ MX_GPIO_Init(); - MX_I2C2_Init(); - MX_DMA_Init(); - if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) == RESET) - { - - MX_LoRaWAN_Init(); - } else + if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) != RESET) { __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); - - /* Enable access to RTC domain for following wake-up source configuration */ - //HAL_PWR_EnableBkUpAccess(); - //__HAL_RCC_RTCAPB_CLK_ENABLE(); - + } + else + { + MX_I2C2_Init(); + MX_DMA_Init(); + MX_LoRaWAN_Init(); } /* USER CODE BEGIN 2 */ @@ -170,7 +165,7 @@ void SystemClock_Config(void) RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - RCC_ClkInitStruct.AHBCLK3Divider = RCC_SYSCLK_DIV1; + //RCC_ClkInitStruct.AHBCLK3Divider = RCC_SYSCLK_DIV1; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { From 072c801ca31eab7db43348b2c4adbbf9c2ec3abb Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Tue, 22 Oct 2024 21:44:53 +0800 Subject: [PATCH 04/12] refine STS_R1D --- Core/Inc/main.h | 15 +-- Core/Inc/sys_conf.h | 8 +- Core/Src/dma.c | 8 +- Core/Src/gpio.c | 2 +- Core/Src/main.c | 2 +- LoRaWAN/App/lora_app.c | 6 +- STM32CubeIDE/.cproject | 4 +- STM32CubeIDE/.project | 112 +++++++++++++++++- .../Release/Application/User/Core/subdir.mk | 40 +++---- .../Application/User/LoRaWAN/App/subdir.mk | 8 +- .../Application/User/LoRaWAN/Target/subdir.mk | 2 +- .../Application/User/STS/Core/Src/subdir.mk | 6 +- .../Application/User/STS/TOF/App/subdir.mk | 20 +++- .../Application/User/STS/TOF/Target/subdir.mk | 2 +- .../User/STS/TOF/vl53l0x/subdir.mk | 48 ++++++++ .../Drivers/BSP/STM32WLxx_Nucleo/subdir.mk | 23 ---- STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk | 2 +- .../Drivers/STM32WLxx_HAL_Driver/subdir.mk | 48 ++++---- .../Release/Middlewares/LoRaWAN/subdir.mk | 66 +++++------ .../Release/Middlewares/SubGHz_Phy/subdir.mk | 6 +- STM32CubeIDE/Release/Utilities/subdir.mk | 16 +-- STM32CubeIDE/Release/makefile | 2 + STM32CubeIDE/Release/sources.mk | 2 + STS/Core/Inc/yunhorn_sts_prd_conf.h | 3 + STS/Core/Src/yunhorn_sts_process.c | 10 +- STS/TOF/App/app_tof_vl53l0x_range.c | 2 +- STS/TOF/Target/app_tof_pin_conf.h | 4 +- 27 files changed, 313 insertions(+), 154 deletions(-) diff --git a/Core/Inc/main.h b/Core/Inc/main.h index d870785..f57aa1c 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -101,20 +101,21 @@ void Error_Handler(void); #define LED1_OFF HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET) #define LED1_STATE HAL_GPIO_ReadPin(LED1_GPIO_Port, LED1_Pin) #define LED1_TOGGLE HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin) -//#define MEMS_POWER_Pin GPIO_PIN_4 // PMU_ENABLE -//#define MEMS_POWER_GPIO_Port GPIOB // PMU_ENABLE - -//#define MEMS_RESET_Pin GPIO_PIN_4 -//#define MEMS_RESET_GPIO_Port GPIOB +#ifndef L8 +#define MEMS_POWER_Pin GPIO_PIN_4 // PMU_ENABLE +#define MEMS_POWER_GPIO_Port GPIOB // PMU_ENABLE +#define MEMS_RESET_Pin GPIO_PIN_4 +#define MEMS_RESET_GPIO_Port GPIOB +#endif #define PME_ON //HAL_GPIO_WritePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin, GPIO_PIN_SET ) #define PME_OFF //HAL_GPIO_WritePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin, GPIO_PIN_RESET ) #define PME_TOGGLE //HAL_GPIO_TogglePin(MEMS_POWER_GPIO_Port, MEMS_POWER_Pin) #if (defined(TOF_1)||defined(TOF_2)||defined(STS_R1)||defined(STS_R5)||defined(STS_R1D)) -#define VL53L0 +#define VL53L0 1U #elif (defined(STS_P2)||defined(STS_T6)) -#define VL53LX 1 +#define VL53LX 1U #endif /* DUAL TOF VL53L0 */ diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index 4941614..f10502a 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,12 +47,12 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_OFF +#define VERBOSE_LEVEL VLEVEL_M /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 0 +#define APP_LOG_ENABLED 1 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose @@ -75,13 +75,13 @@ extern "C" { * @brief Enable/Disable MCU Debugger pins (dbg serial wires) * @note by HW serial wires are ON by default, need to put them OFF to save power */ -#define DEBUGGER_ENABLED 0 +#define DEBUGGER_ENABLED 1 /** * @brief Disable Low Power mode * @note 0: LowPowerMode enabled. MCU enters stop2 mode, 1: LowPowerMode disabled. MCU enters sleep mode only */ -#define LOW_POWER_DISABLE 0 +#define LOW_POWER_DISABLE 1 /* USER CODE BEGIN EC */ diff --git a/Core/Src/dma.c b/Core/Src/dma.c index 45f5b1a..f15461e 100644 --- a/Core/Src/dma.c +++ b/Core/Src/dma.c @@ -50,12 +50,12 @@ void MX_DMA_Init(void) #if defined(VL53LX)||defined(VL53L0) /* DMA1_Channel3_IRQn interrupt configuration */ /* I2C2 RX */ - HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0); - HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn); + HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0); + HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn); /* DMA1_Channel4_IRQn interrupt configuration */ /* I2C2 TX */ - HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0); - HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn); + HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0); + HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn); #endif #endif diff --git a/Core/Src/gpio.c b/Core/Src/gpio.c index 172fbd9..724c7ac 100644 --- a/Core/Src/gpio.c +++ b/Core/Src/gpio.c @@ -81,7 +81,7 @@ void MX_GPIO_Init(void) GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(BUT3_GPIO_Port, &GPIO_InitStruct); -#if 0 +#if 1 /* STS-PME PB-4 */ /*Configure GPIO pins : PBPin PBPin PBPin */ GPIO_InitStruct.Pin = MEMS_POWER_Pin; diff --git a/Core/Src/main.c b/Core/Src/main.c index 66c56f9..03474b7 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -172,7 +172,7 @@ void SystemClock_Config(void) RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - //RCC_ClkInitStruct.AHBCLK3Divider = RCC_SYSCLK_DIV1; + RCC_ClkInitStruct.AHBCLK3Divider = RCC_SYSCLK_DIV1; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 141d956..84dcfeb 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -803,7 +803,7 @@ static void SendTxData(void) #endif #ifdef VL53L0 - STS_YunhornSTSEventP4_Process(); + //STS_YunhornSTSEventP4_Process(); STS_RR_Sensor_Read(&sts_rr_sensor_data); #ifdef STS_R1 AppData.Port = YUNHORN_STS_R1_LORA_APP_DATA_PORT; /* STS-R1 Data Port */ @@ -1022,6 +1022,8 @@ static void OnTxTimerEvent(void *context) UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP6), CFG_SEQ_Prio_0); #elif defined(STS_M1) UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), CFG_SEQ_Prio_0); +#elif defined(STS_R1D) + UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), CFG_SEQ_Prio_0); #endif UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0); @@ -1509,6 +1511,6 @@ void OnYunhornSTSTxPeriodicityChanged(uint32_t periodicity) UTIL_TIMER_Start(&TxTimer); /* USER CODE BEGIN OnYunhornSTSTxPeriodicityChanged */ - APP_LOG(TS_OFF, VLEVEL_H,"* STS TxPeriodicity = %u (sec)\r\n", TxPeriodicity/1000 ); + APP_LOG(TS_OFF, VLEVEL_M,"* STS TxPeriodicity = %u (sec)\r\n", TxPeriodicity/1000 ); /* USER CODE END OnYunhornSTSTxPeriodicityChanged */ } diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index 521ff96..aed9a96 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -133,7 +133,9 @@