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

Trouble decoding battery block voltages over CAN

Discussion in 'Gen 2 Prius Technical Discussion' started by FirstFlight, Sep 3, 2012.

  1. FirstFlight

    FirstFlight Member

    Joined:
    Oct 9, 2010
    429
    77
    0
    Location:
    New Jersey
    Vehicle:
    2005 Prius
    Model:
    N/A
    I've hit a wall with soliciting the battery block voltages and resistances. Not sure if I'm sending the correct command or I'm missing something but this is the issue.

    I can send 7e3 2 21 cf and I get the correct reply of 7eb 10 12 61 cf.....

    I *think* I need to send the command of 7e3 30 7..... and then I should get back 7eb 21...., 7eb 22...., 7eb 23.... and 7eb 24.... There are two problems I can't get my brain to understand.

    1. When I send 7e3 30 7, I get two replies of 7e3 04 30 81 00 06 55 55 55 and then I get 7eb 02 70 81 00 00 00 00 00. This is not what I was expecting.

    2. Regarding the response, do the block voltages, block resistances and other battery information fall under byte D0 (21) or is the information a sequential response from 7e3 2 21 d0/cf/ce? In other words, even if byte D0 is 21, can it be different information? (if that makes sense)
     
  2. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    510
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    I am not handling the acknowledgement myself but looking at the log I see that OBDLink is sending
    7E3 30 00 00 00 00 00 00 00
    not
    7E3 30 7 ....

    You may give that a try. Good luck!
     
  3. FirstFlight

    FirstFlight Member

    Joined:
    Oct 9, 2010
    429
    77
    0
    Location:
    New Jersey
    Vehicle:
    2005 Prius
    Model:
    N/A
    I think I tried that last night and had no luck. During the day I'm going to write the code for a sequential response, which I believe it is. On my way home from work today I'll try it out and let you know if it works.
     
  4. lopezjm2001

    lopezjm2001 Senior Member

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

    I have already done this using mmBasic V4.0 with CAN commands. The frame to send is

    7E3 30 00 01 00 00 00 00 00 , this is what my miniVCI uses. However

    7E3 30 00 00 00 00 00 00 00 also works.

    Must send all eight bytes of data.

    Answer is received at 7EB.
     
    [email protected] likes this.
  5. FirstFlight

    FirstFlight Member

    Joined:
    Oct 9, 2010
    429
    77
    0
    Location:
    New Jersey
    Vehicle:
    2005 Prius
    Model:
    N/A
    Yup, the 30 did it, thanks.
     
  6. FirstFlight

    FirstFlight Member

    Joined:
    Oct 9, 2010
    429
    77
    0
    Location:
    New Jersey
    Vehicle:
    2005 Prius
    Model:
    N/A
    I have one issue that I need to resolve. Maybe someone else has had this issue too. All of the battery block voltages work correctly but on occasion (once every 3-4 seconds) the block voltages for 8, 9 and 10 will show -327 and then on the next update go back to normal. Anyone else ever seen this issue?
     
  7. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    510
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    I haven't paid much attention to the block voltages but I just plotted up the log from a recent trip and didn't see the abnormal value.
     
  8. FirstFlight

    FirstFlight Member

    Joined:
    Oct 9, 2010
    429
    77
    0
    Location:
    New Jersey
    Vehicle:
    2005 Prius
    Model:
    N/A
    It's probably in my code somewhere........