1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

CANbus: How to drive a Mercedes A-Class W176 cluster?

Discussion in 'DIY peripherals' started by RacingMat, Sep 24, 2015.

  1. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi guys!

    I have got a very nice cluster from a Mercedes A-Class W176 and I'm looking for information on how it's possible to drive it via CAN communication?
    If not I would be forced to drill and plug straight onto the motors
    like switec motors tests I achieved... but that would be quite disappoiting :(

    Mercedes Classe A W176  (2).jpg Mercedes Classe A W176  (1).JPG
    Mercedes Classe A W176 cluster.JPG Mercedes Classe A W176 cluster TX4964FG-120 MB91F476CB.jpg

    Do you have any information about this? :)

    I have read the FAQ section http://www.xsimulator.net/community/faq/diy-dashboards-and-gauges-tutorials.140/
    and http://www.xsimulator.net/community...-tacho-real-bmw-cluster-3dof.6323/#post-71861 ;)

    thanks
    Mat
    • Like Like x 2
    Last edited: Sep 25, 2015
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Here a data base but with older Mercedes cars (before 1997)
    _____________
    Another site with documentation: http://doc.webasto-russia.ru/Car/Mercedes%20Benz/176%20+%20246%20%28%c0+B%29/
    _____________
    I have seen some CANfilter PCB boards but I cannot figure out exactly what it does... or if it could give me some hints?
    http://www.ebay.com/itm/Mercedes-Be...7-W166-X166-W218-W172-W246-W176-/271269820219

    http://fr.aliexpress.com/item/Hot-S...2294967838.html?spm=2114.06010108.8.67.md9bUO

    This item can help car owners to repair (exchange to used parts) broken car electronic computers and keep original car data: like odometer, coding and other functions.
    Last edited: Sep 24, 2015
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  4. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Informative Informative x 1
    Last edited: Sep 25, 2015
  5. tombo

    tombo Active Member

    Joined:
    Oct 5, 2013
    Messages:
    269
    Location:
    Germany
    Balance:
    2,436Coins
    Ratings:
    +246 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hello,
    this should be a canbus device. It can be driven by various canbus boards for arduino.
    The hardest thing would be getting the right adress data to drive the cluster.
    Maybe you can find something on the net. If not I can maybe ask at work if you are interested. I work with cars and got good connection to Mercedes, Vw and so on.

    Or you know someone with this car, than you can sniff the canbus and get the propper Ids.

    I don't know about your knowledge about can bus but for information here is a little Document, it's from Vw but for the general process it doesn't matter.
    http://www.volkspage.net/technik/ssp/ssp/SSP_238.pdf
    At page 18 you can see a can Data Frame which you need to reproduce.
    The Identifiers change from car to car and manufacturer to manufacturer and it's hard to get them.
    Last edited: Sep 25, 2015
  6. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks @tombo!

    Yes, it would be very useful if you could get the parameters of CAN communication (speed, length of fields...) as I cannot "sniff" into CANBus of a real car. jap.gif
    I'm currently learning CANbus: the documentation looks very interesting!

    can121.JPG
    • Like Like x 1
    • Funny Funny x 1
  7. tombo

    tombo Active Member

    Joined:
    Oct 5, 2013
    Messages:
    269
    Location:
    Germany
    Balance:
    2,436Coins
    Ratings:
    +246 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hello,
    I will not promise too much as the Ids are a secret, but asking is worth a try.

    I don't want to annoy you, but I think it will be taking very long and will be a very hard way to get this device working, as it is from a newer car. In case of Security reasons the info is not avalible like for older cars.
    I thought of something like this some time ago and gave up incase of so little info for ids avalible.
    The best way would be to use the housing and implement your own electronics.
  8. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,509Coins
    Ratings:
    +3,319 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Would be nice if you can talk to the CANbus directly with the handles and stuff!
    Sure, this is what others have done. Nevertheless it would be fun, driving the gauges directly :)
    • Agree Agree x 1
  9. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Some more informations:

    this guy wrote 2 softwares to help reading the CANbus of a car
    CAN232HSW.jpg
    http://www.honeysw.com/canproject.php
    and ended with a palm application that remotly controls its MErcedes car (just like K2000)
    beecansw_left.jpg
  10. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 2
    • Informative Informative x 1
    Last edited: Sep 26, 2015
  11. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    A book into Car Hacking!
    It’s called Car Hackers 2014 by Craig Smith. It’s a great place to start if you want to get more information about the fundamentals of a lot of car hacking things.

    Here is the Outline:

    Introduction
    Understanding Attack Surfaces
    Infotainment Systems
    Vehicle Communication Systems
    Engine Control Unit
    CAN Bus Reversing Methodology
    Breaking the Vehicle
    CAN Bus Tools
    Weaponizing CAN Findings
    Attacking TPMS
    Ethernet Attacks
    Attacking Keyfobs and Immobilizers
    Attacking ECUs and other Embedded Systems
    What does your hacker garage need?
    Creative Commons

    Go to http://opengarages.org/handbook/

    Search Amazon for “Car Hackers 2014” ISBN: 978-0-9904901-0-4
    • Informative Informative x 1
  12. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I've juste read the book: it's very interesting! and freaking! if you want more information via video:


    if you have a Mazda RX-8 cluster instrument the job is done here:
    https://www.cantanko.com/rx-8/reverse-engineering-the-rx-8s-instrument-cluster-part-one/





    Arduino/SECUduino CAN BUS instrument cluster lcd control - Seat Leon 2009


    Gurpal has used SECUduino and a Ford cluster
    http://www.youtube.com/watch?v=utS6capLI3c

    Many resources here canbushack: Hack Your Car

    Nice video of real time "sniffing" CANbus
    http://www.youtube.com/watch?v=KHRPmjwXF1U
  13. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I've just received my CANBus arduino shield :) 328892image264.jpg
    • Like Like x 4
  14. Jadran

    Jadran Member

    Joined:
    Sep 7, 2008
    Messages:
    44
    Occupation:
    Racing game:LFS,Simbin (Race07,GTREvo,RaceOn)
    Location:
    Osijek,Croatia
    Balance:
    3,207Coins
    Ratings:
    +7 / 0 / -0
    Any news ? :)
  15. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Nope! I'm stuck... I cannot start the Cluster

    I have try this based upon electrical wiring information, but nothing happend [​IMG]
    .jpg

    I need some expert help to get some more documentation...
  16. Jadran

    Jadran Member

    Joined:
    Sep 7, 2008
    Messages:
    44
    Occupation:
    Racing game:LFS,Simbin (Race07,GTREvo,RaceOn)
    Location:
    Osijek,Croatia
    Balance:
    3,207Coins
    Ratings:
    +7 / 0 / -0
    I'll try to find a scheme for the cluster but probably need some more information about the car (year,gas or disel)
  17. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That would be really really great @Jadran!!
    jap.gif

    it's a Aclass 176 model cluster
    2013 hardware design (from label)
    made in 2015/06

    A176 900 3303
    HW index:00/04/13
    HW-Ind Mech: A176 901 2102
    SW-Version: 0333.90

    .jpg
  18. Jadran

    Jadran Member

    Joined:
    Sep 7, 2008
    Messages:
    44
    Occupation:
    Racing game:LFS,Simbin (Race07,GTREvo,RaceOn)
    Location:
    Osijek,Croatia
    Balance:
    3,207Coins
    Ratings:
    +7 / 0 / -0
    • Like Like x 2
    • Informative Informative x 1
    Last edited: Oct 24, 2015
  19. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @Jadran: great! jap.gif
    Sorry I didn't answered because I hadn't received any alert...
    According to this, the complete pinout should be the following:

    pinout prise (3).JPG

    And CAN_E should transmit information from motor, RPM, speed...

    I'll try tonight :)
  20. Jadran

    Jadran Member

    Joined:
    Sep 7, 2008
    Messages:
    44
    Occupation:
    Racing game:LFS,Simbin (Race07,GTREvo,RaceOn)
    Location:
    Osijek,Croatia
    Balance:
    3,207Coins
    Ratings:
    +7 / 0 / -0
    I hope that it will work properly ;)