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

SGII Rev. 4.02 Upgrade

Discussion in 'Gen 3 Prius Accessories and Modifications' started by jdcollins5, Apr 22, 2013.

  1. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Here is the quote from the XGauge Coding document:
    From my actual experience on FW 3.17, the results from the multiply and divide is not treated as signed numbers even though the document says so. If your data is a negative number, it may become a positive number after the multiplication/division. I don't know whether they have made modification in FW 4.12.

    Add/Subtract is correct as per document.

    Vincent
     
  2. jdcollins5

    jdcollins5 Senior Member

    Joined:
    Aug 30, 2009
    5,131
    1,338
    0
    Location:
    Wilmington, NC
    Vehicle:
    2010 Prius
    Model:
    III
    Thanks. I was not sure how to interpret the part that you highlighted in blue.

    I will try your new parameters tomorrow and let you know how the 4.12 handles it.
     
  3. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    The part I highlighted in blue says the result is treated as a signed number. From my experience, both the multiplicand/multiplier and dividend/divisor are treated as unsigned number, only the result is treated as signed number, strange isn't it? There are very few instances where some ECUs actually returned signed number but was treated as unsigned number by SGII.

    Chap has suggested to Linear Logic to assign a bit in RXF (or some other way) to flag a value as twos-complement and do the MTH accordingly. However, I'm not aware if that has been implemented in later FW.

    Vincent
     
    jdcollins5 likes this.
  4. jdcollins5

    jdcollins5 Senior Member

    Joined:
    Aug 30, 2009
    5,131
    1,338
    0
    Location:
    Wilmington, NC
    Vehicle:
    2010 Prius
    Model:
    III
    Vincent,

    Yes, the way they handle the signed and unsigned numbers is strange, and confusing to me. Thanks for your explanations.

    I was scanning through some of your posts on the ScanGaugeII Work on 2010 thread and came across another version of the battery temperature calculations that you did. In this one you reduced the 255.9/65535 to 1/256. Just shows there are many ways to create these MTH formats.

    Frank T is right about the battery temperature sensor being 16 bits. The RM states a min. of -50°C to 205.9°C.
    So the formula should be:
    C = 255.9 / 65535 * x - 50
    C = 1/ 256 * x - 50 (approx.)
    F = 9 / 5 * C + 32
    F = 9 /5 * ( 1 / 256 * x - 50 ) + 32
    F = 9 / 1280 * x - 58
    To make use of the 16 bits accuracy, I 've added a decimal place:
    GAUGE|TXD|RXF|RXD|MTH|NAM|NotesBattery Temp 1 F|07E22187|02EA85610687|4010|00090080FDBC|BT1|xx.x F Cell Temp Sensor 1
    Thanks,
    Vincent
     
  5. jdcollins5

    jdcollins5 Senior Member

    Joined:
    Aug 30, 2009
    5,131
    1,338
    0
    Location:
    Wilmington, NC
    Vehicle:
    2010 Prius
    Model:
    III
    Vincent,

    I tried the MTH = 11FEFFFFFDBC this afternoon for a battery temp F and the 4.12 FW works the same as previous FW.

    It gave the same result as the MTH = 00090080FDBC.

    Dwight
     
  6. jdcollins5

    jdcollins5 Senior Member

    Joined:
    Aug 30, 2009
    5,131
    1,338
    0
    Location:
    Wilmington, NC
    Vehicle:
    2010 Prius
    Model:
    III
    I wanted to follow up on my original post and am happy to report that the LinearLogic 4.12 upgrade has corrected the two problems that I reported above, the XGauge corruption and the Scan for Codes.

    With the much appreciated assistance from vincent1449p, who provided the XGauge coding for the Prius specific DTC's, I am now able to scan and read DTC's. I recreated the HV DC ground fault and the XGauge returned the correct P0AA6 DTC.

    So if anyone is still having any issues with their SGII I can feel good about recommending that you return your unit to LinearLogic for an upgrade. Thanks to Cristina at their tech support group for continuing to work with us at PriusChat and resolving our problems with the latest generations of our Prii.
     
    spiderman likes this.
  7. edwardob

    edwardob Member

    Joined:
    Sep 26, 2009
    227
    33
    0
    Location:
    ireland
    Vehicle:
    2010 Prius
    Model:
    III
    SGII Rev. 4.02 Upgrade | PriusChat

    The above is the thread. Vincent emailed me the DTC coding. I am out of town this week and need access to my home PC. You may try adding a post to this thread and ask Vincent if he can email you the DTC coding. He is in Singapore and usually responds during late evenings our time.


    can you email or gives dtc coding mentioned please