CarService的创建与signal的传递三(数据模拟)
替换如下报错了 喜闻乐见07-3013:53:43.918216216I servicemanager: Found android.hardware.automotive.vehicle.IVehicle/defaultindevice VINTF manifest. 07-3013:53:43.918224224I ServiceManager: Waitingforserviceandroid.hardware.automotive.vehicle.IVehicle/defaulton/dev/binder... 07-3013:53:44.455476621D EGL_emulation: app_time_stats:avg33.70msmin30.92msmax38.32mscount3007-3013:53:44.64110321032W ServiceManager: Waited one secondforandroid.hardware.automotive.vehicle.IVehicle/default(isservicestarted? are binder threads started and available?)07-3013:53:44.642216216I servicemanager: Sinceandroid.hardware.automotive.vehicle.IVehicle/defaultcould not be found, trying to start it as a lazy AIDLservice07-3013:53:44.6482161260W libc:Unable tosetpropertyctl.interface_starttoaidl/android.hardware.automotive.vehicle.IVehicle/default:error code: 0x20 07-3013:53:44.6482161260I servicemanager: Tried to start aidlserviceandroid.hardware.automotive.vehicle.IVehicle/default as a lazy service, but was unable to. Usually this happens when aserviceis not installed, butiftheserviceis intended to be used as a lazy service,thenit may be configured incorrectly. 07-3013:53:44.76600E init:Control message: Could notfindaidl/android.hardware.automotive.vehicle.IVehicle/defaultforctl.interface_start from pid:216(/system/bin/servicemanager)07-3013:53:44.919224546W carwatchdogd: Watchdogserviceis not initialized.se权限/home/maqi/android13-r44/device/generic/car/common/sepolicy/file_contexts记得 s0后面空出一行不然能编过但是起不来# Audio HAL/vendor/bin/hw/android\.hardware\.audio\.service-caremu u:object_r:hal_audio_caremu_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle-OemVhalService u:object_r:hal_vehicle_default_exec:s0json路径automotive/vhal,三处配置都要对应上#car.mk# Auto modulesPRODUCT_PACKAGES\android.hardware.automotive.vehicle-OemVhalService\vehicle_props_oem.json\android.hardware.broadcastradio2.0-service\android.hardware.audio.service-caremu#Cauto hardwarestd::make_uniqueOemVehicleHardware(/vendor/etc/automotive/vhal/vehicle_props_oem.json, nullptr);# Android.bprebuilt_etc{name:vehicle_props_oem.json, src:vehicle_props.json, filename:vehicle_props_oem.json, // 重命名安装文件避免跟默认的 vehicle_props.json 冲突 sub_dir:automotive/vhal, // 安装路径/vendor/etc/automotive/vhal/vehicle_props_oem.json vendor: true,}adb获取属性adb shell cmd car_service get-carpropertyconfig **All properties** Property:0x11400101, Property name:0x11400101, access:0x1, changeMode:0x0, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400207, Property name:0x11400207, access:0x1, changeMode:0x2, config:[], fs min:1.000000, fs max:10.000000 Property:0x11400407, Property name:0x11400407, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 areaId:0x0, f min:0.000000, f max:0.000000, i min:1, i max:8, i64 min:0, i64 max:0 Property:0x11400408, Property name:TURN_SIGNAL_STATE, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400e03, Property name:HAZARD_LIGHTS_STATE, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400e13, Property name:HAZARD_LIGHTS_SWITCH, access:0x3, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x21400601, Property name:0x21400601, access:0x3, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 areaId:0x1, f min:0.000000, f max:0.000000, i min:0, i max:3, i64 min:0, i64 max:0excel表格完美对应启动日志 所有类型得数据均已经初始化行1323: 07-3018:00:57.936240240I OemVhalService: OEM VHAL Service starting... 行1324: 07-3018:00:57.936240240I OemVehicleHardware: loading properties from /vendor/etc/automotive/vhal/vehicle_props_oem.json 行1326: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400408 type:INT32(TURN_SIGNAL_STATE)initialValuewriteres ok?1行1327: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400e03 type:INT32(HAZARD_LIGHTS_STATE)initialValuewriteres ok?1行1328: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400e13 type:INT32(HAZARD_LIGHTS_SWITCH)initialValuewriteres ok?1行1329: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400207 type:FLOAT(PERF_VEHICLE_SPEED)initialValuewriteres ok?1行1330: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400407 type:INT32(GEAR_SELECTION)initialValuewriteres ok?1行1331: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400101 type:STRING(INFO_VIN)initialValuewriteres ok?1行1332: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x21400601 type:INT32(VENDOR_FRAGRANCE_SWITCH)initialValuewriteres ok?1行1333: 07-3018:00:57.937240240I OemVehicleHardware: loaded7properties 行1335: 07-3018:00:57.938240240I OemVhalService: OEM VHALserviceregistered as android.hardware.automotive.vehicle.IVehicle/default只读 写入会报错maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service set-property-value 0x1140040702Cannotseta property: android.os.ServiceSpecificException: Failed tosetvalue for: 0x11400407, areaId: 0x0, error: android.os.ServiceSpecificException: failed tosetvalue: android.hardware.automotive.vehicle.VehiclePropValue{timestamp:52746268485, areaId:0, prop:289408007, status:0, value: android.hardware.automotive.vehicle.RawPropValues{int32Values:[2], floatValues:[], int64Values:[], byteValues:[], stringValue:}}(code4)(code4)可读写属性手动下设和获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service set-property-value 0x11400e1300Property(0x11400e13)issetto0successfully maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x11400e130Property:0x11400e13, status:0, timestamp:117038357140, zone: 0x0, floatValues:[], int32Values:[0], int64Values:[], bytes:[], string:float类型获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x114002070Property:0x11400207, status:0, timestamp:7343356352, zone: 0x0, floatValues:[0.0], int32Values:[0], int64Values:[], bytes:[], string:String类型获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x114001010Property:0x11400101, status:0, timestamp:7343380825, zone: 0x0, floatValues:[], int32Values:[0], int64Values:[], bytes:[], string: MYOEM2024DEMO0001用到的指令汇总adb shell dumpsys car_service|grep-A20CAR.PropertyHalServiceadb shell cmd car_service list-vhal-props adb shell cmd car_service get-vhal-backend adb shell cmd car_service set-property-value 0x11400e1301adb shell cmd car_service get-property-value 0x114001010adb shellpkill-fcom.android.car

相关新闻

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】 前言 欢迎加入开源鸿蒙跨平台社区:https://openharmonycrossplatform.csdn.net 猫猫大作战的截图分享、存档导入、道具图片传输都依赖 UTD(Uniform DataType&#…

2026/7/31 15:45:13 阅读更多 →
Lua行为树AI性能优化实战:从卡顿到流畅的四个关键点

Lua行为树AI性能优化实战:从卡顿到流畅的四个关键点

1. 项目概述:当AI卡顿成为游戏体验的“隐形杀手” 在开发一款中度复杂度的RPG手游时,我们遇到了一个棘手的问题:随着游戏进程推进,地图上的NPC和怪物数量增多,AI的决策开始变得迟钝。尤其是在大规模团战场景&#xff0…

2026/7/31 15:44:12 阅读更多 →
能源管理平台、智慧园区多系统数据对接解决方案

能源管理平台、智慧园区多系统数据对接解决方案

摘要 智慧园区、建筑节能、能源管控项目普遍存在子系统众多问题:空调自控系统、能耗采集设备、安防系统、楼宇自控、园区收费系统相互独立。数据孤岛严重,难以统一汇总至能源管理平台。本文提供轻量化集成方案,快速完成多源数据采集与标准化…

2026/7/31 15:44:12 阅读更多 →

最新新闻

LFM2.5-Encoders:CPU长文本AI推理性能优化实战指南

LFM2.5-Encoders:CPU长文本AI推理性能优化实战指南

如果你正在为长文本AI推理的CPU性能瓶颈而头疼,那么LFM2.5-Encoders的出现可能正是你等待的解决方案。传统上,处理长上下文文档(如法律合同、科研论文或代码库分析)往往需要昂贵的GPU资源,但最新发布的LFM2.5-Encoders…

2026/7/31 16:23:23 阅读更多 →
UE事件分发系统:从委托到自定义事件驱动的架构设计与实现

UE事件分发系统:从委托到自定义事件驱动的架构设计与实现

1. 项目概述:为什么要在UE里再造一个事件分发轮子? 在虚幻引擎(UE)的开发中,事件驱动是构建复杂交互和系统解耦的核心模式。引擎本身提供了强大的委托(Delegate)和多播委托(Multicas…

2026/7/31 16:23:23 阅读更多 →
清华字节Seed发布 Direct-OPD:小模型先做强化学习,强模型也能直接受益

清华字节Seed发布 Direct-OPD:小模型先做强化学习,强模型也能直接受益

一句话讲清楚👉🏻 Direct-OPD 从小模型强化学习前后的两个检查点中提取策略变化,再用这份变化训练更强模型; Qwen3-1.7B 在 AIME 2024 上从 48.3% 提升到 58.3%,迁移过程使用 8 张 A100 约四小时。 给推理模型做可验证…

2026/7/31 16:23:23 阅读更多 →
ReAct、CoT、ToT:Agent 推理模式的三板斧,你真的理解对了吗

ReAct、CoT、ToT:Agent 推理模式的三板斧,你真的理解对了吗

很多人把 CoT、ReAct、ToT 当成"初级→高级"的升级关系,好像 ToT 一定比 CoT 好。但实际测试下来,80% 的 Agent 任务用 ReAct 就够了,ToT 的成本是 ReAct 的 5-10 倍,效果提升可能只有几个百分点。 阅读提示 适合谁看&a…

2026/7/31 16:23:23 阅读更多 →
深度拆解SkillCorpus:首个大规模智能体开源Skill筛选框架(附下载)

深度拆解SkillCorpus:首个大规模智能体开源Skill筛选框架(附下载)

如今的大模型能力出众,但如果只靠模型自身预训练知识,很难胜任复杂、多步骤、强规范的落地任务。业界想到了一个高效解法,将成套可复用的标准化操作流程封装成SKILL.md格式文件,也就是技能(Skill)。AI 执行…

2026/7/31 16:23:23 阅读更多 →
答辩演讲稿撰写要点及实用范例参考指南

答辩演讲稿撰写要点及实用范例参考指南

做科研最耗人的,从来不是难题本身,而是检索、整理、写作、分析里的重复劳动——2026年,一批更精准、更贴合科研全流程的AI工具已成熟,能帮你把时间还给思考。本文实测7款全新工具,覆盖文献检索、阅读、写作、数据分析、…

2026/7/31 16:22:23 阅读更多 →

日新闻

物理复制比逻辑复制好在哪?数据库复制原理详解

物理复制比逻辑复制好在哪?数据库复制原理详解

数据库复制是把主库数据同步到备库的机制,分为逻辑复制和物理复制两种。逻辑复制传输的是 SQL 语句或行变更事件,物理复制传输的是存储引擎底层的物理日志。阿里云 PolarDB(云原生数据库)采用物理复制,在同步延迟、数据…

2026/7/31 0:00:34 阅读更多 →
BilibiliDown:3分钟学会B站视频下载的终极指南

BilibiliDown:3分钟学会B站视频下载的终极指南

BilibiliDown:3分钟学会B站视频下载的终极指南 【免费下载链接】BilibiliDown (GUI-多平台支持) B站 哔哩哔哩 视频下载器。支持稍后再看、收藏夹、UP主视频批量下载|Bilibili Video Downloader 😳 项目地址: https://gitcode.com/gh_mirrors/bi/Bilib…

2026/7/31 0:00:34 阅读更多 →
有哪些游戏数据AI平台?游戏行业Data+AI融合方案盘点

有哪些游戏数据AI平台?游戏行业Data+AI融合方案盘点

当前,游戏行业的“DataAI融合”已从概念验证进入价值落地阶段。根据IDC 2025年数据,中国AI游戏云市场规模已达18.6亿元;同时,游戏研发环节AI渗透率高达86%,生成式AI内容普及率超过50%。面对庞大的市场,游戏…

2026/7/31 0:00:34 阅读更多 →

周新闻

深度学习道路桥梁裂缝检测系统 道路桥梁裂缝检测数据集 道路桥梁病害识别检测数据集

深度学习道路桥梁裂缝检测系统 道路桥梁裂缝检测数据集 道路桥梁病害识别检测数据集

深度学习道路桥梁裂缝检测系统 数据集6000张 完整源码已标注数据集训练好的模型环境配置教程程序运行说明文档,可以直接使用!系统支持图片、视频、摄像头等多种方式检测裂缝,功能强大实用。 1数据集6000张 8各类别

2026/7/31 1:03:03 阅读更多 →
深度学习YOLO模型如何训练 PUBG 绝地求生目标检测数据集

深度学习YOLO模型如何训练 PUBG 绝地求生目标检测数据集

pubg数据集 精选原图1.42万数据 1.49万标签 无任何重复、算法增强或冗余图像! pubg绝地求生目标检测数据集 1分类:e_body,14905个标签,txt格式 共计14244张图,99%为640*640尺寸图像 适合yolo目标检测、AI训练关键词&am…

2026/7/29 14:34:28 阅读更多 →
Apex英雄目标检测数据集 深度学习框架YOLO如何训练APEX数据集

Apex英雄目标检测数据集 深度学习框架YOLO如何训练APEX数据集

Apex检测数据集数据集详情检测类别: allies enemy tag图片总量:7247张训练集:5139张验证集:1425张测试集:683张标注状态:全部已标注,即拿即用数据格式:支持YOLO格式及其他格式&#…

2026/7/31 4:19:39 阅读更多 →

月新闻