From 767edd5ec2a133c04c5d84aeba4135f0bd21d23f Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 28 八月 2024 15:11:49 +0800 Subject: [PATCH] V3.1,改为最新逻辑。 1.铁鞋没有处于充电状态&&同时在运动状态,正常定位,有uwb发uwb跟gps数据,没有就看是否有gps数据,有发gps数据没有发lbs数据。 2.铁鞋没有处于充电状态&&同时在静止休状态,1秒钟发送一次状态和位置坐标;直到定位引擎回复收到消息后,设备停止发送状态进入休眠模式;20分钟后再次启动工作,重复(避免铁鞋被盗找不到) 3.铁鞋插上充电时候(延迟x秒后,为了确保能判断归箱)1秒钟发送一次在充电状态;定位引擎回复收到消息后,设备停止发送状态进入休眠模式(目的太阳能充电省电) 4.铁鞋充电到100%后启动4G工作,1秒钟发送一次充满电状态;定位引擎回复收到消息后,设备停止发送状态进入休眠模式(目的太阳能充电省电)。休眠模式是指:所有外设不再工作,不联网不测距。PS:每两种状态之间切换时,只要之前进入过休眠,就要重新开启4g,联网时间根据信号强度5-20s不等。重新联网期间没有办法上发任何数据。 --- MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm b/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm index 4e40675..c5bef95 100644 --- a/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm +++ b/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm @@ -21,8 +21,8 @@ Dialog DLL: TARMCM1.DLL V1.14.2.0 <h2>Project:</h2> -C:\git\XRange_Tag - 铁鞋\MDK-ARM\STM32L071RB.uvprojx -Project File Date: 05/24/2024 +C:\git\XRange_Tag - 铁鞋 - 新逻辑\MDK-ARM\STM32L071RB.uvprojx +Project File Date: 08/19/2024 <h2>Output:</h2> *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' @@ -34,19 +34,19 @@ void Uwb_Zubao_Poll(); ..\APL\App.c(100): warning: #223-D: function "HIDO_UtilSnprintf" declared implicitly HIDO_UINT32 u32Len = HIDO_UtilSnprintf((HIDO_CHAR *)LBS_data, sizeof(LBS_data), "%s,,,,,0,00,00.0,,,,,,*00,%X,%02x,%x,%d,%d,%d%\r\n", -..\APL\App.c(146): warning: #177-D: variable "powerled_state" was declared but never referenced +..\APL\App.c(185): warning: #177-D: variable "powerled_state" was declared but never referenced static u8 powerled_state=0; -..\APL\App.c(262): warning: #186-D: pointless comparison of unsigned integer with zero +..\APL\App.c(309): warning: #186-D: pointless comparison of unsigned integer with zero if (g_com_map[POWERx] < 0) -..\APL\App.c(233): warning: #177-D: variable "temp" was declared but never referenced +..\APL\App.c(280): warning: #177-D: variable "temp" was declared but never referenced float temp; -..\APL\App.c(234): warning: #177-D: variable "temp2" was declared but never referenced +..\APL\App.c(281): warning: #177-D: variable "temp2" was declared but never referenced uint16_t temp2; -..\APL\App.c(235): warning: #177-D: variable "i" was declared but never referenced +..\APL\App.c(282): warning: #177-D: variable "i" was declared but never referenced uint16_t i; -..\APL\App.c(415): warning: #177-D: variable "uwbchecksum" was declared but never referenced +..\APL\App.c(424): warning: #177-D: variable "uwbchecksum" was declared but never referenced u16 uwbchecksum; -..\APL\App.c(551): warning: #1-D: last line of file ends without a newline +..\APL\App.c(525): warning: #1-D: last line of file ends without a newline ////以上是源代码,被拆除时间接性关闭4G ..\APL\App.c(49): warning: #177-D: variable "l_bDismantle" was declared but never referenced static HIDO_BOOL l_bDismantle = HIDO_FALSE; @@ -64,31 +64,31 @@ static HIDO_UINT32 l_u32LocationTick = 0; ..\APL\App.c: 17 warnings, 0 errors linking... -Program Size: Code=61348 RO-data=5196 RW-data=1836 ZI-data=17156 +Program Size: Code=56216 RO-data=4908 RW-data=1660 ZI-data=16820 FromELF: creating hex file... "STM32L071RB\STM32L071RB.axf" - 0 Error(s), 17 Warning(s). <h2>Software Packages used:</h2> Package Vendor: ARM - http://www.keil.com/pack/ARM.CMSIS.5.7.0.pack - ARM.CMSIS.5.7.0 - CMSIS (Cortex Microcontroller Software Interface Standard) - * Component: CORE Version: 5.4.0 + http://www.keil.com/pack/ARM.CMSIS.5.8.0.pack + ARM.CMSIS.5.8.0 + CMSIS (Common Microcontroller Software Interface Standard) + * Component: CORE Version: 5.5.0 Package Vendor: Keil - http://www.keil.com/pack/Keil.STM32L0xx_DFP.2.2.0.pack - Keil.STM32L0xx_DFP.2.2.0 + https://www.keil.com/pack/Keil.STM32L0xx_DFP.2.3.0.pack + Keil.STM32L0xx_DFP.2.3.0 STMicroelectronics STM32L0 Series Device Support, Drivers and Examples <h2>Collection of Component include folders:</h2> .\RTE\_STM32L071RB - C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.7.0\CMSIS\Core\Include - C:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.2.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include + C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.8.0\CMSIS\Core\Include + C:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.3.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include <h2>Collection of Component Files used:</h2> - * Component: ARM::CMSIS:CORE:5.4.0 + * Component: ARM::CMSIS:CORE:5.5.0 Build Time Elapsed: 00:00:02 </pre> </body> -- Gitblit v1.9.3