Geschafft! Apple CarPlay im digitalen Kombiinstrument des Touareg CR – MH2p P2869

  • Hi Predator0 (and scheibandreas),

    thanks a lot for sharing the logs — I had a look at your cl_probe.log and clusterd.log, and I think we just found the exact causes behind the map-only flicker!

    First, the good news from your log: the incoming H.264 stream itself is completely clean (6,982 frames over ~440s, badnal=0, steady ~15.8 fps / ~63 ms per frame). Your log shows the older v19.3-based pipeline, and you were actually right to look closely at IDR refreshes — combined with a few rendering/buffer-sync bugs in the older cl_render (src/cl_render/cluster.c), which we just fixed in v21.0 / v21.0.1:

    1. Mid-stream SPS/PPS + IDR refcount reset (cb_begin_sequence): Your log shows periodic idr 1 requests every ~30.7s, and each IDR arrives with an op1 (SPS/PPS avcC) header. In the older cluster.c, cb_begin_sequence() unconditionally reset g_dec.surf_refcount[i] = 0 on every sequence header, even for decoder surfaces still in use. In v21.0+ this is guarded with if (g_dec.num_surfaces == 0).

    2. 50 ms heartbeat colliding with the ~15.8 fps (~63 ms/frame) stream: Older cluster.c re-posted the last buffer whenever no new frame arrived for >50 ms. Since the CarPlay cluster stream runs at ~15.8 fps (~63 ms per frame), that 50 ms heartbeat constantly collided with real frames. In v21.0+ this was raised to 250 ms.

    3. Unsynchronized 2D blit before screen_post_window: Previously screen_post_window() was called right after screen_blit() without waiting for the 2D blit to finish (cl_flush_blits_idle() / SCREEN_WAIT_IDLE), so the compositor could scan out an unfinished buffer or the HW decoder could reuse the YV12 surface too early.

    4. Front-buffer wrap-around on burst frames: Added cl_pick_next_pidx() (never blit into g_last_posted_pidx) plus a 20 ms burst throttle (g_batch_deferred) so queued frames after jitter/IDR can't lap the buffer ring and overwrite the live front buffer.

    Since your car is on EU P2869 (Touarego fork), please don't flash my CN P2878 release package directly — but scheibandreas can port those exact fixes straight from src/cl_render/cluster.c in v21.0.1.

    Also, quick update for everyone following the repo — I've just released v21.0.1 with a few more things that might be useful for your P2869 port:

    - Wired CarPlay iAP2 fix (v21.0.1): Fixed a double 6-byte header skip in src/cluster-probe/wired/rg_core.inc (important for wired CarPlay HUD/lane guidance — I noticed Cinemo wired iAP2 is active in your dio_cluster.log too).

    - Steering-wheel OK double-tap map switch (VW_HUD_4_OkMapSwitch): Double-press OK within 2s to toggle instantly between CarPlay map and stock VW map (handy for pACC / quick switch back without uninstalling).

    - v21.0 visual & telemetry overhaul: Larger bold telemetry cards with sport bars, symmetrical 295px navigation card (with standby mode), and 43 real DSI channels (direct TPMS, pitch/roll, GNSS altitude, ZF 8HP65A D1–D8 gear ratio readout).

    - Shared HMI popup filter (VWPopupFilter, Bundle 98) & ModKit clean-unit mount / touareg_netd security & stability fixes.

    Full source and changelog are up at:

    Would love to hear if porting those cluster.c sync/heartbeat fixes clears up the flicker on P2869!

    Best regards,
    a78c7

  • Hi a78c7

    Thank you for your effort. Can you advise if its possible to view Google satellite imagery in digital cockpit? In an earlier post, another user posted a screenshot of satellite imagery being shown from a user in China but that wasn't Google Maps or Apple maps.

  • Hi a78c7, thanks for the info on the new update.

    Since you advise against flashing your package directly onto the P2869: Is there currently a ready-to-use installation package to use Android Auto (via USB) on the P2869? I have absolutely no programming knowledge and cannot build or modify any code myself. I just need a finished file that I can easily install.

    One quick question regarding the HUD: You mentioned a fix in the new update that is supposed to be important for the HUD. Has there been any progress on the missing turn arrows, so they might be displayed in the Head-up Display in the future (even with Android Auto)?

    Regards

  • Hallo zusammen,

    Vielen Dank für eure Tests, Rückmeldungen und Logs! Ich bin euch extrem
    dankbar. Die unterschiedlichen Vorinstallationen machen die Fehlersuche
    schwierig. Gemeinsam entwickeln wir aus dem Beta-Bastelpatch hoffentlich
    eine zuverlässigere Lösung.

    Hier ist das vollständige Community-Paket C8 für MH2p_ER_VWG36_P2869
    mit digitalem Kombiinstrument und bereits funktionierendem CarPlay.
    Eine ältere C-Version muss nicht vorher installiert werden.

    Download C8: https://drive.google.com/file/d/1lQxnAv…iew?usp=sharing
    Rückweg: https://drive.google.com/file/d/1J6GmmG…iew?usp=sharing

    Enthalten sind Kombikarte, Hauptbenutzerfilter, passende Vollbild-Anpassung,
    Google-Positionierung und bereinigte Strassennamen. Neu sind Korrekturen
    an Bildpuffern/Synchronisation gegen das Flackern, die korrigierte
    iAP2-Auswertung und das Ausblenden alter Spurhinweise. Die Karte wird
    nicht mehr blind alle drei Sekunden neu eingeblendet. Vorhandenes
    Vollbild und eigene Einstellungen bleiben erhalten.

    Standard ist die klassische Grafik. v23 lässt sich über
    GRAFIKENGINE_AUSWAEHLEN.cmd zuschalten. Sie bleibt Beta mit klassischem
    Rückfall; die P2869-GPU-/Fahrzeugbestätigung steht noch aus.

    Zu den offenen Fragen:

    1. Flackern: Die in Beitrag #101 beschriebenen Fehlerkorrekturen wurden
      gezielt portiert. Ob jeder Fall verschwindet, müssen Fahrzeugtests zeigen.
    2. HUD: Grosse Pfeile fehlen bei mir weiterhin, Text/Entfernung kommen an.
      Der Datenfix ist noch keine bestätigte HUD-Pfeillösung.
    3. Android Auto per USB: C8 ist ein CarPlay-Paket. Eine fertig bestätigte
      P2869-AA-Kombilösung kann ich damit noch nicht anbieten.
    4. Satelliten: Die App liefert den separaten Kombistream. C8 kann darin
      keine Satellitenansicht erzwingen. Chinesische Beispiele anderer Apps
      sind kein Nachweis für Google oder Apple.
    5. Fullscreen vorhanden/unbekannte Oberfläche: Vorhandenes bleibt erhalten;
      eine unbekannte Variante blockiert die Kombiinstallation nicht.
    6. Alte Fehler: Kein wc, OpenSSL oder common.sh nötig. HASH_UNAVAILABLE
      belegte keinen Dateifehler. Ohne Ergebnis und Logs ist kein Start belegt.

    Vollständig auf FAT32-SD entpacken: Data, Meta und Mods direkt ins
    Hauptverzeichnis. Updateanzeigen befolgen, danach MMI neu starten.
    Anleitung/Rückweg: START_HIER.txt. Lokal geprüft; eine Garantie für jede
    unbekannte Vorinstallation wäre unehrlich.

    Grundlagen und Quellen:

    GitHub - fifthBro/mh2p-cluster: Bridge Android Auto and CarPlay navigation from Porsche PCM5 / MH2P to instrument cluster displays.
    Bridge Android Auto and CarPlay navigation from Porsche PCM5 / MH2P to instrument cluster displays. - fifthBro/mh2p-cluster
    github.com
    GitHub - luka-dev/mib2q-carplay-rgi: Better CarPlay for MHI2Q! Cluster Map, HUD Projection, Spatial Audio and more
    Better CarPlay for MHI2Q! Cluster Map, HUD Projection, Spatial Audio and more - luka-dev/mib2q-carplay-rgi
    github.com
    GitHub - LawPaul/MH2p_SD_ModKit: allows for modifying the MH2p unit used in some Volkswagen AG vehicles using only an SD card
    allows for modifying the MH2p unit used in some Volkswagen AG vehicles using only an SD card - LawPaul/MH2p_SD_ModKit
    github.com

    Die P2869-Portierung baut auf diesen Projekten auf. Bitte das chinesische
    P2878-Paket nicht unverändert installieren.

    Viele Grüsse
    Andi

  • Hey Andi,

    du schreibst, dass in der C8 „bereinigte Strassennamen“ enthalten sind.

    Ist hiermit die Anpassung der doppelten Straßennamen gemeint, welche in C7 auch bereits enthalten war, oder eine Anpassung zur Aufnahme von Leerzeichen wie von mir zuvor erwähnt ? :D

    Danke für die Aufnahme des Ausblendens alter Spurhinweise! ich finde das Projekt nimmt langsam richtig Formen an !!! Top 👍🏻

    Wie gehen wir hier mit neuen Versionen um? Eine neuere Version kann immer über eine ältere installiert werden, oder muss bspw C7 zuvor entfernt werden um auf c8 zu aktualisieren ?

  • Hey Andi,

    du schreibst, dass in der C8 „bereinigte Strassennamen“ enthalten sind.

    Ist hiermit die Anpassung der doppelten Straßennamen gemeint, welche in C7 auch bereits enthalten war, oder eine Anpassung zur Aufnahme von Leerzeichen wie von mir zuvor erwähnt ? :D

    Danke für die Aufnahme des Ausblendens alter Spurhinweise! ich finde das Projekt nimmt langsam richtig Formen an !!! Top 👍🏻

    Wie gehen wir hier mit neuen Versionen um? Eine neuere Version kann immer über eine ältere installiert werden, oder muss bspw C7 zuvor entfernt werden um auf c8 zu aktualisieren ?

    Hoi RSebasaaa
    Betreffend der Strassennamen sind die Doppelungen weg und und neu Leerzeichen drin :) Das hat funktioniert.
    Ich konnte C8 nun heute Morgen auf dem Weg zur Arbeit etwas ausgiebiger testen. Das flackern kam nur noch ganz am Anfang vor. Danach war es ganz weg (sofern das Montags morgen beurteilen kann 😇)...

    Das Ausblenden der alten Spurhinweise funkt noch nicht so richtig... leider. Aber es kommt Stück für Stück.

    Bei mir habe ich es einfach "drüber installiert". Hat einwandfrei geklappt.

    LG
    Andi

  • Hi scheibandreas, psychopomp1, and ErdinYK,

    scheibandreas: Awesome news that porting the #101 buffer/sync fixes into C8 cleared up the flickering on your morning drive! Also noticed you added an optional v23 graphics engine toggle in C8 — quick heads-up that v23.0 stable is now out on GitHub. If C8 was based on v23.0-beta.1 or beta.2, definitely pull the v23.0 fixes: beta.1/beta.2 had two real-hardware crash bugs on Tegra K1 (a NULL pointer passed to SiblingCreate in cluster.c and a ~150 KB stack overflow on QNX's small thread stack in v23_gles.c). Both are fixed in v23.0, along with GLES2 batching and real-car-verified EGL_KHR_image_pixmap zero-copy running at 55–59 fps (with automatic fallback to glTexSubImage2D).

    psychopomp1: Confirming what Andi said in #104 — CarPlay sends a separate secondary H.264 stream for the instrument cluster, and the navigation app on the iPhone decides what to render into it. Neither Google Maps nor Apple Maps currently outputs satellite imagery on the CarPlay cluster stream (the Chinese screenshot you saw was from a Chinese navigation app like Amap/Gaode), so the head unit mod cannot force Google satellite view there.

    ErdinYK:

    - Ready-to-use EU P2869 Android Auto package: My repo is built/tested on CN P2878 and focuses on CarPlay cluster projection, so I don't have a ready-to-flash EU P2869 Android Auto cluster package — for P2869, it's best to follow Andi's C-series releases or community tests here in the thread.

    - HUD turn arrows: The v21.0.1 rg_core.inc fix is for wired CarPlay (Cinemo iAP2) so maneuver/lane TLVs parse cleanly. On our CN P2878 Touareg, both HUD street names and turn arrows work via VWClusterNav_v6.jar (BAP); since Andi sees text/distance without the large arrows on EU P2869, it's likely an EU P2869 BAP/maneuver-icon mapping difference rather than the iAP2 parser itself. (And that iAP2 hook is CarPlay-only, not Android Auto.)

    Best regards,
    a78c7

  • Hallo scheibandreas,

    ich habe C8 über C7 installiert und habe folgende Probleme:

    1) In unregelmäßigen Abständen – wenn auch nur gelegentlich – erscheint im digitalen Cockpit anstelle von Google Maps die Meldung „MH2p_SD_Modkit“. Nach 1–2 Sekunden wechselt die Anzeige dann wieder zu Google Maps.

    2) In Version C8 ist bei der Google-Maps-Navigation im digitalen Cockpit standardmäßig der Auto-Zoom aktiviert. Wenn man jedoch auf manuellen Zoom wechselt (durch Drücken der +/- Tasten), gibt es anscheinend keine Möglichkeit mehr, zum Auto-Zoom zurückzukehren. Das „A“-Symbol für den Auto-Zoom, das in Version C7 noch vorhanden war, ist in C8 verschwunden.

    3) Wenn ich während der Google-Maps-Navigation auf den Hauptbildschirm tippe, um mir die Routenübersicht anzusehen, und anschließend zur normalen Navigation zurückkehren möchte, werden die Navigationspfeile auf dem Hauptbildschirm nicht mehr angezeigt. Ich muss das Fahrzeug neu starten, damit die Navigationshinweise auf dem Hauptbildschirm wieder korrekt erscheinen. Könntest du das bitte beheben?

    Vielen Dank!