DBC smartCORE module
Description
The dbc module provides a DBC parser via Fast Message Dispatcher. Data is extracted from a dispatched message and produced in corresponding channels.
In principle, the module can be operated with any Fast Message Dispatcher. This is useful in the context of CAN bus
- 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 entire JSON configuration of the module and explains the individual parameters.
Example configuration (minimum)
{
"module": "DBC1",
"factory": "dbc",
"config":{
"fmd": "CANBus1",
"dbcFileContents":"<BASE 64 coded content of the CAN DBC file>"
}
},
Example configuration (maximum)
{
"module": "DBC1",
"factory": "dbc",
"config":{
"fmd": "CANBus1",
"bufferSize":1024,
"dbcFileContents":"<BASE 64 coded content of the CAN DBC file>",
"dbcParserDebugOutput":true,
"namespace":["directory", "subDirectory"],
"channelPrefix": "CAN1__",
"produceOnChangeOnly":true,
"separateEFFlag":false
}
},
Parameter list
Parameter name | Required | Data type | Meaningful value range | Default | Description |
---|---|---|---|---|---|
fmd | YES | STRING | Fast Message Dispatcher Name (e.g. "CANBus1") | ||
bufferSize | No | INT | 1 - | 1024 | Buffer size of the channels to be produced |
dbcFileContents | YES | STRING | Base 64 coded content of the CAN DBC file | ||
dbcParserDebugOutput | No | BOOL | false, true | false | Flag for activating additional debug information of the DBC parser |
channelPrefix | No | STRING | Channel prefix (useful if several DBC modules are used and the DBC files have overlapping channel names) | ||
namespace | No | ARRAY [ STRING ] | Channel prefix in the form of hierarchically linked namespaces | ||
produceOnChangeOnly | No | BOOL | true, false | true | production only on value change |
absoluteTolerance | No | FLOAT | 0.0 - | 0.0 | Tolerance threshold regarding detection of a value change |
doubleChannels | No | ARRAY [ STRING ] | [] | List of channels to be created as double precision channels | |
separateEFFlag | No | bool | false | Should a distinction be made between "Extended IDs" (29 bits) and standard IDs (11 bits) or not. If false, no distinction is made and the EFF flag is removed from the message ID. |
Module information
Information | Value |
---|---|
Author | optiMEAS Measurement and Automation Systems GmbH |
since smartCORE | 0.120 |
Module type | Receiver (Producer) |
Dependencies | any Fast Message Dispatcher module (e.g. "canbus", "fmudp") |