Tesla Roadster Data Logging Format Reverse Engineered
s1axter writes with word that "the data log format for the Tesla Roadster has been reverse engineered and documented, now available in Python. (Python script linked in the post.)" From the linked blog entry: "Not only was I given a $110k car unrestricted I was requested to see what ECU information is available, collect and parse the data from it. Tesla Motors periodically collects information from their vehicles presumably to see what real-world driving the cars see. On original Roadster models there is no method to collect this information remotely thus someone must go out to the vehicle and collect it. The owner of the vehicle saw this and wanted to know what information was collected on these service calls ... Because I am a big fan of freedom to modify a program to fit ones needs, I have uploaded the ... python script to parse Tesla logs."
lawsuits and streissand effects coming in 3...2...1...
When I get my hands on a $110K electric car I'll be sure to try it out! Might be a while, though.
But it's a wicked fast pile of duck shit - it slides by you so fast, it doesn't leave a stain - and that's from a standing start. Besides, there are many overpriced piles of automotive avian ejectamenta - I'd sooner own a Tesla than any other, even a Porsche or ( although my teenage self would shudder to hear my middle-aged self say it ) Lamborghini
Pain is merely failure leaving the body
It's all an evil scheme to find out how many Starbuck's Lattes' I get in a week.
But it's a wicked fast pile of duck shit...
Not really. Its top speed is a "mere" 125 mph, something my 33 year old Porsche can (or could, when new) beat.
As far as acceleration goes, though...yeah, it's very zippy.
All he is doing is bragging about a python script that he himself admits to be simplistic and ugly. The binary format was decoded by two other posters in a bulletin board who also wrote a windows parser but the original guys did not think it warrants any kind of bragging like this. And he is not posting the logs either due to privacy concerns. So unless you are curious about seeing someone's ugly hack of a python script, just move along, there is nothing to see here.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
Most places you want to drive, top speeds are greater than speed limits so acceleration is more significant.
DROS - Open-Source Robot Software
all he did was read some posts in a forum, find someone's work on reverse engineering the format, and the made a python version. wow.
with a Tesla, too.
But then it would mean having to go outside.
Choices, choices ...
I'm not a lawyer, but I play one on the Internet. Blog
Most places you want to drive, top speeds are greater than speed limits so acceleration is more significant.
You've never wanted to drive on the Bonneville salt flats?
Then he shouldn't have said "speed", but "rate of change of speed with respect to time" or "dSpeed/dt". ;-)
SIG FAULT: Post index out of bounds.
I'm surprised took so long, given the immense popularity of that car.
In the land of the blind, the one-eyed man is kinky.
The summary is wrong, but still, s1axter was the first to publish code that could read the log format.
It's not completely reverse engineered yet. And he used other guys' work.
That's pretty normal for the reversing world. Queue a soviet russia joke here.
That's why I pointed out "from a standing start". Not that the top speed is "electronically limited" - I'm sure I'm not alone in wondering just how fast it would be unlocked.
Its 1/4 mile times are pretty fearsome, too.
And for the price you're not giving up too much versus a Porsche 911, except for top speed ( significant difference ) and range ( if you plan to go more than 200 miles round-trip )
What Porsche do you have?
Pain is merely failure leaving the body
I took my Mustang out there about ten years ago. It was fun but I never really got the salt out of all of the places it found a way into.
Protip: Don't drive there in early morning except in high summer - the salt is wet and sticks like nothing you've ever seen before.
..a real-time man-bear-pig tracking network formed by the immense fleet of Tesla vehicles. They expect to have the creature's location pinpointed by 2015. Did you really think Al Gore was involved because of the green initiative?
My 1985 hover car idles at 125 mph, while I ignore this story to brag about how cool I am
A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort.
1977 911S (2.7L) Targa, 340,000+ miles =)
I do wonder what the Tesla could do sans a governor, but since it only has one forward gear, I imagine it might get a little upset in the ol' rev department...
My econobox can hit 125 mph, too, but that's not the point. It tops out at 125 mph because it only has a single gear. They could have equipped it with more gears and gotten a higher top speed, but they didn't feel that speeds over 125 mph were a practical enough concern that they should give up the advantages they gained by have one gear.
The Tesla can do a quarter mile in ~12.6sec at ~105mph. It's pretty clear that it doesn't run out of oomph at 125mph, it's just not designed to run any faster than that. It has plenty of punch right up through 124 mph.
Never been to the UK during winter I take it?
I'd never take my Roadster to the salt flats. If I'm going to the flats, I'm going to break a ground speed record. Anything less is a waste of time.
The Roadster has a governor? I've never heard of such a thing. The main deal is that the RPMs in the engine start getting to insane levels turning the engine + drive train into a huge flywheel which takes increasingly larger amounts of energy (it increases geometrically, not linearly) to spin even faster. If that is a governor, then so be it, but removing THAT governor is simply removing the engine altogether.
The limiting factor is the current draw from the battery pack. Expand the battery pack, and you might go faster, but at the expense of killing your acceleration time due to additional weight.
I suppose you could hook up a Mr. Fusion or some other massive energy source that could kick the car into overdrive, but once you get past 88 mph you would be looking at temporal displacement when that happens too.
Impressive. How many rebuilds? What sort of shape is it in?
Pain is merely failure leaving the body
another lame timothy article
That's a fast quarter mile, but I don't understand how that supports your conclusion about the top speed.
I used to have a motorcycle that could do a quarter mile just slightly faster than the Tesla (12.1 seconds @ 109 mph), but the bike's top speed was just slightly lower than the Tesla at 118 mph.
But is that limited by horsepower or a governor? Makes a big difference. Plus, 125MPH is still 45MPH faster than the legal speed limit anywhere in the US. Not that that means a damn thing. But anyway, as long as it's not a horsepower limit...if you're spending that kind of money and plan on going that fast, I'm sure you can find a way to get it reprogrammed. And since it's right at 125MPH, I'd imagine it's a programmed limit and they're using U or H rated tires. Could be wrong though.
That's cool. My 1985 Delorean can only go up to 88mph. It punches a fabric of space-time continuum past that speed. :-(
In electric motors, current creates torque; voltage is speed. To up the speed you would have to up the voltage. However it will be limited by the insulation between windings, exceed that voltage and it will arc through the insulation and the motor will melt beyond repair. Happens to electric drive trucks down hills; speed past supply voltage motors become generators, keep going self induced meltdown. Add insulation, efficiency goes down, motor gets bigger... Torque has similar issues, More current for torque needs larger diameter windings or losses and heat increase, heavier motor... Basically if the motor has spare capacity, it is heavier than needed and room for efficiency and cost improvements (doubtful.)
It should be noted that the Tesla engine uses an alternating current motor instead of a direct current motor. In fact, that is why it is called "Tesla Motors" in in part that the original patent for the engine design being used on the Roadster was filed by none other than Nikola Tesla himself, where the RPMs on the motor are being regulated by the voltage frequency. It really is some cool tech, and part of their "secret sauce" that distinguishes what Tesla Motors is doing from some of the other electric vehicle manufacturers.
You are correct that there are a whole bunch of compromises that end up having to be made when trying to tweak performance on an electric automobile, which is why I find it annoying when I see people ripping on the Roadster when they don't have a clue about what went into its performance.
Going 120 mph max with a 0-60 in roughly 4 seconds certainly isn't the performance envelope of a golf cart.
Yeah, salted roads is nothing new in the US, either ;)
120 SQ KM OF SALT on the other hand, is interesting...
Well, I have to say "fast" is a pretty vague term... you could just as well apply it to a lap time as maximum speed.
Though in the end it is fairly useless on the track as well - a late model C2S (which probably cost 3/4 the price) beat it around the (relatively slow) Top Gear track, and while you wait 4h to recharge it after ~50 miles you can refuel the 911 in a couple minutes. So on a reasonably fast track you get 45 minutes of driving and then are done for the afternoon.
"The Tesla has a gas engine "
For fuck's sake...
There's only one gear, and 125 mph is 13,500 RPM, which is considered redline.
You're probably right that it's limited by software that can be hacked around, but it's not like a normal car where you might hit the governer at 4,000 RPM with a 7,000 RPM redline.
Who knows if the 13,500 RPM redline is arbitrary, but as rotation speed goes up, stress on the engine goes up geometrically. Bypassing the software and revving it to 15,000 RPM could very well damage it. Or it could be fine, but are you willing to risk over-revving a $100K car?
Take a look at the comparison of the Tesla vs the Elise that TG did the Tesla handled like a pig round the corners
Amen to that, brother! Sometimes people don't have a clue for what they are talking about, and this one takes the cake!
Going 120 mph max with a 0-60 in roughly 4 seconds certainly isn't the performance envelope of a golf cart.
This is true, but after driving a roadster one of the ways I described the experience was that it was like driving the world's fastest golf cart. The mindblowingly instantaneous acceleration is only encountered in an electric, and the foot-off-accelerator instantaneous deceleration of the electric takes some getting used to. Take your foot off the "gas" in a Tesla and you don't coast like you do in a 4-door sedan, you decelerate fairly hard. All-in-all I highly recommend taking the Tesla for a spin. It will induce giggles like a carnival ride.
Sounds similar to a motorcycle - the deceleration on dropping the throttle to idle is a lot different than a car.
Karnal
The voltage limits in a typical electric drive system are there due to the battery voltage, not due to motor's insulation. Any motor worth its salt should have its insulation system survive 2-3x overvoltage without damage. Ergo -- no way to "melt" an electric truck motor by going fast downhill, what you may well kill is the output switches (half-H bridge triad) of the power supply.
A successful API design takes a mixture of software design and pedagogy.
What use does an electric car have for an Engine Control Unit? There is no engine to control!
Fine, call an engine a motor (I don't), but a motor is not an engine.
One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
Wasn't there supposed to be a gearbox on the initial model, but they couldn't find one that would work with the torque?
That would give you a higher top speed without sacrificing your acceleration (much). My source for this is Top Gear, so if I'm completely off the mark please accept my apologies.
Is 1563649 a prime number?
safe to say, you haven't seen what I have. Many of these trucks are designed for 20 MPH top speed, especially the DC drive, operator wants to send one of them over the edge, just head down the hill with the system off kick it in about 30 MPH, and it shoots flames about 20' out from the wheel motors (have to see if I can find one on youtube, it is impressively bad.) Granted the DC drive starts with the brushes, once it carbon arcs them they start the cycle and they will inevitably start melting the insulation on the motor. Some AC drive have a little more margin, but not the 2-3* you claim, not worth the reduced efficiency and greater motor size to have more insulation than needed.
The gearbox is even still there, but modified for only one set of transmission gears. Yes, the Roadster was supposed to have at least two sets of gears so it could in theory reach higher speeds, and I'm not entirely sure what the original top speed was supposed to be, but I think it was higher than the current 125 mph. Since this is well above the legal speed limit for any stretch of highway in America, it wasn't seen as a pressing concern for a production automobile trying to meet ordinary consumer demand.
This gearbox was also the major hang-up that nearly killed the Roadster and almost took out Telsa Motors as a company. It was also the final straw that got Martin Eberhard fired and kicked out of the company when the whole transmission endeavor was at least considered to be grossly mishandled by the Tesla board of directors. Lawsuits flew around for a while afterward and it got pretty ugly.
This blog entry by J.D. Straubel goes into the harry details about how the transmission and power train work, what some of the compromises they had to make to get it to work, and how it was brought "in-house" after being disasterously outsourced.
I think you are entirely misdiagnosing the problem.
The motors generate a back-EMF simply because they are turning. You don't need to have anything attached them at all. If the intra-winding insulation on the motors were to fail due to overvoltage, you'd achieve that without anything attached to the motors -- spin them fast enough, insulation breaks down, windings short together and start dissipating mucho power, flames shoot out. Try it out: disconnect the motors, hook the output to a voltmeter (via a fuse!, you don't want a short in the voltmeter to blow in your face), run down the hill (assuming there's a separate brake system available).
Since, as you claim, you have to "kick it [the drive electronics] in" at about 30MPH for the flames to shoot, it's not due to overvoltage *in the motors*. Likely there is an overvoltage crowbar in the drive electronics that shorts the motors temporarily when the voltage is too high. This causes huge power dissipation and self destruction of the motors. Any insulation breakdown is a secondary effect from overheating, not the primary cause IMHO.
I reiterate that a typical electrical motor's insulation system should withstand 2-3x overvoltage with no adverse effects. The way you test it is by applying a test voltage from a hipot tester between the windings and the case.
Even if you get insulation breakdowns, the common thing that would break down in a properly designed and manufactured motor is the winding-to-case insulation. Any drive system worth its salt should detect such a condition and disconnect itself from the motor -- thus no damage done. In a brushed motor, the commutator or sliprings may well break down first -- that's pole-to-pole and not pole-to-case
The only way an overvoltage-due-to-overspeed on an electric motor will damage *insulation* is when you have very poorly designed windings. Perhaps the motors were rewound by someone without a clue?
I'd expect most electric motors to get mechanical damage from overrevving way before there's any electrical damage in the motor itself. Perhaps a dirty commutator or dirty sliprings will break down and catch fire, maybe, but I'd think that's rare if the motor works well at rated voltage. Now if the drive system decides to fry the motor, like what you're telling me implies, that's another story -- just don't blame winding insulation for that.
A successful API design takes a mixture of software design and pedagogy.
That is, when you could actually get it to start.
+1 Disagree
Cool, thanks for the link!
Is 1563649 a prime number?
If it's not my car (and it wouldn't be) ? Absolutely! I'd also try a 1g turn in those "new" BFG tires ....
Why would insulation degrade efficiency?
I know tobacco is bad for you, so I smoke weed with crack.
Something like this? http://en.wikipedia.org/wiki/Flux_capacitor#Flux_capacitor