Installing openpilot in a MK7 7.5 Golf [no LKAS, with ACC] - commaai/openpilot GitHub Wiki

Materials Needed:

  • 1 Comma 3X.
  • 1 J533 Harness.
  • 1 Car.

Steps

1. Prepare Your Car

  1. Ensure your car is compatible with OpenPilot.

2. Install the J533 Harness

  1. Open the panels under the steering wheel.
  2. Locate the J533 connector (it may be hard to reach).
  3. Connect your J533 harness to the OBD connector and the car.
  4. Do not reassemble the panels yet, as the OBD connector will be removed later.

3. Connect the Comma 3X

  1. Attach the Comma 3X to the J533 harness.
  2. Start the car and check for the LKAS error (expected).

4. Configure the Comma 3X

  1. Ensure your Comma 3X is powered through the OBD port and harness.

  2. Create a GitHub account (if you don’t have one) and generate an SSH key using the following steps (these steps will work for Linux/Mac - you may need to follow alternative tutorials for Windows):

    • Go to https://github.com/ and create an account.
    • Open a terminal on your computer.
    • Run ssh-keygen -t ed25519 -C "[email protected]".
    • Save the key to the default location and enter a passphrase (optional).
    • Run cat ~/.ssh/id_ed25519.pub and copy the output.
    • Go to GitHub -> Settings -> SSH and GPG keys -> New SSH Key.
    • Paste the copied key and save.
  3. On the Comma 3X, go to Settings -> Developer -> Enable SSH.

    • Add your GitHub username to install your newly-generated keys and allow SSH access.
  4. SSH into the Comma 3X using the SSH key you generated earlier:

    • Go to Settings -> Network -> Advanced on the Comma 3X to find its IP address.
    • Use the standard SSH port (22).
    ssh -i ~/.ssh/id_ed25519 comma@<COMMA_IP_ADDRESS>
    
  5. Turn the ignition on (engine off).

  6. Run the following commands:

    # Terminates the active OpenPilot session, freeing up resources.
    tmux kill-session -t comma
    
    # Navigates to the directory containing the VW MQB configuration script.
    cd selfdrive/debug
    
    # Executes the configuration script for VW MQB models, enabling OpenPilot support.
    ./vw_mqb_config.py enable
    
  7. Wait for the success message.

  8. Reboot the Comma to restart OpenPilot

  sudo reboot
  1. Turn off the ignition.
  2. Turn on the ignition again. The LKAS error should be gone.

5. Disconnect OBD Power

  1. If everything works, you can disconnect the Comma 3X power from the OBD port/harness.
  2. The J533 harness provides all necessary power for the Comma 3X, freeing up the OBD port.
  3. Now you can replace the panels under the dash.

6. Troubleshooting

  • If you encounter issues, ensure your cables are working properly.
  • Check if the Comma 3X is receiving CAN messages - the Comma device should show Vehicle Online.
  • Verify the status on Comma Dashboard.