Giter VIP home page Giter VIP logo

cdc-can-mitm-for-psa-peugeot-308-2007's Introduction

CDC CAN MITM for PSA Peugeot 308 2007

Simple Arduino Micro based MITM for allowing custom texting on car's EMF and by-passing "Economy mode" on RD45 radio.

Two CAN MCP2515's modules insertion between radio and rest of car CAN-INFO bus (cuting the CAN twisted pair connected to radio) allows filtering/mangling/dropping/spoofing/sniffing packets flowing between radio and the rest of car's CAN.

Radio needs only 3 kinds of messages to stay powered on, car's "power state" and last 8 chars of VIN (anti-theft beeping in speakers).

You can print any incomming message even from radio or from rest of the car to Arduino's serial port, forward it between both CAN modules (i.e. with changed content before forwarding), drop it or whatever you want... Arduino accepts simple message format on USB serial CDC and prints them on car's EMF display. message starting with "0" i.e. echo "0your magic text" >/dev/ttyACM0 will be scroolling text "your magic text" in the 1st line of EMF (where you can see radio station RDS name). Behavior for the 1st character in message follows: => "0any text" 1st RDS text line => "1lorem ipsum" 2nd RDTXT text line => "20" disables custom texts on EMF => "21" enables custom texts on EMF => "3" starts emulating key button sequence, which can be used for EMF's clock sync by relative manner (it's recomended to start this sequence around 48-th second of the minute and custom texting is disabled until the sequence ends)

Longer text lines are scrooling just because count of characters is limited on EMF in each line (i.e. length of RDS text field is only 8 characters). You can change the scrooling speed in sketch by simply changing related timers.

Personally I added simple 5V relay - by-pass (without Arduino powered through USB, it connects both CAN sides together so it's doing true-by-pass)

cdc-can-mitm-for-psa-peugeot-308-2007's People

Contributors

losonsky avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ramonsousap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.