Chassis Settings

getChassisSettings([, propertyNames])

Declaration

hmkit.commands.ChassisSettings.getChassisSettings()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Returns

ChassisSettingsResponse

Example

hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.getChassisSettings(),
  accessCertificate
);

ChassisSettingsResponse

Parameters

drivingMode(Object)
data.value

(String) (enum)

timestamp

(Date)

sportChrono(Object)
data.value

(String) (enum)

timestamp

(Date)

currentSpringRates(Object)
data.value

(Array) The current values for the spring rates

timestamp

(Date)

maximumSpringRates(Object)
data.value

(Array) The maximum possible values for the spring rates

timestamp

(Date)

minimumSpringRates(Object)
data.value

(Array) The minimum possible values for the spring rates

timestamp

(Date)

currentChassisPosition(Object)
data.value

(Number) (length) The chassis position calculated from the lowest point

timestamp

(Date)

maximumChassisPosition(Object)
data.value

(Number) (length) The maximum possible value for the chassis position

timestamp

(Date)

minimumChassisPosition(Object)
data.value

(Number) (length) The minimum possible value for the chassis position

timestamp

(Date)

Example

{
  "drivingMode": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "eco"
    }
  },
  "sportChrono": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "active"
    }
  },
  "currentSpringRates": [
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "front"
        },
        "springRate": {
          "value": 21,
          "unit": "newton_millimeters"
        }
      }
    },
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "rear"
        },
        "springRate": {
          "value": 23,
          "unit": "newton_millimeters"
        }
      }
    }
  ],
  "maximumSpringRates": [
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "front"
        },
        "springRate": {
          "value": 37,
          "unit": "newton_millimeters"
        }
      }
    },
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "rear"
        },
        "springRate": {
          "value": 39,
          "unit": "newton_millimeters"
        }
      }
    }
  ],
  "minimumSpringRates": [
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "front"
        },
        "springRate": {
          "value": 16,
          "unit": "newton_millimeters"
        }
      }
    },
    {
      "timestamp": "2021-06-01T15:48:04.887Z",
      "data": {
        "axle": {
          "value": "rear"
        },
        "springRate": {
          "value": 18,
          "unit": "newton_millimeters"
        }
      }
    }
  ],
  "currentChassisPosition": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": 25.4,
      "unit": "millimeters"
    }
  },
  "maximumChassisPosition": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": 55.5,
      "unit": "millimeters"
    }
  },
  "minimumChassisPosition": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": -28.4,
      "unit": "millimeters"
    }
  }
}

getAvailability([, propertyNames])

Declaration

hmkit.commands.ChassisSettings.getAvailability()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Example

// Get availability for all properties
hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.getAvailability(),
  accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.getAvailability(['driving_mode']),
  accessCertificate
);

Response

Parameters

availability(Object)
updateRate.value

(String) enum

rateLimit.value

(Number)

rateLimit.unit

(String)

appliesPer.value

(String)

Discussion

The response contains an availability object for each property, as shown in the example

Example

{
  "driving_mode": {
    "availability": {
      "updateRate": {
        "value": "trip_high"
      },
      "rateLimit": {
        "value": 64,
        "unit": "hertz"
      },
      "appliesPer": {
        "value": "vehicle"
      }
    }
  }
}

setDrivingMode({ drivingMode })

Parameters

drivingMode

(String) (enum)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.setDrivingMode({
    "drivingMode": "eco"
  }),
  accessCertificate
);

startStopSportsChrono({ sportChrono })

Parameters

sportChrono

(String) (enum)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.startStopSportsChrono({
    "sportChrono": "active"
  }),
  accessCertificate
);

setSpringRates({ currentSpringRates })

Parameters

currentSpringRates

(Array) The current values for the spring rates

Example

hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.setSpringRates({
    "currentSpringRates": [
      {
        "axle": {
          "value": "front"
        },
        "springRate": {
          "value": 21,
          "unit": "newton_millimeters"
        }
      },
      {
        "axle": {
          "value": "rear"
        },
        "springRate": {
          "value": 23,
          "unit": "newton_millimeters"
        }
      }
    ]
  }),
  accessCertificate
);

setChassisPosition({ currentChassisPosition })

Parameters

currentChassisPosition

(Number) (length) The chassis position calculated from the lowest point

Example

hmkit.telematics.sendCommand(
  hmkit.commands.ChassisSettings.setChassisPosition({
    "currentChassisPosition": {
      "millimeters": 25.4
    }
  }),
  accessCertificate
);