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 | 98 ++++++++++++++++++++++++------------------------ 1 files changed, 49 insertions(+), 49 deletions(-) diff --git a/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm b/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm index 6daff3f..c5bef95 100644 --- a/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm +++ b/MDK-ARM/STM32L071RB/STM32L071RB.build_log.htm @@ -21,75 +21,75 @@ Dialog DLL: TARMCM1.DLL V1.14.2.0 <h2>Project:</h2> -C:\git\XRange_Tag - 铁鞋\MDK-ARM\STM32L071RB.uvprojx -Project File Date: 04/09/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' Build target 'STM32L071RB' -compiling dw_mbx_tag.c... -..\APL\dw_mbx_tag.c(100): warning: #940-D: missing return statement at end of non-void function "Anchor_RecNearPoll" - } -..\APL\dw_mbx_tag.c(105): warning: #177-D: variable "temp" was declared but never referenced - uint16_t i,j=0,k=0,temp[TAG_NUM_IN_SYS]; -..\APL\dw_mbx_tag.c(180): warning: #177-D: variable "target_tagi" was declared but never referenced - {uint8_t target_tagi; -..\APL\dw_mbx_tag.c(168): warning: #177-D: variable "tag_recv_interval" was declared but never referenced - uint16_t tag_recv_interval; -..\APL\dw_mbx_tag.c(169): warning: #177-D: variable "temp_tagpos" was declared but never referenced - float temp_tagpos; -..\APL\dw_mbx_tag.c(141): warning: #177-D: variable "send_len" was declared but never referenced - u8 send_len,i; -..\APL\dw_mbx_tag.c(143): warning: #177-D: variable "rec_syncid" was declared but never referenced - uint32_t rec_syncid,status_reg; -..\APL\dw_mbx_tag.c(144): warning: #177-D: variable "checksum" was declared but never referenced - uint16_t checksum; -..\APL\dw_mbx_tag.c(145): warning: #177-D: variable "kk" was declared but never referenced - uint8_t kk; -..\APL\dw_mbx_tag.c(31): warning: #550-D: variable "result" was set but never used - static u8 frame_len,timeout,result,rec_nearbase_num; -..\APL\dw_mbx_tag.c(35): warning: #550-D: variable "status_reg" was set but never used - static uint32_t status_reg,resp_tx_time; -..\APL\dw_mbx_tag.c(44): warning: #177-D: variable "ancidlist_rec" was declared but never referenced - static uint16_t ancidlist_rec[TAG_NUM_IN_SYS],ancidlist_send[TAG_NUM_IN_SYS],rec_ancidlist[TAG_NUM_IN_SYS],rec_ancdistlist[TAG_NUM_IN_SYS]; -..\APL\dw_mbx_tag.c(44): warning: #177-D: variable "ancidlist_send" was declared but never referenced - static uint16_t ancidlist_rec[TAG_NUM_IN_SYS],ancidlist_send[TAG_NUM_IN_SYS],rec_ancidlist[TAG_NUM_IN_SYS],rec_ancdistlist[TAG_NUM_IN_SYS]; -..\APL\dw_mbx_tag.c(45): warning: #550-D: variable "frame_seq_nb2" was set but never used - static u8 frame_seq_nb2,battary,button,uwb_losttimer,taglist_pos; -..\APL\dw_mbx_tag.c(45): warning: #550-D: variable "button" was set but never used - static u8 frame_seq_nb2,battary,button,uwb_losttimer,taglist_pos; -..\APL\dw_mbx_tag.c(45): warning: #550-D: variable "uwb_losttimer" was set but never used - static u8 frame_seq_nb2,battary,button,uwb_losttimer,taglist_pos; -..\APL\dw_mbx_tag.c(275): warning: #177-D: variable "checksum" was declared but never referenced - static u16 checksum; -..\APL\dw_mbx_tag.c: 17 warnings, 0 errors +compiling App.c... +..\APL\App.h(39): warning: #1295-D: Deprecated declaration Main_Poll - give arg types + void Main_Poll(); +..\APL\App.c(61): warning: #1295-D: Deprecated declaration Uwb_Zubao_Poll - give arg types + 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(185): warning: #177-D: variable "powerled_state" was declared but never referenced + static u8 powerled_state=0; +..\APL\App.c(309): warning: #186-D: pointless comparison of unsigned integer with zero + if (g_com_map[POWERx] < 0) +..\APL\App.c(280): warning: #177-D: variable "temp" was declared but never referenced + float temp; +..\APL\App.c(281): warning: #177-D: variable "temp2" was declared but never referenced + uint16_t temp2; +..\APL\App.c(282): warning: #177-D: variable "i" was declared but never referenced + uint16_t i; +..\APL\App.c(424): warning: #177-D: variable "uwbchecksum" was declared but never referenced + u16 uwbchecksum; +..\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; +..\APL\App.c(50): warning: #177-D: variable "l_bCancelAlarm" was declared but never referenced + static HIDO_BOOL l_bCancelAlarm = HIDO_FALSE; +..\APL\App.c(51): warning: #177-D: variable "l_u32DismantleAlarmTick" was declared but never referenced + static HIDO_UINT32 l_u32DismantleAlarmTick = 0; +..\APL\App.c(53): warning: #177-D: variable "l_bCharge" was declared but never referenced + static HIDO_BOOL l_bCharge = HIDO_FALSE; +..\APL\App.c(54): warning: #177-D: variable "l_u32CancelChargeReport" was declared but never referenced + static HIDO_BOOL l_u32CancelChargeReport = HIDO_FALSE; +..\APL\App.c(55): warning: #177-D: variable "l_u32ChargeTick" was declared but never referenced + static HIDO_UINT32 l_u32ChargeTick = 0; +..\APL\App.c(57): warning: #177-D: variable "l_u32LocationTick" was declared but never referenced + static HIDO_UINT32 l_u32LocationTick = 0; +..\APL\App.c: 17 warnings, 0 errors linking... -Program Size: Code=62144 RO-data=5196 RW-data=1724 ZI-data=18708 +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 -Build Time Elapsed: 00:00:01 + * Component: ARM::CMSIS:CORE:5.5.0 +Build Time Elapsed: 00:00:02 </pre> </body> </html> -- Gitblit v1.9.3