Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

J1939 Total Vehicle Distance always 0

Hello Community, I was curious if someone could give me a hint how to approach this problem.  I'm trying to get a measure of distance travelled on a Gillig Bus.  I've looked at all the PGNs and the respective SPNs they carry which describe distance measure to me.  I don't care whether the number I read is relative, or whether it's an odometer.  But the measures I read always contain "0" as the raw value. 

 

When the vehicle is in motion, the wheel speeds all change.  But distance travelled is not changing.

 

Who could be my resource for this information?  Do I have to go to Gillig? Are their forums that know the details about how particular manufacturers handle these standard messages?  If they respond with them, they would be filling them in I'm sure.

 

{
        "_id":  419348865,
        "Timestamp":    "2021-04-24 21:53:56",
        "Priority":     6,
        "PGN":  65217,
        "SA":   129,
        "SAName":       "Industry Group specific",
        "DLC":  8,
        "DataRaw":      [218, 252, 61, 0, 50, 253, 61, 0],
        "PGNName":      "High Resolution Vehicle Distance",
        "SPNs": {
                "917":  {
                        "DataRange":    "0 to 21,055,406,075 m",
                        "Name": "Total Vehicle Distance (High Resolution)",
                        "Offset":       0,
                        "OperationalHigh":      21055406075,
                        "OperationalLow":       0,
                        "OperationalRange":     "",
                        "Resolution":   5,
                        "SPNLength":    32,
                        "Units":        "m",
                        "StartBit":     0,
                        "ValueRaw":     0,
                        "ValueDecoded": 0,
                        "Valid":        true
                },
                "918":  {
                        "DataRange":    "0 to 21,055,406,075 m",
                        "Name": "Trip Distance (High Resolution)",
                        "Offset":       0,
                        "OperationalHigh":      21055406075,
                        "OperationalLow":       0,
                        "OperationalRange":     "",
                        "Resolution":   5,
                        "SPNLength":    32,
                        "Units":        "m",
                        "StartBit":     32,
                        "ValueRaw":     0,
                        "ValueDecoded": 0,
                        "Valid":        true
                }
        },
        "Decoded":      true
}

0 Kudos
Message 1 of 1
(1,991 Views)