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 name | required | data type | meaningful value range | default | description |
---|---|---|---|---|---|
fmd | No | STRING | Name of the module instance | Fast Message Dispatcher Name | |
priority | No | INT | 1 - 99 | 80 | Scheduling priority of the CAN bus interface |
writeBufferSize | No | INT | 1 - | 8192 | Max. Max. number of frames in the write buffer |
interface | YES | INT or STRING | 1 - | N/A | Index or name of the CAN bus interface (see smartDEVICE documentation) |
bitrate | No | INT | 1 - | 500000 | Bitrate of the CAN bus interface |
listenOnly | No | BOOL | false, true | false | Listen-only flag of the CAN bus interface |
maxBurstDurationUs | No | INT | 0 - | 0 | Max Burst Duration [us] of the CAN bus interface |
dispatchCanIdAsDataPrefix | No | BOOL | false, true | false | Write 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
Information | Value |
---|---|
Author | optiMEAS Measurement and Automation Systems GmbH |
since smartCORE | 0.120 |
Module type | Dispatcher (Producer) |
Dependencies | any Fast Message Receiver module (e.g. "dbc", "fmproducer") |