Susi Server

CAN Source

Node ID: can · Role: Source · Realtime config: no

Description

CAN bus vehicle data source. Subtypes: Vector CAN, PEAK CAN. Reads wheel speeds, steering angles, and other vehicle signals. Outputs VehicleSpeed and CANData.

Inputs / Outputs

Config aliases

CanDataSource, canDataSource, can

Properties

No user-facing properties.

Subtypes

ValueDisplay nameExtra properties
vectorVector CAN3 field(s)
peak_canPEAK CAN3 field(s)

Subtype: vector — Vector CAN

KeyLabelTypeDefaultOptionsDescription / Notes
channelChannel Indexnumber0
baudrateBaudrateselect500000125000, 250000, 500000, 800000, 1000000
senderIdSender IDstringcan

Subtype: peak_can — PEAK CAN

KeyLabelTypeDefaultOptionsDescription / Notes
channelPCAN ChannelselectPCAN_USBBUS1PCAN_USBBUS1, PCAN_USBBUS2, PCAN_USBBUS3, PCAN_USBBUS4
baudrateBaudrateselect500000125000, 250000, 500000, 800000, 1000000
senderIdSender IDstringcan

Example node definition

A full node definition in config.json looks like the block below. Paste it under the sources key of your config, keyed by the node’s instance name (any identifier; it doesn’t have to match the node ID).

{
  "sources": {
    "can": {
      "outEndpoint": "inproc://can_data",
      "type": "vector",
      "settings": {
        "channel": 0,
        "baudrate": "500000",
        "senderId": "can"
      }
    }
  }
}

Field reference

FieldPurpose
outEndpointZMQ / inproc endpoint this source binds to publish its output. The runtime auto-generates one if omitted.
typeSubtype / backend selector. See the Subtypes section above for valid values.
settingsAll user-configurable fields — see the Properties table above.

Connections can also be declared at the top-level connections array when settings.explicitConnections is true, as an alternative to filling inputEndpoints on each node.

Loading documentation…