diff --git a/Core/Src/yunhorn_sts_motion_sensor.c b/Core/Src/yunhorn_sts_motion_sensor.c index 8812e2d..ef7ecc3 100644 --- a/Core/Src/yunhorn_sts_motion_sensor.c +++ b/Core/Src/yunhorn_sts_motion_sensor.c @@ -241,7 +241,7 @@ void STS_MOTION_SENSOR_WakeUp_Process(void) for (uint8_t ccc=0; ccc < 3; ccc++) { STS_MOTION_SENSOR_GetValue(); - + Display_Chart(fft_x, fft_y, fft_z, White, "V."); } } @@ -533,15 +533,15 @@ void Display_Chart(float *px,float *py, float *pz, SSD1306_COLOR color, char *ti ssd1306_SetDisplayOn(1); sprintf(t,"%s%s",title,"X"); Display_Line_Chart(px, spectrumPeak_x, freq_at_spectrumPeak_x,White,t); - HAL_Delay(500); + //HAL_Delay(500); sprintf(t,"%s%s",title,"Y"); Display_Line_Chart(py, spectrumPeak_y, freq_at_spectrumPeak_y,White,t); - HAL_Delay(500); + //HAL_Delay(500); sprintf(t,"%s%s",title,"Z"); Display_Line_Chart(pz, spectrumPeak_z, freq_at_spectrumPeak_z,White,t); - HAL_Delay(500); - //ssd1306_SetDisplayOn(0); + //HAL_Delay(500); + ssd1306_SetDisplayOn(0); } diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index f113d63..53c36bb 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -563,7 +563,7 @@ static void OnRxData(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params) { //TLV = type, length, variables YUNHORN_TODO_LIST // uint8_t tlv_buf[128]=""; // if (appData->BufferSize < 128) { -// memcpy(tlv_buf, appData->Buffer+1,appData->BufferSize); +// memcpy(tlv_buf, appData->Buffer,appData->BufferSize); // USER_APP_AUTO_RESPONDER_Parse(tlv_buf); // USER_APP_AUTO_RESPONDER_Process(tlv_cmd); // } @@ -596,8 +596,27 @@ enum { void USER_APP_AUTO_RESPONDER_Parse(char *tlv_buf) //YUNHORN_TODO_LIST { -// if ((tlv_buf[0] & STS_SENSOR_CTRL_CMD_POWER_ON_OFF) == 1) { -// + uint8_t i=0; + switch (tlv_buf[i+1]){ + case 'P': //Power on off + if (tlv_buf[i+2] == 0) { + +// STS_MOTION_SENSOR_Power_OFF(); + } else if (tlv_buf[i+2]==1) { + + // STS_MOTION_SENSOR_Power_ON(); + } + break; + case 'V': // version report + // STS_REPLY + break; + case 'C': + + break; + + if ((tlv_buf[1] == STS_SENSOR_CTRL_CMD_POWER_ON_OFF)) { } + + } /* if (tlv_buf[1] diff --git a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.axf b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.axf index e1f274d..312ed47 100644 Binary files a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.axf and b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.axf differ diff --git a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.build_log.htm b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.build_log.htm index 8a9f3a9..39c900a 100644 --- a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.build_log.htm +++ b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.build_log.htm @@ -28,99 +28,99 @@ Project File Date: 09/20/2022 *** Using Compiler 'V6.15', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' Rebuild target 'STS_MM_WLE5' assembling startup_stm32wl55xx_cm4.s... -compiling gpio.c... -compiling subghz.c... -compiling adc.c... -compiling dma.c... -compiling sys_app.c... -compiling timer_if.c... -compiling usart_if.c... -compiling sys_debug.c... compiling main.c... -compiling usart.c... -compiling rtc.c... +compiling dma.c... +compiling gpio.c... +compiling sys_app.c... compiling sys_sensors.c... -compiling adc_if.c... -compiling stm32wlxx_it.c... -compiling stm32wlxx_hal_msp.c... +compiling adc.c... compiling stm32_lpm_if.c... +compiling subghz.c... +compiling sys_debug.c... +compiling usart.c... +compiling stm32wlxx_it.c... +compiling rtc.c... +compiling usart_if.c... +compiling adc_if.c... +compiling timer_if.c... +compiling stm32wlxx_hal_msp.c... compiling ssd1306_fonts.c... -compiling flash_if.c... compiling app_lorawan.c... -compiling ssd1306.c... +compiling flash_if.c... compiling CayenneLpp.c... compiling lora_info.c... +compiling ssd1306.c... compiling radio_board_if.c... -compiling stm32wlxx_ll_adc.c... compiling ssd1306_tests.c... -compiling stm32wlxx_nucleo_radio.c... +compiling stm32wlxx_ll_adc.c... compiling stm32wlxx_nucleo.c... +compiling stm32wlxx_nucleo_radio.c... compiling lora_app.c... compiling stm32wlxx_hal_adc_ex.c... compiling yunhorn_sts_motion_sensor.c... compiling yunhorn_sts_motion_sensor_adxl345.c... compiling stm32wlxx_hal_flash.c... compiling stm32wlxx_hal_gpio.c... -compiling stm32wlxx_hal_dma_ex.c... compiling stm32wlxx_hal_adc.c... -compiling stm32wlxx_hal_flash_ex.c... -compiling stm32wlxx_hal_pwr.c... +compiling stm32wlxx_hal_dma_ex.c... compiling stm32wlxx_hal_rcc_ex.c... -compiling stm32wlxx_hal_dma.c... +compiling stm32wlxx_hal_flash_ex.c... compiling stm32wlxx_hal_rcc.c... +compiling stm32wlxx_hal_pwr.c... +compiling stm32wlxx_hal_dma.c... compiling stm32wlxx_hal_pwr_ex.c... compiling stm32wlxx_hal_cortex.c... compiling stm32wlxx_hal.c... compiling stm32wlxx_hal_exti.c... -compiling stm32wlxx_hal_subghz.c... compiling stm32wlxx_hal_rtc.c... +compiling stm32wlxx_hal_subghz.c... compiling stm32wlxx_hal_rtc_ex.c... compiling cmac.c... compiling stm32wlxx_hal_i2c_ex.c... compiling system_stm32wlxx.c... compiling lorawan_aes.c... -compiling Region.c... compiling stm32wlxx_hal_uart_ex.c... +compiling Region.c... compiling soft-se.c... compiling stm32wlxx_hal_tim_ex.c... compiling LmhpCompliance.c... -compiling RegionAS923.c... compiling RegionAU915.c... compiling RegionBaseUS.c... -compiling RegionCN470A20.c... +compiling RegionAS923.c... compiling RegionCN470.c... -compiling RegionCN470B20.c... +compiling RegionCN470A20.c... compiling RegionCN470A26.c... compiling RegionCN470B26.c... +compiling RegionCN470B20.c... +compiling stm32wlxx_hal_uart.c... compiling RegionCN779.c... compiling RegionEU433.c... -compiling stm32wlxx_hal_uart.c... compiling RegionEU868.c... -compiling RegionCommon.c... -compiling RegionKR920.c... +compiling stm32wlxx_hal_tim.c... compiling RegionIN865.c... +compiling RegionKR920.c... +compiling RegionCommon.c... compiling RegionRU864.c... compiling RegionUS915.c... -compiling stm32wlxx_hal_tim.c... compiling LoRaMacAdr.c... compiling stm32wlxx_hal_i2c.c... compiling LoRaMacClassB.c... -compiling LoRaMacCommands.c... -compiling LoRaMacConfirmQueue.c... compiling LoRaMacParser.c... compiling LoRaMacSerializer.c... -compiling LoRaMacCrypto.c... +compiling LoRaMacCommands.c... +compiling LoRaMacConfirmQueue.c... compiling NvmDataMgmt.c... +compiling LoRaMacCrypto.c... compiling utilities.c... compiling stm32_mem.c... compiling stm32_systime.c... -compiling stm32_adv_trace.c... -compiling LmHandler.c... -compiling radio_fw.c... compiling stm32_tiny_sscanf.c... +compiling stm32_adv_trace.c... compiling stm32_tiny_vsnprintf.c... -compiling stm32_lpm.c... +compiling radio_fw.c... +compiling LmHandler.c... compiling stm32_seq.c... +compiling stm32_lpm.c... compiling stm32_timer.c... compiling BayesFunctions.c... compiling radio_driver.c... @@ -128,10 +128,10 @@ compiling radio.c... compiling LoRaMac.c... compiling ControllerFunctions.c... compiling ComplexMathFunctions.c... -compiling BasicMathFunctions.c... compiling FastMathFunctions.c... -compiling DistanceFunctions.c... +compiling BasicMathFunctions.c... compiling SVMFunctions.c... +compiling DistanceFunctions.c... compiling StatisticsFunctions.c... compiling SupportFunctions.c... compiling MatrixFunctions.c... @@ -139,7 +139,7 @@ compiling CommonTables.c... compiling TransformFunctions.c... compiling FilteringFunctions.c... linking... -Program Size: Code=72152 RO-data=124272 RW-data=292 ZI-data=60740 +Program Size: Code=72172 RO-data=124276 RW-data=292 ZI-data=60740 FromELF: creating hex file... "LoRaWAN_End_Node\STS_M7_919_R1.axf" - 0 Error(s), 0 Warning(s). @@ -169,21 +169,21 @@ Package Vendor: Keil * Component: ARM::CMSIS:CORE:5.4.0 * Component: ARM::CMSIS:DSP:Source:1.8.0 - Source file: CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c - Source file: CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c - Source file: CMSIS\DSP\Source\DistanceFunctions\DistanceFunctions.c - Source file: CMSIS\DSP\Source\BayesFunctions\BayesFunctions.c + Source file: CMSIS\DSP\Source\BasicMathFunctions\BasicMathFunctions.c Include file: CMSIS\DSP\Include\arm_math.h - Source file: CMSIS\DSP\Source\SVMFunctions\SVMFunctions.c + Source file: CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c Source file: CMSIS\DSP\Source\FilteringFunctions\FilteringFunctions.c - Source file: CMSIS\DSP\Source\StatisticsFunctions\StatisticsFunctions.c - Source file: CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c - Source file: CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c Source file: CMSIS\DSP\Source\CommonTables\CommonTables.c + Source file: CMSIS\DSP\Source\SVMFunctions\SVMFunctions.c + Source file: CMSIS\DSP\Source\BayesFunctions\BayesFunctions.c + Source file: CMSIS\DSP\Source\StatisticsFunctions\StatisticsFunctions.c + Source file: CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c + Source file: CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c + Source file: CMSIS\DSP\Source\DistanceFunctions\DistanceFunctions.c Source file: CMSIS\DSP\Source\ComplexMathFunctions\ComplexMathFunctions.c Source file: CMSIS\DSP\Source\MatrixFunctions\MatrixFunctions.c - Source file: CMSIS\DSP\Source\BasicMathFunctions\BasicMathFunctions.c -Build Time Elapsed: 00:00:07 + Source file: CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c +Build Time Elapsed: 00:00:06 diff --git a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.htm b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.htm index 787e717..a998bd5 100644 --- a/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.htm +++ b/MDK-ARM/LoRaWAN_End_Node/STS_M7_919_R1.htm @@ -3,7 +3,7 @@ Static Call Graph - [LoRaWAN_End_Node\STS_M7_919_R1.axf]

Static Call Graph for image LoRaWAN_End_Node\STS_M7_919_R1.axf


-

#<CALLGRAPH># ARM Linker, 6150002: Last Updated: Fri Sep 23 13:42:26 2022 +

#<CALLGRAPH># ARM Linker, 6150002: Last Updated: Fri Sep 23 16:39:42 2022

Maximum Stack Usage = 1000 bytes + Unknown(Cycles, Untraceable Function Pointers)

Call chain for Maximum Stack Depth:

@@ -29,7 +29,7 @@ Mutually Recursive functions Function Pointers