Odometer (1 Hz, 8 byte)

Configuration file fields

This section is autogenerated from the Rule Schema.

GNSS odometer (1000 ms) output.odo

State output.odo.state

Type Default Options
integer 1

Disable: 0 Enable: 1

ID Format output.odo.id_format

ID format of the message

Type Default Options
integer 0

Standard (11-bit): 0 Extended (29-bit): 1

Message ID (hex) output.odo.id

ID of the message in hex. Example: 00435354.

Type Default
string 01

Trigger method output.odo.trigger

Transmission trigger method. Push: Signal is periodically transmitted. Poll: Signal is transmitted on request

Type Default Options
integer 0

Push: 0 Poll: 1


Frame layout

Note

The frame layout is defined in the CANmod.gps DBC file

The odometer frame contains information regarding distance travelled.

Name

Bitpos

Length

Factor

Offset

Min

Max

Unit

DistanceValid

0

1

1

0

0

1

DistanceTrip

1

22

1

0

0

4194303

m

DistanceAccuracy

23

19

1

0

0

524287

m

DistanceTotal

42

22

1

0

0

4194303

km

DistanceValid

The DistanceValid signal can take one of the following values:

  • 0: Invalid

  • 1: Valid

DistanceTrip

The distance travelled since power up in meters.

DistanceAccuracy

The accuracy of the trip distance

Note

The trip distance is reset each time the device is powered up.

DistanceTotal

Total cumulative distance travelled in kilometers.

Note

The cumulative distance is reset if the internal battery is removed or if a configuration change resulting in a cold-restart is performed (e.g. changing the GNSS system settings).

Decoding example

Raw odometer frame payload:

  • Hex: 214E003200605B03 (byte 0 to the left)

  • Hex reversed: 035B600032004E21 (byte 0 to the right)

  • Bin: 0000001101011011011000 0000000000001100100 0000000010011100010000 1 (bit 0 to the right)

DistanceTotal(22)

DistanceAccuracy(19)

DistanceTrip(22)

DistanceValid(1)

Raw (bin)

0000001101011011011000

0000000000001100100

0000000010011100010000

1

Raw (dec)

55000

100

10000

1

Scaled

55000

100

10000

1

Offset

55000

100

10000

1

The vehicle has travelled 10 km (10000 m) this trip (since power cycle) with an accuracy of 100 m. In total it has travelled 55000 km.