minor change
This commit is contained in:
parent
660176b7e3
commit
ddd4f3ed02
|
@ -38,7 +38,7 @@
|
|||
/* USER CODE BEGIN Includes */
|
||||
extern volatile sts_cfg_nvm_t sts_cfg_nvm;
|
||||
extern volatile uint8_t sts_ac_code[20];
|
||||
volatile uint8_t sts_service_mask;
|
||||
volatile uint8_t sts_service_mask=0;
|
||||
volatile uint32_t rfac_timer;
|
||||
volatile uint8_t sensor_data_ready;
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ void LoRaWAN_Init(void)
|
|||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventRFAC), UTIL_SEQ_RFU, STS_YunhornSTSEventRFAC_Process);
|
||||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), UTIL_SEQ_RFU, STS_YunhornSTSEventP1_Process);
|
||||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventP2), UTIL_SEQ_RFU, STS_YunhornSTSEventP2_Process);
|
||||
#if 1
|
||||
#if 0
|
||||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventP3), UTIL_SEQ_RFU, STS_YunhornSTSEventP3_Process);
|
||||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), UTIL_SEQ_RFU, STS_YunhornSTSEventP4_Process);
|
||||
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_YunhornSTSEventP5), UTIL_SEQ_RFU, STS_YunhornSTSEventP5_Process);
|
||||
|
@ -807,7 +807,7 @@ static void SendTxData(void)
|
|||
UTIL_TIMER_Time_t nextTxIn = 0;
|
||||
uint8_t i = 0;
|
||||
|
||||
//if (LmHandlerIsBusy() == false)
|
||||
if (LmHandlerIsBusy() == false)
|
||||
{
|
||||
AppData.Port = LORAWAN_USER_APP_PORT;
|
||||
//AppData.Buffer[i++] = AppLedStateOn; //#01
|
||||
|
@ -906,14 +906,13 @@ static void OnTxTimerEvent(void *context)
|
|||
|
||||
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
|
||||
|
||||
if (sts_ac_code[0]==0x0) {
|
||||
if ((sts_ac_code[0]==0x0)&&(sts_ac_code[19]==0x0)) {
|
||||
/* RFAC Challenge */
|
||||
if (rfac_timer < (STS_BURN_IN_RFAC+3)) {
|
||||
rfac_timer ++;
|
||||
|
||||
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventRFAC), CFG_SEQ_Prio_0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*Wait for next tx slot*/
|
||||
|
@ -1009,6 +1008,7 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams)
|
|||
|
||||
APP_LOG(TS_OFF, VLEVEL_H, "###### U/L FRAME:JOIN | DR:%d | PWR:%d\r\n", joinParams->Datarate, joinParams->TxPower);
|
||||
}
|
||||
heart_beat_timer = 1;
|
||||
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
|
||||
/* USER CODE END OnJoinRequest_1 */
|
||||
}
|
||||
|
@ -1665,7 +1665,7 @@ void USER_APP_AUTO_RESPONDER_Parse(char *tlv_buf, size_t tlv_buf_size)
|
|||
periodicity_length *= 3600;
|
||||
}
|
||||
TxPeriodicity = periodicity_length*1000; //translate to 1000ms=1s
|
||||
HeartBeatPeriodicity = TxPeriodicity;
|
||||
//HeartBeatPeriodicity = TxPeriodicity;
|
||||
|
||||
OnTxPeriodicityChanged(TxPeriodicity);
|
||||
i = 0;
|
||||
|
@ -1822,8 +1822,6 @@ void USER_APP_AUTO_RESPONDER_Parse(char *tlv_buf, size_t tlv_buf_size)
|
|||
STS_Combined_Status_Processing();
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else if (tlv_buf_size == 4 ) // P WORK mode switch
|
||||
{
|
||||
invalid_flag = 0;
|
||||
|
@ -2201,8 +2199,6 @@ void STS_REBOOT_CONFIG_Init(void)
|
|||
|
||||
OnRestoreSTSCFGContextProcess();
|
||||
|
||||
|
||||
|
||||
/* USER CODE END OnRestoreContextRequest_Last */
|
||||
}
|
||||
|
||||
|
@ -2266,7 +2262,6 @@ void OnRestoreSTSCFGContextProcess(void)
|
|||
sts_ac_code[j] = sts_cfg_nvm.ac[j];
|
||||
}
|
||||
|
||||
|
||||
#ifdef YUNHORN_STS_O7_ENABLED
|
||||
if ((sts_version == sts_cfg_nvm.version)&& (NVM_CFG_PARAMETER_SIZE == sts_cfg_nvm.length))
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ STS_O7 For Occupancy sensors
|
|||
|
||||
2024-05-14 STS_O6
|
||||
|
||||
STS_O6 For Occupancy sensors without FALL DETECTION
|
||||
2024-05-17 STS_O6 For Occupancy sensors without FALL DETECTION
|
||||
|
||||
******************************************************************************
|
||||
|
||||
|
|
Loading…
Reference in New Issue