Skip to content

CarPlay

Andre Rinas edited this page Dec 2, 2026 · 1 revision

Apple CarPlay

Open Headunit supports Apple CarPlay in three ways: USB CarPlay Dongles, Native Wired USB CarPlay, and Native Wireless CarPlay (Bluetooth + 5 GHz Wi-Fi Direct).

Note: Native CarPlay support is currently experimental (verified live on real hardware with both Wired USB and Wireless Bluetooth + 5 GHz Wi-Fi Direct).


Connection Modes

1. USB CarPlay Dongle (No Certificate Required)

  • Supports standard USB CarPlay boxes (such as Carlinkit CPC200-CCPA / AutoKit-compatible dongles).
  • No MFi certificate is required, because the dongle handles Apple MFi authentication in hardware.
  • Enable under Settings → CarPlay → USB CarPlay Box.

2. Native Wired USB CarPlay (Android 5.0+, No VPN Required)

  • Connects directly to an iPhone over USB (usbmux + iAP2 + AirPlay) using a built-in userspace IPv6/TCP/UDP stack over USB CDC-NCM.
  • No Android VPN service or VPN consent dialog is required.
  • Available in both GitHub and Play Store builds.

3. Native Wireless CarPlay (Bluetooth + 5 GHz Wi-Fi Direct)

  • Initiates iAP2 over Bluetooth RFCOMM, automatically creates a 5 GHz Wi-Fi Direct access point (Group Owner), exchanges Wi-Fi credentials with the iPhone, and streams AirPlay video/audio/touch over Wi-Fi.
  • Connects automatically in ~4 seconds once paired.

Requirements & Setup

MFi Identity (Required for Native Wired & Wireless CarPlay)

Apple requires MFi authentication for native CarPlay connections. Open Headunit does NOT bundle or distribute any Apple MFi certificates or private keys for legal and licensing reasons.

  • Provide your own MFi identity (from your own MFi license or your own licensed hardware) as a PKCS#7 certificate and matching PKCS#8 private key (PEM or DER format, up to 64 KiB each).
  • Import the identity under Settings → CarPlay → Import MFi Identity, then enable Native CarPlay.
  • If you do not have an MFi identity, use a USB CarPlay Dongle instead.

iPhone Requirements

  1. Enable Siri: Apple requires Siri to be enabled on the iPhone for CarPlay to start (iPhone Settings → Siri & Search / Apple Intelligence & Siri). Without Siri, the handshake finishes but the screen stays black.
  2. Unlock the iPhone on first connect: Unlock the iPhone when plugging in or pairing for the first time so you can tap Trust This Computer and Use CarPlay.
  3. Allow CarPlay While Locked (recommended): Enable under iPhone Settings → General → CarPlay → Open Headunit.

Headunit Setup for Wireless CarPlay

  1. Pair Bluetooth: Pair your iPhone with the Android headunit/tablet in Android Bluetooth settings.
  2. Enter the Hardware Bluetooth MAC (Android 9+ / Fire OS): Many Android versions hide the real hardware Bluetooth MAC address from apps (02:00:00:00:00:00). If Open Headunit cannot read it automatically, iOS will not associate the Bluetooth device with CarPlay.
    • Find the headunit's real Bluetooth MAC under Android Settings → About → Status → Bluetooth address.
    • Enter it in Open Headunit under Settings → Wireless Connection → Bluetooth Address and restart Open Headunit.
  3. 5 GHz Wi-Fi Support: Wireless CarPlay requires a 5 GHz Wi-Fi link. Open Headunit automatically creates a Wi-Fi Direct AP; make sure your headunit's Wi-Fi hardware supports 5 GHz.

Common Pitfalls & Troubleshooting

Black Screen After "Allow CarPlay" (Wired USB)

  • Check Siri on the iPhone: If Siri is disabled, iOS accepts pairing and adds "Open Headunit" under CarPlay, but never opens the AirPlay video stream. Enable Siri on the iPhone and reconnect.

USB Attach / Detach Loop or Sudden Disconnect on Tablets

  • Passive USB-OTG ports on tablets often cannot supply high charging currents. Open Headunit advertises a safe 500 mA limit over iAP2, but poor OTG adapters or charging-only cables can still cause brownouts.
  • Use a short, high-quality data USB-OTG cable or a powered USB hub, and keep the iPhone unlocked during initial USB enumeration.

Wireless CarPlay: iPhone Joins Wi-Fi Direct AP, but No CarPlay Popup Appears

  • Missing or wrong Bluetooth MAC: Make sure your headunit's real Bluetooth MAC address is configured under Settings → Wireless Connection → Bluetooth Address and restart Open Headunit.
  • Previously paired over Wired USB: If "Open Headunit" was already added over USB first, iOS may treat it as a wired-only vehicle:
    1. On the iPhone: Settings → General → CarPlay → Open Headunit → Forget This Car.
    2. On the Android headunit: also unpair/forget the iPhone in Android Bluetooth settings (forgetting a car on iOS removes the pairing on the iPhone side only, which causes "Pairing failed" if the old bond remains on Android).
    3. Pair Bluetooth fresh and restart Open Headunit — the "Use CarPlay" popup will appear on the iPhone.

Nearby Android Phone Stealing the Wi-Fi Direct Connection

  • If an Android phone that previously connected to your headunit's Wi-Fi Direct AP (e.g. for Wireless Android Auto) is nearby, it may keep reconnecting to the AP and interfere during testing. Temporarily disable Wi-Fi or auto-reconnect on that Android phone while setting up Wireless CarPlay.

Resolution, Scaling & FPS

  • CarPlay negotiates arbitrary resolutions via AirPlay GET /info (Open Headunit automatically uses your screen's usable resolution, e.g. 1280×736).
  • CarPlay adapts its frame rate dynamically (lower FPS on static screens, up to 60 FPS during scrolling or navigation).

Clone this wiki locally