当前位置: 首页 > news >正文

UWB功耗大数据插桩调研

一、摘要

UWB功耗点

插桩点

日志关键字

电流

蓝牙持锁

BatteryStats的锁统计

vendor_bluetooth_lock

30~40mA

测距

UwbSessionManager.startRanging

UwbSessionManager.stoptRanging

或接入fadiKey Uwb状态广播

"com.fadiui.dkservice.action.uwb.state.change"

startRanging|stopRanging|UwbUciCore

60~90mA

(无持锁测距~持锁测距)

初步结论:可行,加下代码,后面实测下是否正确触发。

UWB 命令集:

adb shell dumpsys uwb

adb shell cmd uwb help

二、UWB架构

2.1 UWB 堆栈架构

UWB 堆栈由 UWB Mainline 模块和 UWB 芯片供应商提供的 HAL 实现组成。

0

2.2 UWB framework

0

三、功耗相关日志

3.1 蓝牙持锁日志

日志关键字:vendor_bluetooth_lock

AP_Log/50_2023-07-29_101149/kernel.txt:8866:07-29 10:13:32.909 10241 10241 I PM      : PM: Pending Wakeup Sources: vendor_bluetooth_lock 898000.qcom,qup_uartAP_Log/50_2023-07-29_101149/kernel.txt:8870:07-29 10:13:32.979 10241 10241 I Abort   : Pending Wakeup Sources: vendor_bluetooth_lock 898000.qcom,qup_uartAP_Log/50_2023-07-29_101149/main.txt:34388:07-29 10:17:02.969  1301  1301 W binder:1301_2: type=1400 audit(0.0:838): avc: denied { read } for name="ssrdump" dev="dm-14" ino=259 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:vendor_ramdump_vendor_data_file:s0 tclass=dir permissive=0AP_Log/51_2023-07-29_101721_boot/kernel.txt:3286:07-29 10:17:38.461   132   132 I [fadi]: active wakeup source: vendor_bluetooth_lock, active_since: 848 ms , active_count: 3 , pending suspend count: 0AP_Log/51_2023-07-29_101721_boot/kernel.txt:4219:07-29 10:18:58.329   132   132 I [fadi]: active wakeup source: vendor_bluetooth_lock, active_since: 1049 ms , active_count: 12 , pending suspend count: 0AP_Log/51_2023-07-29_101721_boot/kernel.txt:5421:07-29 10:20:08.471   132   132 I [fadi]: active wakeup source: vendor_bluetooth_lock, active_since: 161 ms , active_count: 17 , pending suspend count: 0AP_Log/51_2023-07-29_101721_boot/kernel.txt:9321:07-29 10:29:00.609   132   132 I [fadi]: active wakeup source: vendor_bluetooth_lock, active_since: 366 ms , active_count: 42 , pending suspend count: 0

0

3.2 UWB测距

日志关键字:startRanging|stopRanging|UwbUciCore

0

AP_Log/51_2023-07-29_101721_boot/main.txt:58342:07-29 10:17:42.868  1862  5087 I UwbUciCore: uwb_ucif_proc_ranging_data: ranging_measures_length = 48 range_data_ntf_len = 232AP_Log/51_2023-07-29_101721_boot/main.txt:58343:07-29 10:17:42.868  1862  5087 I UwbUciCore: uwa_dm_uwb_response_cback:UWB_VENDOR_SPECIfIC_UCI_NTF_EVT(0x401d)AP_Log/51_2023-07-29_101721_boot/main.txt:58347:07-29 10:17:42.869  1862  5087 I UwbUciCore: uwa_dm_uwb_response_cback:UWB_RANGE_DATA_REVT(0x4011)AP_Log/51_2023-07-29_101721_boot/main.txt:58380:07-29 10:17:43.061  1862  5087 I UwbUciCore: uwb_ucif_process_event enter gid:0x62 status:0x1AP_Log/51_2023-07-29_101721_boot/main.txt:58381:07-29 10:17:43.061  1862  5087 I UwbUciCore: uwb_ucif_process_event: UWB received ntf gid:2AP_Log/51_2023-07-29_101721_boot/main.txt:58382:07-29 10:17:43.061  1862  5087 I UwbUciCore: uwb_ucif_proc_ranging_data: ranging_measures_length = 48 range_data_ntf_len = 232AP_Log/51_2023-07-29_101721_boot/main.txt:58383:07-29 10:17:43.061  1862  5087 I UwbUciCore: uwa_dm_uwb_response_cback:UWB_VENDOR_SPECIfIC_UCI_NTF_EVT(0x401d)AP_Log/51_2023-07-29_101721_boot/main.txt:58387:07-29 10:17:43.061  1862  5087 I UwbUciCore: uwa_dm_uwb_response_cback:UWB_RANGE_DATA_REVT(0x4011)AP_Log/51_2023-07-29_101721_boot/main.txt:58480:07-29 10:17:43.255  1862  5087 I UwbUciCore: uwb_ucif_process_event enter gid:0x62 status:0x2AP_Log/51_2023-07-29_101721_boot/main.txt:58481:07-29 10:17:43.255  1862  5087 I UwbUciCore: uwb_ucif_process_event: UWB received ntf gid:2AP_Log/51_2023-07-29_101721_boot/main.txt:58482:07-29 10:17:43.255  1862  5087 I UwbUciCore: uwb_ucif_proc_ranging_data: ranging_measures_length = 48 range_data_ntf_len = 232AP_Log/51_2023-07-29_101721_boot/main.txt:58483:07-29 10:17:43.255  1862  5087 I UwbUciCore: uwa_dm_uwb_response_cback:UWB_VENDOR_SPECIfIC_UCI_NTF_EVT(0x401d)

0

四、UWB 命令集

UWB 命令集:

adb shell dumpsys uwb

adb shell cmd uwb help

adb shell cmd uwb status

adb shell cmd uwb get-country-code

adb shell cmd uwb get-log-mode

adb shell cmd uwb enable-uwb

adb shell cmd uwb disable-uwb

adb shell cmd uwb simulate-app-state-change

adb shell cmd uwb start-fira-ranging-session

adb shell cmd uwb start-ccc-ranging-session

adb shell cmd uwb start-radar-session

adb shell cmd uwb reconfigure-fira-ranging-session

adb shell cmd uwb get-ranging-session-reports

adb shell cmd uwb get-all-ranging-session-reports

adb shell cmd uwb stop-ranging-session

adb shell cmd uwb stop-radar-session

adb shell cmd uwb stop-all-ranging-sessions

adb shell cmd uwb stop-all-radar-sessions

adb shell cmd uwb get-specification-info

adb shell cmd uwb enable-diagnostics-notification

adb shell cmd uwb disable-diagnostics-notification

adb shell cmd uwb take-bugreport

http://www.lryc.cn/news/534944.html

相关文章:

  • 郭羽冲IOI2024参赛总结
  • 03:Spring之Web
  • lx-music落雪音乐-开源免费听歌软件[提供最新音源使用, 支持全网平台, 支持无损音乐下载]
  • 129,【2】buuctf [BJDCTF2020]EzPHP
  • Python 面向对象(类,对象,方法,属性,魔术方法)
  • C语言之扫雷
  • 半导体制造工艺讲解
  • Ollama+DeepSeek R1+AnythingLLM训练自己的AI智能助手
  • 基于java手机销售网站设计和实现(LW+源码+讲解)
  • 5-R循环
  • Qlabel 每五个一换行 并、号分割
  • 加速PyTorch模型训练:自动混合精度(AMP)
  • 【py】python安装教程(Windows系统,python3.13.2版本为例)
  • Django REST Framework:如何获取序列化后的ID
  • QT修仙笔记 事件大圆满 闹钟大成
  • Leetcode - 149双周赛
  • 解决 ComfyUI-Impact-Pack 中缺少 UltralyticsDetectorProvider 节点的问题
  • 使用Kickstart配置文件封装操作系统实现Linux的自动化安装
  • Android笔记【snippet】
  • zsh: command not found: conda
  • 【知识科普】CPU,GPN,NPU知识普及
  • 【C++八股】struct和Class的区别
  • 鹧鸪云光伏仓储、物料管理软件详细功能
  • bazel 小白理解
  • MVC(Model-View-Controller)framework using Python ,Tkinter and SQLite
  • WPF 设置宽度为 父容器 宽度的一半
  • java项目之在线心理评测与咨询管理系统(源码+文档)
  • 【STM32系列】利用MATLAB配合ARM-DSP库设计FIR数字滤波器(保姆级教程)
  • Springboot框架扩展功能的使用
  • yum报错 Could not resolve host: mirrorlist.centos.org