Susi Server

LPMS CAN Decoder

Node ID: lpmsCanDecoder · Role: Filter · Realtime config: no

Description

Decodes raw CAN frames from an LPMS sensor into ImuData. Supports CANopen and Sequential CAN modes, 16-bit and 32-bit precisions, and per-channel mapping per the LPMS-IG1 user manual. Filters by IMU ID so multiple sensors can share one bus.

Inputs / Outputs

Config aliases

LpmsCanDecoder, lpmsCanDecoder

Properties

Each row shows the setting’s label in the node’s Properties panel and, in code, its key in the node’s settings object in the config file. A setting omitted from the config file uses the default shown here.

PropertyTypeDefaultDescription
CAN Mode modeselectcanopenOptions: canopen, sequential.
IMU ID imuIdnumber1
Sequential Start ID (hex, ignored for CANopen) startIdstring0x514
Data Precision precisionselectint16Options: int16, float32.
Gyro / Euler Unit gyroUnitselectdegOptions: deg, rad.
Channel Mapping (16 IDs) mappingjson[4,5,6,22,23,24,28,29,30,38,39,40,34,35,36,37]
Output Sender ID senderIdstringlpmsCan

Example node definition

A minimal entry in config.json looks like the block below. Paste it under the sinks key, keyed by an instance name of your choice. All settings are optional: anything not listed under settings uses the default from the Properties table above. See The configuration file for how the sections and endpoint wiring work.

{
  "sinks": {
    "lpmsCanDecoder": {
      "dataEndpoint": "inproc://lpmsCanDecoder_data",
      "inputEndpoints": [
        "inproc://can_data"
      ],
      "inputDataFilter": [
        "Can"
      ],
      "settings": {}
    }
  }
}
Loading documentation…