Skip to main content

CAN bus smartCORE socket module

Description

The canbus module provides the CAN bus hardware interface via Fast Message Dispatcher.

Here

  • on the one hand read CAN bus messages are dispatched
  • on the other hand a write mechanism is provided

In principle, the module can be operated with any Fast Message Receiver. In the context of CAN bus, these are useful

  • the (generic) Fast Message Producer ("fmproducer")
  • the DBC Receiver Module ("dbc")

Interfaces & protocols used

  • CAN bus
  • 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": "CANBus1",
"factory": "canbus",
"config":{
"interface":1
}
}

Example configuration (maximum)

    {
"module": "CANBus1",
"factory": "canbus",
"config":{
"fmd": "CANBus1",
"priority":80,
"writeBufferSize":1024,
"interface":1,
"bitrate":500000,
"listenOnly":false,
"maxBurstDurationUs":0,
"dispatchCanIdAsDataPrefix":false
}
}

Parameter list

parameter namerequireddata typemeaningful value rangedefaultdescription
fmdNoSTRINGName of the module instanceFast Message Dispatcher Name
priorityNoINT1 - 9980Scheduling priority of the CAN bus interface
writeBufferSizeNoINT1 -8192Max. Max. number of frames in the write buffer
interfaceYESINT or STRING1 -N/AIndex or name of the CAN bus interface (see smartDEVICE documentation)
bitrateNoINT1 -500000Bitrate of the CAN bus interface
listenOnlyNoBOOLfalse, truefalseListen-only flag of the CAN bus interface
maxBurstDurationUsNoINT0 -0Max Burst Duration [us] of the CAN bus interface
dispatchCanIdAsDataPrefixNoBOOLfalse, truefalseWrite the 32-bit CAN ID in little endian representation before the forwarded CAN bus data frame. This is useful for CAN ID-independent fast message receivers, such as CAN RAW and debugging.

Module information

InformationValue
AuthoroptiMEAS Measurement and Automation Systems GmbH
since smartCORE0.120
Module typeDispatcher (Producer)
Dependenciesany Fast Message Receiver module (e.g. "dbc", "fmproducer")