yuedizhibo/MHI2Q-CarPlay-AltScreen
补全 Audi MHI2Q / MIB2 High AUG22 的 CarPlay AltScreen 逻辑,让 CarPlay 第二屏显示在 Virtual Cockpit 仪表盘。Completes CarPlay AltScreen logic for Audi MHI2Q / MIB2 High AUG22, displaying the CarPlay secondary screen on the Virtual Cockpit.
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
English | 简体中文 本项目面向 Audi MHI2Q 平台,用于将 CarPlay 原生 AltScreen / 第二屏导航画面直接显示至车辆的 Virtual Cockpit。核心显示链路已完成实车验证。操作前请完整阅读本说明。 V3.8 Fix1 更新(修了这些现象,说人话版): V3.8 更新:仪表电话页支持 CarPlay 通话(移植自 Luka 的 mib2q-carplay-rgi 的 CarPlay Telephony);仪表底部信息栏在路名后显示预计到达时间;新增手机转向卡片安装模式;修复首次连接时仪表第二屏不出画面;本项目原创部分改为禁止售卖的非商用许可。 V3.7 更新:完整 RGI 导航信息联动上线(基于 Luka 的 mib2q-carplay-rgi 构建);第二屏颜色转换改由 GPU 完成,整机 CPU 占用率从约 80% 降至约 20%;运行水印已移除;V3.7 起全部以 GPL-3.0 开源。 无线 CarPlay:实测君用 M2Pro 无线盒子(最新内测固件)已完美支持仪表第二屏、RGI、方向盘滚轮缩放和 CarPlay 投屏。 V3.7Fix6 更新:修复 LTE 数据连接建立后仪表第二屏无画面。原车此时改用 pf.ecm0.conf 等按上网方式区分的防火墙配置,安装时把 6031 放行规则一并写入这些配置。 V3.7Fix5 更新:第二屏数据端口固定为 6031 并写入车机防火墙配置,修复冷启动仪表黑屏和 LTE 换 IP 时仪表断流;冷启动时等原车仪表地图加载完成后再显示第二屏;修复 RGI 车道引导中途消失;开屏视频更新为 1:1 铺满仪表;绿色菜单精简为三项,开机日志自动保存到 SD 卡。 证据截图:对方页面、标价与聊天记录(点击展开) 本项目不再依赖早期的 Window58 读取路线,而是直接接入 CarPlay 的 private type111 第二屏视频流:保留原车 AirPlay / OMX 解码流程,从原车 renderer 安全读取画面并线性化为标准 NV12,再交给独立显示进程,最终通过 GLES / displayable3 / Java Context80 输出到仪表。完整 RGI 则通过 iAP2 RouteGuidance 取得导航信息,由 Java HMI 转发给独立的转向箭头渲染器。 冷启动时,Java HMI 每 500 ms 在原车导航线程上检查一次仪表地图(MapKombi)是否已初始化。初始化完成后,通过本机总线(TCP 19810,命令 0x0119)通知 libcarplayrgimeta.so,再转交给 libcarplayaltscreen.so。收到通知之前,hook 不会向 iPhone 请求第二屏画面(showUI / forceKeyFrame)、不切换 viewArea,显示进程也不会启动,所以开屏视频和第二屏画面都要等原车地图就绪后才出现。CarPlay 主屏、第二屏能力声明和 iPhone 建立第二屏视频流不受影响。 这里等待的是原车仪表地图对象初始化完成,不是 GPS 定位,也不是开始导航。就绪状态只在内存中记录,之后原车地图隐藏也不会重新关闭。这一步没有超时:原车仪表地图没有起来时,第二屏一直等待。 早期版本中,解码后的 NV12 画面由显示进程在 CPU 上逐帧转换为 RGBA,再上传给 GPU 显示,车机负载较大。V3.7 把 NV12 → RGBA 颜色转换移到 GPU:显示进程把 Y 平面和 UV 平面分别作为纹理上传,由 GLES 片段着色器完成颜色转换,CPU 不再逐像素处理,也不再分配 RGBA 中间缓冲。 实车测试中,整机…
Read the full README ↗ · Preview checked 2026-11-08T23:24:48.677Z
Inside the original README — Document outline
- MIB2 Toolbox — CarPlay AltScreen V3.8 Fix1
- 实车效果
- 当前公开版本已支持
- 适用范围
- 工作原理与架构
- 架构图
- 第二屏显示链路
- 冷启动:等待原车仪表地图
- 性能优化:GPU 颜色转换
- RGI 导航信息链路
- 底部信息栏:路名与到达时间
- 手机转向卡片
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: Other. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
补全 Audi MHI2Q / MIB2 High AUG22 的 CarPlay AltScreen 逻辑,让 CarPlay 第二屏显示在 Virtual Cockpit 仪表盘。Completes CarPlay AltScreen logic for Audi MHI2Q / MIB2 High AUG22, displaying the CarPlay secondary screen on the Virtual Cockpit.
Repository facts
- Owner
- yuedizhibo
- Primary language
- Shell
- Stars
- 239
- Forks
- 35
- Open issues + pull requests
- 21
- License
- Other
- Archived
- No
- Default branch
- main
- Created
- 2026-09-25T09:41:18.000Z
- Last push
- 2026-10-01T04:09:11.000Z
Topics and intended use
No topics were included in the latest source metadata.
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-02T12:05:32.591Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.