Module Parameters for CAN Interface
The CAN interface allows you to set parameters for different types: CAN, CAN FD, and CAN XL. Which modes are supported depends on the capabilities of the hardware system that is used; which mode is actually used depends on the projects that are assigned to the devices.
The following operation modes of the CAN controller can be defined:
CAN | Classic CAN mode only. |
CAN FD | Classic CAN and CAN FD frames are supported. |
CAN XL | Classic CAN, CAN FD, and CAN XL frames are supported. |
CAN XL only | CAN XL frames are supported. Error signaling is disabled. |
CAN XL only, fast mode | In fast mode, transceiver supports baud rates higher than 8 MBaud. Error signaling is disabled. |
To replace a system, the new system must be equivalent to the existing system.
The following shows the module parameters for the CAN bus:
Parameters tab
Enter any name for the hardware module.
Defines the port number assigned to the CAN interface.
You can configure up to 4 CAN interfaces, depending on the hardware selected.
The port number is used to distinguish the interfaces.
Configures CAN controllers for CAN monitoring and CAN trace. The setting of this parameter applies to all devices of the respective CAN controller.
Off
The CAN controller does not receive the frames which are sent out by himself.
This is the default setting.
On
The CAN controller can receive the frames which are sent out by himself.
Note
Activate the parameter only if monitoring or trace was configured to this CAN port.
Defines the bus participation of the CAN controllers for CAN (FD) monitoring and CAN (FD) trace. The setting of this parameter applies to all devices of the respective CAN controller.
Active
Use active mode to monitor signals impacting other bus communication. If you use protocols like XCP, use active mode.
This is the default setting.
Passive
Use passive mode to monitor signals without impacting other bus communication.
Note
If you select passive mode, the controller will now no longer send out frames. The passive mode suppresses the CAN ACK on the bus. All protocols like XCP will fail because the CAN controller will not send out any frames in passive mode anymore. INCA will run into time out of the protocol.
Defines the controller mode master for the CAN interface. The precise values are defined via the hardware.
- INCA:
- User defined:
Defines the operating mode for the CAN controller. You can select the following types:
- CAN: Classic CAN mode only.
- CANFD: Classic CAN and CAN FD frames are supported.
- CANXL: CAN XL frames are supported. Error signaling is disabled.
- CANXL_ONLY: In fast mode, transceiver supports baud rates higher than 8 MBaud. Error signaling is disabled.
Note |
Depending on the selected controller mode, the corresponding parameters are displayed on the Parameters tab. |
The setting of this parameter applies to all devices of the respective CAN controller. It configures the CAN frame separation time (STmin) accuracy, especially for flashing. The configuration is a trade-off between performance and STmin accuracy:
Estimated
The system is optimized for best performance. However, STmin underruns may occur sporadically on the CAN bus.
This is the default setting.
Accurate
The configured STmin time is guaranteed for UDS and KWP devices of the corresponding CAN controller. However, the performance can be significantly slower for all devices of the corresponding CAN controller(depending on the actual hardware).
Note |
It is recommended to use the setting Estimated whenever possible. Only use the setting Accurate, if STmin underruns do occur and if these lead to problems in the ECU. This parameter is not available for all hardware systems. |
Defines the possible transmission rates for the CAN interface. The precise values are defined via the hardware.
- Low: transmission rates up to 125 kBaud can be selected.
- High: transmission rates from 125 kBaud can be selected.
CAN Settings
If more than one device is connected to the same CAN controller, it can happen that the different devices, having different projects associated, have different CAN settings. To avoid problems being caused by conflicting CAN settings, it is possible to define which of the connected CAN devices will be used as master device for the setting of the CAN controller.
Please note that only CAN devices of the types KWP2000, UDS, CCP, and XCP with projects being assigned can be selected as CAN master devices; devices of the types CAN-Monitoring and CAN-Output can not be selected as CAN master device.
By default, the first master capable device that is shown under the controller item in the hardware tree is selected. If this device gets removed, the next device under the CAN controller will automatically be selected.
You can select from all master capable devices that are listed under the CAN controller item in the hardware tree.
<device name>
You can select any master capable device as master device; the list box shows all devices that are configured for this CAN controller, i.e. all devices that are shown under the controller item in the hardware devices tree.
User defined
The settings of the CAN devices will not be synchronized to the same setting.
WARNING
If the settings for the individual devices are different, the configuration of the hardware might fail.
Defines the sample point for data for CAN.
Defines the bit timing logic cycles for CAN.
Defines the synchronization jump width with a range from 1 to 128 for CAN.
Defines the synchronization edge:
- SINGLE
- DUAL
CAN FD Settings
Note |
This setting is used for CAN FD communication. It is valid in addition to the regular CAN settings. |
If more than one device is connected to the same CAN FD controller, it can happen that the different devices, having different projects associated, have different CAN FD settings. To avoid problems being caused by conflicting CAN FD settings, it is possible to define which of the connected CAN devices will be used as master device for the setting of the CAN FD controller.
By default, the first master capable device that is shown under the controller item in the hardware tree is selected. If this device gets removed, the next device under the CAN FD controller will automatically be selected.
You can select from all master capable devices that are listed under the CAN FD controller item in the hardware tree. The following CAN devices are master capable:
- CAN devices of the types UDS and XCP with CAN FD projects being assigned can be explicitly selected as CAN FD master devices.
- If there is no such device available and the first device is a CAN Monitoring device, then this device will be used temporarily as CAN FD master. The next device with a CAN FD project will replace automatically the CAN Monitoring device as master.
This setting is used for CAN FD communication. It is valid in addition to the regular CAN settings.
Defines the transmission rate for the data part of the CAN FD frame.
If a CAN FD project is assigned to a device under that controller, the following parameters may be additionally shown (depending on the assigned project description; for details on these parameters refer to the CAN FD specification):
Defines the sample point for data for CAN FD.
Defines the bit timing logic for CAN FD.
Defines the synchronization jump width (SJW) with a range from 1 to 128 for CAN FD
Defines the synchronization edge:
- SINGLE
- DUAL
Defines the transceiver delay compensation for CAN FD.
Defines the frame format for CAN FD.
CAN XL Settings
The selected device is the master for miscellaneous XL controller options.
Defines the transmission rate for the data part of the CAN XL frame.
Defines the sample point for data for CAN XL.
Defines the bit timing logic (BTL) for data for CAN XL.
Defines the synchronization jump width (SJW) for data for CAN XL.
Defines the secondary sample point for data for CAN XL.
Defines the transmitter delay compensation for CAN XL.
See also
Working in the Hardware Configuration Editor