1. Attachments are working again! Check out this thread for more details and to report any other bugs.

Thoughts and Questions on EV mode and 2010 Prius Operation

Discussion in 'Gen 3 Prius Accessories and Modifications' started by Unresolved_ERR, Apr 5, 2021.

  1. Unresolved_ERR

    Unresolved_ERR Junior Member

    Joined:
    Oct 6, 2020
    40
    10
    0
    Location:
    Oklahoma
    Vehicle:
    2010 Prius
    Model:
    IV
    Hello all,
    This website has been very helpful for learning about how the Prius functions. For a few months now, I have been using an OBD VEEPEAK adapter with the Dr. Prius app. Given the age of my car, I was not surprised to learn that (at 8 bars in the battery display, after coming down from the highway efficiently -- maximizing the use of the motor to brake regeneratively without pressing too hard to engage the friction brakes) the maximum capacity of the battery in my vehicle is about 75% (again according to the Dr. Prius app).

    So, when driving in the upper ECO area on the Hybrid System Indicator, the ICE engages and charges the battery...usually. Unless the charge is over 58% for my vehicle, in which case it will use the charge. More aggressively for a higher SoC.

    Except, after a large number of trips and trying to control for various variables, I cannot see a noticeable MPG difference. It seems to be "wasting" the charge, by depleting the battery for absolutely no reason with the engine on. I'm sure this is normal operation, after all it does want space for the regenerative brakes later; I'm just curious if anyone could explain this oddity. Where is it putting this charge? Is it actually helping MPG somehow?

    There's a thread from the time of my car's release way back in 2009 talking about an EV mode hack, and while engaging EV mode willy-nilly without a plug is obviously going to decrease MPG given thermodynamics, one poster talked about using it to get up to 25 MPH after a stop. When the battery has more than 58% and the ICE will not charge the battery when engaged, I do this as well, and have seen a minor but noticeable difference in MPG. The poster was reprimanded for that, given that the engine will work more when the battery is below that % in order to charge it; that's not how I'm using it. Although granted, in spite of the thermodynamics, I have tried that, and assuming it's not too far below 58% (56% at a minimum at EV take-off) it does not use enough charge to significantly change MPG, but it is noticeable once the ICE starts back up again.

    Given that:
    A) the Prius is "wasting" charge over 58% with the engine on (I cannot imagine that it is actually wasting it, and I hope for an answer regarding that)
    and B) EV mode (post-warmup) allows more use of that 58%+ charge without "wasting" it
    It would be mildly advantageous to "hack" EV mode for use of the higher acceleration (using potentially the full 80 HP of the motors instead of the 36 it usually lets you) under the specific scenario where the battery SoC, at least in my Prius as-is now, is over 58%. Of course, if A or B aren't true, which is what I expect, then this is not the case.

    I also, as a sophomore (2nd year at university) software engineering student, cannot imagine it'd be much more than changing a single line of code -- the line that defines the speed limit of EV mode. Sometimes people assume computers to be far more complicated than they are, but at the same time, I've never seen inside a Prius computer, so if that poster has any experience in that, this point of mine may be mislead. I'm aware of that. But given that these speed limits are not based on environmental factors beyond engine warmup, it seems they would be hard-coded as const variables in the code.

    So...anyone have any ideas?
     
  2. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,073
    14,982
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    Well ... why would you think it's being wasted?

    The engine isn't just an on/off device. It can be throttled up and down and injected with more or less fuel.

    To move or accelerate the car at the rate you have asked for with the go pedal requires a certain amount of total power. However much of that total the power management control ECU decides to contribute from the battery, the amount requested from the ECM is reduced by that amount.
     
    Unresolved_ERR likes this.
  3. Unresolved_ERR

    Unresolved_ERR Junior Member

    Joined:
    Oct 6, 2020
    40
    10
    0
    Location:
    Oklahoma
    Vehicle:
    2010 Prius
    Model:
    IV
    That's exactly what I thought - it makes sense that the engine would be putting out less power, thereby saving fuel, and that the electric motors are using their charge to take up that power demand - I know that.

    But that's not what the MPG is indicating. Which is where my confusion is coming from. In all my trips, it does not seem to have a noticeable difference on MPG, or at the very least not nearly as notable as simply having the engine truly off as in EV mode.

    Thank you for your response!

    Edit: I should note that when I say "That's not what the MPG is indicating", I'm referring to both the number of bars on the instantaneous MPG display when the engine is on in the ECO area, compared to the number of bars on the instantaneous MPG display when the engine is on in the ECO area, with either >58% SoC or <58% SoC. Also, each time I accelerate to 25 MPH using EV mode from a stoplight, I add one to a number in my head which I then record at the end of the trip. On trips where this number is higher, in general, the MPG at the end-of the trip is higher. Of course, it could be that the factors that allow that to happen (given <58% charge through regenerative braking, for example) also contribute to the higher MPG.
     
    #3 Unresolved_ERR, Apr 5, 2021
    Last edited: Apr 5, 2021
  4. privilege

    privilege Active Member

    Joined:
    Mar 17, 2021
    659
    165
    0
    Location:
    Birmingham
    Vehicle:
    2011 Prius
    Model:
    Three
    post up a solution to the speed limit once you've hacked and tested the hack for us on your own car , dear sophomore ! :-D
     
    Unresolved_ERR likes this.
  5. PaulDM

    PaulDM Active Member

    Joined:
    Sep 24, 2016
    616
    317
    2
    Location:
    UK
    Vehicle:
    2022 Prius
    Model:
    Excel
    EV mode 30mph top end. Push your peddle foot too hard is disengages
     
  6. Unresolved_ERR

    Unresolved_ERR Junior Member

    Joined:
    Oct 6, 2020
    40
    10
    0
    Location:
    Oklahoma
    Vehicle:
    2010 Prius
    Model:
    IV
    I appreciate the response!

    My experience is limited to basic java and mostly C++. I cannot find anything about how the Prius is coded nor what language it is coded in nor how to actually access the computer's code, because any search, anywhere, along the lines of "Prius computer code" pulls up results about error codes, which is obviously not what I'm looking for.

    Also, if it could be more advantageous to have a higher EV speed limit on a non-plug-in, one would think Toyota would have done that, which is what makes me think that may not even be the case. That using it for SoC <58% only up to 25 MPH from a light could easily be the most efficient use of it. After all, we are not trying to kill the battery outright, just use the excess charge efficiently.

    It could be more advantageous to rewrite it such that it simply does not strongly use the excess charge with the engine engaged but again, if that's the case, why wouldn't Toyota have done that?

    Lastly, the engine automatically idles at <46 MPH. While you're basically in "EV mode" when you first start the car (accelerating past the middle line will stay on the motors - you can feel it. Despite the idling engine, the drive is super-smooth - Until the engine is a certain warmth. Before then, it will do everything it can to stay on the motors), and that "EV mode" has the engine idling to warm up...
    Even assuming hacking it would be as simple as changing a line of code - which again, is only my assumption, I've never coded anything as complex as an internal computer unit for a hybrid - simply changing that number to <46 MPH could have terrible, terrible consequences on the highway as a result of it potentially forcing the engine to be off. Which is why if I do decide to do the hack, after somehow finding out how to access the code of the computer (and back it up on something to ensure I can undo anything that I do), and at least being able to read the language its coded in, if I can't find any line as simple as:

    if (engine_temp >= 70) //assuming C
    {
    EV_mode_limit = 25; //change this number
    }

    Then I would wait. But I'd imagine it'd at least look something like that. May take a few years for me to finish my degree before I really try anything, though it would be nice to actually see and begin to dissect the code.
    I still feel it might not actually do anything good for MPG, at least over battery life or just the car being able to function properly, and that EV mode cutting out at 25 MPH and only using it when the battery is over the SoC where the engine would charge it is best.

    I'm trying my best to take a scientific approach. In any case, thank you for your response!
     
  7. sam spade 2

    sam spade 2 Senior Member

    Joined:
    Mar 31, 2018
    7,035
    2,780
    0
    Location:
    USA
    Vehicle:
    2017 Prius c
    Model:
    Four
    Yes. Don't mess with it......even if you find out how.

    The entire thing is engineered as a complete PACKAGE.
    There may be factors requiring that limit that are not readily obvious.

    Just be thankful that you don't have a C, where the effective top speed for EV seems to be about 3 MPH.
     
    Unresolved_ERR, KeinoDoggy and PaulDM like this.
  8. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,073
    14,982
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    What you've written here gives a clue that your attention is mostly being caught by an artifact of how the bars on the MPG display are generated.

    In essence, the software calculates those in the simplest familiar way when the engine is running: distance covered during the bar period, divided by fuel used during the bar period.

    When the engine is not running, it treats the distance covered as having come for free, fallen right out of Santa Claus's sack. I first noticed that years ago in my Gen 1, but I just went out and checked in my Gen 3, and put up five full-height MPG bars just driving around the block on battery, so they're still doing it the same way. :) Of course the bars don't go to ∞, they're capped at "100 MPG", but underneath, the car just isn't accounting for those electrically-driven miles.

    If they had hired me to write that code, I would have it just count the distance and watt-hours during the bar period, and multiply that by the car's recent historical watt-hours per gallon (accounting for engine and generation efficiency, conversion cost of putting each watt-hour into the battery, and conversion cost of getting each one back out again; in other words, it has to be "watt-hours out of the battery per gallon"). So the bars shown during engine-off driving would not look like miraculous gift miles, they would look like, essentially, the Prius's "MPGe" under electric power.

    Notice that I would then also have to change how the engine-on bars would be calculated. There would need to be a slight fuel "credit" given there, to account for the fuel "claimed" by prior "MPGe" bars. Otherwise that amount of fuel would be double-counted, and make the car's overall numbers look too bad.

    You can see that the car's actual algorithm also avoids double counting: it just counts all the fuel burned when it burns it, and none when it doesn't. Simple enough, but it understates the MPG a bit in engine-on driving, and overstates it when the engine is off.

    And you can see that, while the accounting is reasonable as far as the overall combined result, the way the error is allocated isn't symmetrical. Because a Prius (non Plug-In, non-Prime) really combines a little bit of engine-off driving with a lot of engine-on driving, it only understates the engine-on MPG by a little (over lots and lots of engine-on miles), but it overstates the engine-off MPG(e) by a lot.

    Which is why, if you're waiting to see some difference in the engine-on MPG bars of the size you'd expect from looking at those glorious tall engine-off bars, you're just waiting for something this particular way of computing the bars isn't going to show you.
     
    Unresolved_ERR likes this.