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

Battery ECU secrets and teardown (warning: geek content)

Discussion in 'Gen 2 Prius Technical Discussion' started by pEEf, Oct 23, 2010.

  1. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    I'm presently working on an outright replacement for Toyota's Battery ECU for my PHEV project. I'm sure others are also curious, so here's my initial teardown and analysis of the hardware:

    [​IMG]

    The ECU sits on the end of the CAN bus, so it has a 120 ohm termination resistor. (on bottom of board) The Battery ECU has no other communication systems.

    The Battery ECU monitors the Traction battery main voltage along with 13 tap points spread evenly along the pack. This is done to detect pack balance. Battery Current in/out is also sampled using a hall-effect current sensor, and this signal comes on on pin C-15. This is used internally for "coulomb counting" to keep track of battery state-of-charge (SOC). There are 4 Battery temperature probes that use temperature-dependent resistors, and finally the battery fan voltage is sampled.

    The ECU also controls the Battery Fan Relay, and outputs a PWM signal to that is used by the fan motor controller to adjust the speed. There are no other control outputs used, but of interest is an additional 1A output that sits unused. (pin A-11) There are also several additional inputs that are also not used in this application.

    They use little optically-coupled solid state relays to select which of the 14 battery voltage taps they wish to read, and then use another pair as a switched-capacitor sample system to preserve electrical isolation. It's interesting to note that this board was designed to support 6 additional voltage monitor taps. (components not populated however)

    Note that the Battery ECU does not control precharge or the main battery relays, that is done by the Hybrid ECU.

    There is a 4K non-volatile EEPROM on this board, and in addition the microcontroller memory remains powered up at all times unless the +12v battery is disconnected. It doesn't seem as though SOC is stored in the EEPROM, as it seems to go to an arbitrary value if +12v is lost. This then begs the question as to what is being stored in there?

    I have not yet determined the microcontroller used, as it has house markings. It's similar to models offered by Fujitsu, so this is a possibility. I am not sure if it contains a masked ROM or flash, but there is a high probability it's Masked ROM. I will need to decap the part to inspect the silicon directly if we are to learn more.

    FYI: You may repost this picture and text only if credit is properly given.
     
    R-P, VFerdman, SFO and 17 others like this.
  2. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    For reference, Here is the simplified schematic of it's wiring in the Prius:

    [​IMG]
     
  3. Patrick Wong

    Patrick Wong DIY Enthusiast

    Joined:
    Mar 8, 2008
    18,198
    6,461
    0
    Location:
    Green Valley, AZ
    Vehicle:
    2015 Prius
    Model:
    Two
    1. Is it possible that this board was also used for the Classic traction battery ECU which had 19 module pair voltages to keep track of?

    2. I am wondering whether the EEPROM stores the logical rules that determine which DTC are posted when the traction battery ECU detects incorrect operation (for example, uneven SOC, a ground fault, or faulty ECU operation?)
     
  4. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    While I know little of the Gen 1 system, I was under the impression that it did not use the CAN bus for these communications. If that is indeed the case, then it couldn't have been this board. It's possible though that Denso designed it for use with the Gen 1 pack, which later in the design cycle was shortened.

    Yeah, my first guess was that it is used to store the DTCs as well. It's just a theory at this point, and I'm not too concerned with figuring it out, as for my purposes it's not relevant. Still, if you wanted to determine this, the serial data between the micro and the EEPROM could be easily monitored to see what read/writes are being done, and when.

    Any Gen 1 geeks care to comment on the architecture of the battery ECU? (Bob? :) )
     
    1 person likes this.
  5. vertex

    vertex Active Member

    Joined:
    Mar 27, 2009
    670
    143
    0
    Location:
    new york
    Vehicle:
    2018 Prius Prime
    Model:
    Prime Plus
    I don't know if this helps. I started to draw the schematic months ago, and got this down. pEEF did you find a data sheet for the opto devices?
     

    Attached Files:

  6. hill

    hill High Fiber Member

    Joined:
    Jun 23, 2005
    19,605
    8,036
    54
    Location:
    Montana & Nashville, TN
    Vehicle:
    2004 Prius
    Model:
    IV
    I'm looking forward to your findings!
    :thumb:

    .
     
  7. ken1784

    ken1784 SuperMID designer

    Joined:
    Dec 18, 2003
    2,940
    1,359
    67
    Location:
    Yokohama, JAPAN
    Vehicle:
    2010 Prius
    Model:
    N/A
    A-11, A-3, A-22 and A-23 are used by the external THS charger.
    http://www.autoshop101.com/forms/Hybrid15.pdf

    Ken@Japan
     
    4 people like this.
  8. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    Thanks Ken,

    But I didn't see any reference to those pins in that document. How do you know this, and do you have a schematic or some other diagram that shows how these connect?
     
  9. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    Thanks Vertex! Yeah that switched-cap circuit is pretty neat! If I get the time, I may finish your schema.

    I didn't find the full datasheet, but there is enough to understand how they work.

    Here's the part # breakdown and the specs: Panasonic AQW PhotoMOS Relays

    Here's a spec sheet: Panasonic AQW PhotoMOS Relay Catalog

    I'm sure Panasonic will give you the Datasheet if you ask them, but there's really no need.
     
    1 person likes this.
  10. ken1784

    ken1784 SuperMID designer

    Joined:
    Dec 18, 2003
    2,940
    1,359
    67
    Location:
    Yokohama, JAPAN
    Vehicle:
    2010 Prius
    Model:
    N/A
    The THS Charger is Toyota's proprietary design and I've never seen its detail information.
    But, following is the block diagram shown on the Japanese Repair manual.

    Ken@Japan
     

    Attached Files:

    3 people like this.
  11. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    Interesting! This is useful, as it shows that the Battery ECU shuts off the external charger. They clearly show a relay in there!

    Could be useful for those that are adding in extra Prius packs and wish to to a minor plug-in PHEV.
     
  12. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    BTW, someone asked if I would do a similar analysis of the Hybrid ECU. If someone is willing to send me one, I'd be happy to! (I don't really want to take the only one I have out of my car)
     
  13. imwoody36

    imwoody36 the prius parts guy

    Joined:
    Sep 29, 2005
    143
    116
    0
    Location:
    southern Indiana
    Vehicle:
    2008 Prius
    how many do you want?
    pm me.
     
  14. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
    I had a look at the Gen I battery ECU, similar functions but implemented way less efficiently and much higher component count. I don't see the need to do a more in-depth analysis at this point.

    Next is to do a Gen III. Anyone have one they care to donate yet? I'll even settle for some good pictures.
     
  15. Storm123

    Storm123 New Member

    Joined:
    Mar 18, 2011
    4
    0
    0
    Location:
    CA
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    Battery ECU messages

    if it does not communicate, then what is the source of these Battery ECU messages:
    eaa-phev.org/wiki/Prius_PHEV_TechInfo#Battery_ECU_messages

    Confused :confused:
     
  16. uart

    uart Senior Member

    Joined:
    Sep 7, 2009
    4,215
    1,200
    0
    Location:
    Australia
    Vehicle:
    2005 Prius
    Re: Battery ECU messages

    The CAN bus.

    Other than the CAN bus. I really can't see the source of your confusion?
     
  17. mrbigh

    mrbigh Prius Absolutum Dominium

    Joined:
    Sep 6, 2005
    3,686
    699
    2
    Location:
    Long Island, NY
    Vehicle:
    Other Electric Vehicle
    Re: Battery ECU messages

    With only 2 post, what else can you expect? a greenish newbie....
     
  18. Storm123

    Storm123 New Member

    Joined:
    Mar 18, 2011
    4
    0
    0
    Location:
    CA
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    Re: Battery ECU messages

    The CAN bus is not the source, it is only the communication bus used to transfer the messages from the source.

    The claim was made that the Battery ECU does not have any communication means and that it simply is used to electrically terminate the differential CAN bus.
     
  19. uart

    uart Senior Member

    Joined:
    Sep 7, 2009
    4,215
    1,200
    0
    Location:
    Australia
    Vehicle:
    2005 Prius
    Re: Battery ECU messages

    Absolutely not. The claim was made that the battery ECU was on the CAN bus but it was physically at the end and therefore had the termination resistors. There is absolutely no reason that it cannot be both "on the CAM bus" and also be the termination.
     
  20. JimboPalmer

    JimboPalmer Tsar of all the Rushers

    Joined:
    Apr 14, 2009
    12,470
    6,862
    2
    Location:
    Greenwood MS USA
    Vehicle:
    2012 Prius v wagon
    Model:
    Three
    Re: Battery ECU messages

    Never argue communication protocols with a person who has chosen UART as a handle.

    Universal asynchronous receiver/transmitter - Wikipedia, the free encyclopedia
     
    JPR, R-P and cwerdna like this.