Skip to main content

CAN-Bus smartCORE Socket Module

Description

The CAN-Bus module provides the CAN-Bus hardware interface via the Fast Message Dispatcher.

It

  • 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 the CAN bus, the following are appropriate:

  • 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 module’s entire JSON configuration and explains the individual parameters.

Example Configuration (Minimal)

{
"module":"CANBus1",
"factory":"canbus",
"config":{
"interface":1
}
}

Example Configuration (Maximal)

{
"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 TypeValid Value RangeDefaultDescription
fmdNoSTRINGName of the module instanceFast Message Dispatcher Name
priorityNoINT1 - 9980Scheduling priority of the CAN bus interface
writeBufferSizeNoINT1 -8192Maximum 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 -0Maximum burst duration [us] of the CAN bus interface
dispatchCanIdAsDataPrefixNoBOOLfalse, truefalsePrepend the 32-bit CAN ID in little-endian format to the forwarded CAN bus data frame. This is useful for CAN ID-independent fast message receivers, such as CAN RAW and debugging
keepEFFFlag 1NoBOOLfalse, truefalseTypically, the EFF flag is set automatically in CAN addressing, depending on the value range of the CAN ID (11 / 29 bits). For interpretation, the bit can be passed on to the fmproducer. In this case, 29-bit addresses must be specified with the offset 2147483648 (0x80000000).

Module Information

InformationValue
AuthoroptiMEAS GmbH
Since smartCORE0.120
Module TypeDispatcher (Producer)
DependenciesAny Fast Message Receiver module (e.g., "dbc", "fmproducer")

Footnotes

  1. Available only starting with smartCore version 2.10.1.