TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Exploring the Model S CAN Bus

Discussion in 'Technical' started by obrien28, Mar 29, 2015.

  1. obrien28

    obrien28 Midnight Engineer

    Joined:
    Jan 17, 2014
    Messages:
    77
    Location:
    NW CT
    A while back I posted this Instructable on how to access the Model S diagnostic port and sniff some of the traffic going over it. It just occurred to me that I should probably post it here for the TMC community to have a gander at. Currently the project is ongoing as I am working with another TMC member to decode the CAN ID's and message, we have made a small amount of headway so far, but still have a lot to do. We are hoping to maybe integrate the data into website for logging trip data and such, like the OVMS for the Roadster, that might be a little farther off though.

    Message me if anybody would like to help or can contribute in anyway, many hands make light work as they say.

    Exploring the Model S CAN Bus
     
    • Informative x 1
  2. Denarius

    Denarius Active Member

    Joined:
    Apr 27, 2013
    Messages:
    1,349
    Location:
    Utah
    Great work! I'll be following your progress.
     
  3. obrien28

    obrien28 Midnight Engineer

    Joined:
    Jan 17, 2014
    Messages:
    77
    Location:
    NW CT
  4. Denarius

    Denarius Active Member

    Joined:
    Apr 27, 2013
    Messages:
    1,349
    Location:
    Utah
    Nice! I've been (silently) watching your progress. Keep up the good work!
     
  5. pbceng

    pbceng Member

    Joined:
    Aug 9, 2015
    Messages:
    39
    Location:
    UK
    I for one am rather glad that Tesla decided to make the legislated OBD port useless. Makes the job of the car thieves much more difficult.
     
  6. obrien28

    obrien28 Midnight Engineer

    Joined:
    Jan 17, 2014
    Messages:
    77
    Location:
    NW CT
    @pbceng It isn't actually completely useless, I found out later that they do put out one CAN bus (CAN6 chassis) on pins 1-9, but that isn't as useful as CAN3. Either way a brick works much better as a way to gain entry to a car, if a thief is prodding about with your OBD port than you have larger issues ;-)
     
  7. Harrod

    Harrod New Member

    Joined:
    Feb 25, 2016
    Messages:
    3
    Location:
    Rugby, UK
    Fantastic. There's no reason to think this won't work on UK spec is there?
     
  8. obrien28

    obrien28 Midnight Engineer

    Joined:
    Jan 17, 2014
    Messages:
    77
    Location:
    NW CT
    @Harrod

    Nope, everything should be pretty similar, depending on the model year of your car though you could have a different connector (Tesla changed it with the new 2015 models) this is currently be discussed on the "hacking the Model S" thread by wk057, however there are plenty of leads on connector sources so it's just a matter of some wiring details.

    I'm currently working on a new article about using the low cost CANtact board with some software that I have written for logging/saving raw data and reading data in engineering units (torque, battery voltages, charge in kWh). If you are interested, I have a beta version over at Github, it's written in python but you can access most options via command line arguments so you don't need to modify the source code.

    Let me know if you have any other questions.
     
  9. Harrod

    Harrod New Member

    Joined:
    Feb 25, 2016
    Messages:
    3
    Location:
    Rugby, UK
    @obrien28. Actually now I've read through all these various links I can see it is beyond my current technical skills. But I love the idea of logging the car. And as a disclosure: I'm a university researcher (with access to a P85+ and a 90D), and with an interest in understanding typical customer energy consumption (day-to-day basis, not 0-60 ludicrous stuff). Any idea if these types of technology have been used to record, for example, daily energy consumption and daily charging energy on Model S 85s?
     
  10. obrien28

    obrien28 Midnight Engineer

    Joined:
    Jan 17, 2014
    Messages:
    77
    Location:
    NW CT
    @harrod

    Just a heads up, I sent you an email via the button on your profile, let me know if you received it.
     
  11. Harrod

    Harrod New Member

    Joined:
    Feb 25, 2016
    Messages:
    3
    Location:
    Rugby, UK
    @obrien28
    It was in my spam. I've responded.
     

Share This Page