Skip to main content

DBC smartCORE Module

Description

The dbc module provides a DBC parser via a Fast Message Dispatcher. Data is extracted from a dispatched message and routed to the appropriate channels.

In principle, the module can be used with any Fast Message Dispatcher. In the context of CAN bus, this is appropriate

An image containing text, a screenshot, text, or a number. Automatically generated description

An image containing an icon or logo. Automatically generated description

  • the (generic) CAN bus socket module ("canbus")

Interfaces & Protocols Used

  • CAN-Bus DBC (CAN DBC)
  • Fast Message Dispatching

JSON Configuration

The following section describes the module’s entire JSON configuration and explains the individual parameters.

Example Configuration (Minimal)

{
"module":"DBC1",
"factory":"dbc",
"config":{
"fmd":"CANBus1",
"dbcFileContents":"<Base64-encoded contents of the CAN DBC file>"
}
},

Example Configuration (Maximal)

{
"module":"DBC1",
"factory":"dbc",
"config":{
"fmd":"CANBus1",
"bufferSize":1024,
"dbcFileContents":"<BASE64-encoded contents of the CAN DBC file>",
"dbcParserDebugOutput":true,
"namespace":["directory","subDirectory"],
"channelPrefix":"CAN1__",
"produceOnChangeOnly":true,
"separateEFFlag":false
}
},

Parameter List

Parameter NameRequiredData TypeValid Value RangeDefaultDescription
fmdYESSTRINGFast Message Dispatcher Name (e.g., "CANBus1")
bufferSizeNoINT1 -1024Buffer size of the channels to be created and output
dbcFileContentsYESSTRINGBase64-encoded contents of the CAN DBC file
dbcParserDebugOutputNoBOOLfalse, truefalseFlag to enable additional debug information from the DBC parser
channelPrefixNoSTRINGChannel prefix (useful when multiple DBC modules are used and the DBC files have overlapping channel names)
namespaceNoARRAY [ STRING ]Channel prefix in the form of hierarchically concatenated namespaces
produceOnChangeOnlyNoBOOLtrue, falsetrueOutput only when a value changes
absoluteToleranceNoFLOAT0.0 -0.0Tolerance threshold for detecting a value change
doubleChannelsNoARRAY [ STRING ][]List of channels to be created as double-precision channels
separateEFFlag 1NoboolfalseWhether to distinguish between "Extended IDs" (29 bits) and standard IDs (11 bits). If false, no distinction is made and the EFF flag is removed from the message ID.

Module Information

InformationValue
AuthoroptiMEAS GmbH
Since smartCORE0.120
Module TypeReceiver (Producer)
DependenciesAny Fast Message Dispatcher module (e.g., "canbus", "fmudp")

Footnotes

  1. Available only up to smartCore version 2.10.1.