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

Decoding CAN messages 0x348 & 0x3C8 as described by pEEF

Discussion in 'Gen 2 Prius Technical Discussion' started by lopezjm2001, Jun 1, 2012.

  1. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    My bad. It can handle up to 1Mbps. Reading up the manual. Seriously thinking of replacing it with my Canview V4. Need to figure out how to get it to work with a touch screen.
     
  2. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    dave77 likes this.
  3. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Thanks. Feel free to add your flag byte interpretation to this thread. I will be starting a project with my Duinomite soon. So I do not plan to use much more of my time on these flag bytes.
     
    dave77 likes this.
  4. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Hi Bruce,

    I just received my Duinomite Mega today. I updated the firmware and mmbasic to version 3.2. It appears that it does not support Canbus commands yet, i tried and all I got was "unknown command". However a old version dmbasic V2.7B does support CAN but was probably made for Arduino CAN shield. I have swapped to DMbasic V2.7B but have yet to test it as this Version of basic will not support my device driver to allow me to use my notebook as a remote terminal. I do not have a keyboard.

    I got this response on the backshed forum:

     
  5. Li-On

    Li-On New Member

    Joined:
    Jul 9, 2012
    4
    6
    0
    Vehicle:
    2001 Prius
    Model:
    I
    Greetings to the group. I'm an EE/FW developer helping my dad (old school EE) on his Generation 1 Prius. He is also spoofing his Prius.. with hardware. Re-programming the Hybrid ECU would be ideal, but Toyota isn't going there. Has anybody built a replacement Hybrid ECU which might use a PIC chip? If not, I will. There are so many algorithms I'd like to change!
     
  6. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Hi Li-On -

    Welcome to the gang ;)

    Rather than replacing the Hybrid ECU I'm replacing the battery ECU and splitting the engine ECU (aka ECM) onto its own bus. The new battery ECU will act as a bridge (and gatekeeper) between messages passed back and forth between the primary (original) bus and the secondary one (the new one). This is easier than replacing the Hybrid ECU but can still allow for making a lot of changes to operating algorithms. My first thought was also to replace the hybrid ECU until another forum member (pEEf) persuaded me that there was a simpler route to take.

    Of course it all depends on what you want to do :)

    BTW, I'm using Atmel not PIC and you can see my progress so far on this thread:
    YAPiP - recreating pEEf's approach | PriusChat

    C'mon in and play! :cool:
     
    dave77 likes this.
  7. Bruce Meacham

    Bruce Meacham 2005 Prius/Enginer 4kwh and BMW EV conversion

    Joined:
    Jun 17, 2012
    45
    8
    0
    Location:
    Kansas
    Vehicle:
    2005 Prius
    Model:
    N/A
    So what do you know about the HECU? I'd like to hear your ideas.
     
  8. Li-On

    Li-On New Member

    Joined:
    Jul 9, 2012
    4
    6
    0
    Vehicle:
    2001 Prius
    Model:
    I
    This is my third day of study so not much. I just received the 2001 Prius "Electrical wiring diagram" manual from dad in Fla. I'm in Ca. I hope Toyota doesn't really use a potentiometer(s) for the accelerator sensor. Pots wear out with UN-predictable results. They should have used optics or magnetics.
    I would like to get my hands on an HECU for reverse engineering.(someday) Just knowing the MCU part number would be neat. If it's not proprietary, dump the code and dis-assemble.. but the group probably explored this approach already.. hence the code spoofing. Very cool!
    Dad and I tried to develop a hybrid in the late 70's where he worked on the motor and controller and I on the gen controller. FET's weren't advanced so we used SCR's. Batterys were poor also, so the project went to the back burner. Things have changed since then. In the not too distant future, we would like to implement a variable gap, direct drive motor.
    In the mean time, I've developed the "Commercial Killer" which mutes your TV when commercials come on. It worked fair.. not good enough. Lately: "Smart LED drivers". WiFi enabled. Lots of fun.
     
    dave77 and jdh2550 like this.
  9. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Li-On in your context what's a "direct drive" motor? I understand the variable gap for controlling torque-speed trade offs. Do you mean "controller-less"? Tell me more... :)

    Actually, I don't think any of us in this thread thought about disassembling - but we're a tiny (and most of us new) portion of these forums. So, I'd search this site to see if anyone has done any work there.
     
  10. Bruce Meacham

    Bruce Meacham 2005 Prius/Enginer 4kwh and BMW EV conversion

    Joined:
    Jun 17, 2012
    45
    8
    0
    Location:
    Kansas
    Vehicle:
    2005 Prius
    Model:
    N/A
    I have the perminent model of one of those... I cut my cable :cool: Life hasn't been better since, don't miss that $100/mo, just like I don't miss the $100/week on gas I used to spend before my electric BMW.

    When you formulate some ideas on the HECU, let me know. Other projects have engineered around it, perhaps a more ambitious effort is needed.

    -Bruce
     
  11. Li-On

    Li-On New Member

    Joined:
    Jul 9, 2012
    4
    6
    0
    Vehicle:
    2001 Prius
    Model:
    I
    Direct drive to the wheel. No transmission or differential. Maybe a planetary gear built into the motor rotor. (someday)
    If I build a HECU prototype, I'll probably use PIC24FJ128GB004 for the MCU. It has lots of A/D, op-amps, CAN, USB, RS232, I2C, SPI. No D/A.
    Knowing the Prius commands, protocols, queries etc is going to be real important. I program in assembly or C. Assembly seems to execute a little faster.
    Intermittent Paul
     
  12. Li-On

    Li-On New Member

    Joined:
    Jul 9, 2012
    4
    6
    0
    Vehicle:
    2001 Prius
    Model:
    I
    I'll be going to Florida about 8-7 to assemble a Li-ion replacement battery pack for dad's Prius. Then a test drive to Ca. capturing data via ODBC II to RJ11/RS232 adapter to RS232/USB adapter to my laptop running CommCentral, a DAQ/plotter/logger program I developed a few years ago. This will give us a baseline for future test comparison.
    Dad's years of life testing of Li-ion cells will be compared to the trip data. If the comparison jives, we will have the confidence to start up a commercial battery pack replacement company. Li-On Home . We will do the swap at our place or yours.
    Then Generation II. Leaf? Volt?... Motors? Then solar... PV/T. (Photovoltaic/thermal hybrid.) Electricity AND hot water from the same collector. This was my son's senior project. Results: 24% increase in wattage output. Keeping the cells relatively cool increases efficiency and extends their life.
    Later
     
    dave77 likes this.
  13. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    This website has the same plan except they will replace the battery pack automatedly at a energy swap statipn (same as a gas station for electric cars). The battery is swapped in a matter of minutes and then drive away. It may be quicker than filling up the gas tank on a conventional car. Better Place | The Global Provider of EV Networks and Services., they have plans in Australia.
     
  14. EngMarc

    EngMarc Member

    Joined:
    Jun 8, 2016
    61
    41
    0
    Location:
    Pittsburgh, PA
    Vehicle:
    2013 Prius
    Model:
    Five
    So interested a great deal in this thread. However, I have a Gen 3 (2013) Prius model 5 and from what I've read so far the Gen 3 battery ECU only sends some raw diagnostics to the HECU which then calculates the SOC. Thus, the pEEf method of intercepting and then broadcasting on the CAN bus information to get the desired response, will not really work.

    I think the HV ECU dump and disassemble is the way to go if one could make heads or tails of it. I'm an old self taught C,C++,Fortran,Cobol, etc. programmer so doing assembler would be a learning event (interested too). I'm not sure I'm the one to disassemble the HV ECU but definitely willing to be involved.

    Also, I'm just now starting to peer into the CAN bus and would like some advice on tools as it seems CANView has come a long way but so have other tools. Ideas and links to other threads for Gen 3 Prius' would be appreciated. I've just ordered an UltraGauge with WiFi so I can get used to some additional information the CAN bus but haven't ventured yet to direct connect and logging - ideas for Gen 3?