From 47f192f2df5c40a0cc0f063e8dc98b813174b8d3 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期五, 18 十月 2024 18:27:10 +0800
Subject: [PATCH] 手环低功耗优化版本,手环绑定报警下15分钟内平均功耗26MA左右,修改手环range循环接收逻辑,减少帧间隔为600,通过修改震动1s停2s优化功耗,对应URT帧间隔400,能实现稳定测距

---
 user_config.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/user_config.h b/user_config.h
index ac62784..2595326 100644
--- a/user_config.h
+++ b/user_config.h
@@ -57,7 +57,7 @@
 /* =========================================================================================================================== */
 
 /** Enable trace output */
-#define TRACE_EN (0)
+#define TRACE_EN (1)
 
 /** Enable exception reboot */
 #ifndef TRACE_REBOOT_EN
@@ -147,6 +147,8 @@
 /** Antenna pattern: Linear or Square */
 #define SQUARE_4ANTS (0)
 
+#define RANGING_CORR (0)
+
 /** Velocity of propagation (%) */
 #define VP_VAL (100)
 
@@ -175,6 +177,7 @@
 #define INPUT_5V_Pin  IO_PIN_11
 #define RSSI_EN (1)
 
+#define _4G_USART_RX_Pin     IO_PIN_17
 #define ACCLERATE_DETECT_Pin IO_PIN_2
 #define SDA_PIN IO_PIN_3
 #define SER_PIN IO_PIN_3

--
Gitblit v1.9.3