Page 3 of 6 FirstFirst 123456 LastLast
Results 21 to 30 of 54

Thread: Log Parsing tool available

  1. #21
    Member tomsax's Avatar
    Join Date
    Jun 2008
    Location
    Sammamish, WA
    Posts
    644

    Another Parser

    I wrote a parser before Scott's was available. I haven't figured out as many data fields as Scott has, and Scott helped me to add or improve a few fields. My thanks to Scott for his huge contribution to the community and our understanding of our cars.

    I focused on finding the values that you can read from the touch screen to have an automated way of collecting data that's easier than videotaping the screen. There is lots more data available on the screens that I haven't found in the logs yet, but I've got enough that I've been able to generate interesting graphs of charging, drag racing, etc.

    My parser by default shows a summary of all of your drive and charging sessions, and allows you to type in human-readable dates for specifying date ranges for extracting the detailed records. You can have the output be tab-delimited for importing into other programs, or more human readable for manual inspection. There's also support for English vs. metric units. It's based on my 2008 Roadster logs, but I've done some testing on version 2.0 Roadsters.

    You can download the latest version from this link: VMS Parser 0.9.7.

    The download package includes Mac and Windows builds and a document describing what I've deduced about the log file format.

    Send me a private message with your email address if you want to be kept informed on updates.
    Tom Saxton
    Nov 30 2006 to Jun 5 2009 - A long wait for an awesome ride.

  2. #22

  3. #23
    Member tomsax's Avatar
    Join Date
    Jun 2008
    Location
    Sammamish, WA
    Posts
    644

    Yet Another Tesla Log Parser

    Tom Saxton
    Nov 30 2006 to Jun 5 2009 - A long wait for an awesome ride.

  4. #24
    KWH-PWR#1349Sprt,S Sig#96 scott451's Avatar
    Join Date
    Apr 2009
    Location
    Palo Alto
    Posts
    240
    Quote Originally Posted by tomsax View Post
    I wrote a parser before Scott's was available. I haven't figured out as many data fields as Scott has, and Scott helped me to add or improve a few fields.
    Yeah, my parser has been in private circulation for quite a while. One of the early signature owners was particularly helpful in correcting some of my initial scaling values for drive and charge records. (this was before I was using the CAN bus to confirm value scaling)

    I'm finalizing my next release, which will include a couple of new fields: Elevation, Battery Ahr capacity, Lowest brick Ahr capacity, lowest brick number. More error messge IDs->text messages

    I'm planning on making this an open source release probably GNU or BSD...

    I'm still trying to track down one last record type. I believe that 2010 roadsters will create a log entry when the GSM subsystem is used. I have been unable to locate a log file with the GSM record. If anyone has received a GSM message on their roadster, please send me a PM. [edit 11-16-2010: it turns out that this is not the case. If the GSM system is turned on, it is connected to telsa HQ and no log entry is made]

    For the folks working on their own parsers, it probably a good idea to add support for verifying the checksum byte at the end of each record before parsing a record. Two reasons: 1) 2008 temp log will wrap when it is full, creating a partial record that needs to be discarded. 2) a partial record may be created if the VMS reboots unexpectedly.

    -Scott
    Last edited by scott451; 11-16-2010 at 01:13 AM. Reason: more info about GSM record

  5. #25
    KWH-PWR#1349Sprt,S Sig#96 scott451's Avatar
    Join Date
    Apr 2009
    Location
    Palo Alto
    Posts
    240
    Quote Originally Posted by scott451 View Post
    Sorry, I've been spending most of my spare time analyzing CAN bus data, I'll get a new version out in a week or two. I'm trying to release the source too, but I need to get the OK from work.

    -Scott
    Attached is the next version of my Tesla vms_log parser. It's ready for open source, but I haven't got the OK from work yet so I am just releasing another exe only version. Sorry no mac/linux version this time, but I will get one out soon. Web version is offline pending the release of the source code.

    New stuff in this version:
    Whr/mile and Elevation in Drive10m. Battery AmpHr capacity in Daily records. More messages...

    The daily AmpHr capacity is a good find. With it, you should be able to determine the health of your battery. A new battery starts around 156 and after a short break-in rises to just under 160AmpHrs. After 24K miles my capacity has dropped to about 145 or about 9%

    The sharp drop around the 15 month mark was caused by a firmware upgrade to 3.5.17. My guess is that the new FW more accurately estimates the Ahr capacity of the battery. A 9% drop after 24K miles, 18 months and 4 sets of tires, does not seem unreasonable for a LiIon battery. YMMV

    -Scott

    Std Disclaimer: My conclusions & data could be wrong. I don't work for Tesla nor have any friends that do. I'm just passionate about Tesla's products and understanding how they work. The data is the result of my own analysis of my roadster and discussions with (and log data from) other owners.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by scott451; 11-16-2010 at 01:14 AM.

  6. #26
    If Roadster is 375V, and shows as 160AmpHr doesn't that equate to 60kWh, not 53kWh?

    For random comparison, the ~26kWh pack in my RangerEV started life as a 95AmpHr ~300V, and now ten years later it is about 85AmpHr. (NiMH seems to do well in the calendar life department.)

  7. #27
    KWH-PWR#1349Sprt,S Sig#96 scott451's Avatar
    Join Date
    Apr 2009
    Location
    Palo Alto
    Posts
    240
    Quote Originally Posted by TEG View Post
    If Roadster is 375V, and shows as 160AmpHr doesn't that equate to 60kWh, not 53kWh?

    For random comparison, the ~26kWh pack in my RangerEV started life as a 95AmpHr ~300V, and now ten years later it is about 85AmpHr. (NiMH seems to do well in the calendar life department.)
    Good question. All I can say is that the AHr number in the log correlates well with AHr number on the VDS CAN bus. As far as the number goes, I would have expected 2.2Ahr x 69 cells = 151.8 Ahr Nominal.
    Last edited by scott451; 11-16-2010 at 07:59 PM.

  8. #28
    Scott: I understand the "cliff" caused by the FW update. But notice the difference before the cliff to the behaviour after it. There's no significant capacity drop prior to the cliff, but essentially all of the 9% drop you are talking about happens after the FW update. What's up with that ?

  9. #29
    KWH-PWR#1349Sprt,S Sig#96 scott451's Avatar
    Join Date
    Apr 2009
    Location
    Palo Alto
    Posts
    240
    Quote Originally Posted by ChargeIt! View Post
    Scott: I understand the "cliff" caused by the FW update. But notice the difference before the cliff to the behavior after it. There's no significant capacity drop prior to the cliff, but essentially all of the 9% drop you are talking about happens after the FW update. What's up with that ?
    My guess is that the newer software is more accurate about the actual capacity of the battery. The table below (from battery university) shows the typical aging of a liIon battery.


    So at 40% SOC at 25*C you'd lose 4% after a year. My average SOC is closer to 60% and my average temp is 28*C and its been 1.5 yrs. So 9% seems pretty good.

    This table also explains why Tesla wants you to always plug in your car... It's not so much to keep it charged, but to keep the battery cool. One thing I have noticed, is now that my battery is older, it seems to heat up quicker. So a spirited drive to the store and back, can warm a cold battery to 33*C. So I'll immediately plug in for a 12A, 30min charge when I get home to cool the battery to 26*C
    Attached Images Attached Images  
    Last edited by scott451; 11-17-2010 at 11:38 PM.

  10. #30
    Scott,

    Thanks for the parser. Ah is a great find.

    Taking some very rough measurements from the graph the capacity since the firmware update seems to be dropping by 6 or 7 per 100 days. At first glance this would suggest that the capacity will drop below 50% of original capacity when its about 4 years old. I guess it depends on whether the decay continues at the current rate which looks fairly linear since the firmware update. Hopefully it will level off a bit. Its impossible to know what the slope would have looked like if you had had the current firmware all the time. As you say a 9% drop over 24K miles / 18 months is not nearly as fast a drop off in capacity as the data after the firmware upgrade.

    It would be interesting to see more graphs from other users. My car has only 3000 miles on it but is 280 days old (it was a display car for a few months). I would post a graph, but not much point as the capacity only varies between 157 and 158 over this time. My graph looks a bit like yours before the firmware update but since my firmware was updated a couple of weeks ago I assume I have the latest. (BTW How do you read off the firmware version? I thought you could get it via the touchscreen but can not find it).

    Interesting comment about plugging in to cool (rather than just to charge). At the risk of getting off topic, I thought the reason the fans / coolant continue for so long after you stop is to cool the battery pack. Does plugging in do anything different in terms of cooling?

    Let me put this another way. If plugging it in does not cool the battery any better / faster then you could argue that in some cases its best not to plug in for small top ups as the average state of charge will be higher than if you left it unplugged. (Obviously this would not make sense if charge levels were low).

    Alan
    Last edited by Alan; 11-18-2010 at 02:19 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Charging Anxiety Log
    By smorgasbord in forum Model S: Battery & Charging
    Replies: 97
    Last Post: 09-06-2012, 10:51 AM
  2. Can't pull log files
    By Aspirant in forum Technical Discussion
    Replies: 26
    Last Post: 07-28-2012, 01:53 AM
  3. New member, can't log into my profile
    By deckofficer in forum Site Feedback
    Replies: 15
    Last Post: 12-01-2011, 06:40 AM
  4. Log File Reader
    By SuperB in forum Roadster
    Replies: 16
    Last Post: 02-16-2010, 08:34 PM
  5. Log in yet again
    By vfx in forum Site Feedback
    Replies: 5
    Last Post: 11-06-2008, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •