CAN-BUS
- Updated2025-01-10
- 3 minute(s) read
CAN
RBS
The CAN RBS Module provides a complete CAN restbus simulation. NI-VCOM supports CAN instruments that have their own time management and instruments that depend on software-controlled timing provided by NI-VCOM. The first category has a more precise timing for the restbus simulation. Additionally, it supports the simulation of CAN network management (NM).
Complete a CAN RBS based on the information provided in such an AUTOSAR-XML or .dbc file, which is specified in the Network Descriptor tag of the NI-VCOM configuration.
When using a .dbc file, RBS descriptor XML files provide more RBS information. Create RBS descriptor XML files with the RBSConfig tool (For more information, refer to Using RBSConfig).
- Autosignals: Automatically calculated signal values. To configure
autosignals using RBSConfig tool, refer to Configuring a Restbus
Simulation File. CANs support the following autosignals:
- Ramp (multiple bits): The bits contain a message counter.
- Checksum (multiple bits):
- ChecksumJ1850 (8 Bit)
- ChecksumJ1850 with User Bytes (8 Bit)
- Custom Check sum CRC-8
- ChecksumXOR (8 Bit)
- ChecksumXOR4Bit (4 Bit)
- ChecksumAddWithCarry (8 Bit)
- ChecksumAddAndComplementToOne (8 Bit)
- Parity (1 bit)
- Toggle (1 bit)
- Signal TX_enable: This signal can activate the RBS for message, ECU, and CAN channel.
- Signal TX_kickout: This signal can send a CAN message immediately.
- Signal TX_cycletime: This signal can change the cycle time of a message in milliseconds (ms).
- Signal NM_enable: This signal can activate the NM simulation for the ECU and CAN channel level.
- Signal NM_sleepInd: This signal can set the sleep indication bit.
- Signal NM_wakeUp: This signal can wake up the ECU.
CAN
Message Disassembly with DBC and AUTOSAR XML File
- RX_time: The signal value corresponds to the current module software time, in seconds, which is configured through the clock_src event source.
- RX_deltatime: The signal value is calculated from the hardware time stamps, in seconds, of the last two consecutive messages on receive.
CAN-FD
CAN-FD allows you to increase the data bit rate by transferring up to 64 payload bytes in a single message. To activate this function, you must set the Data BitRate parameter in the Configuration Tool. For more information, refer to CAN Configuration.
Related Information
- CAN Configuration
- Transmission Modes
NI-VCOM restbus simulation supports different transmission modes. This is already defined in AUTOSAR files, but you must perform additional configuration using the RBS Config Tool if you are using .dbc or .ldf files.
- Using RBSConfig
- Configuring a Restbus Simulation File
The RBSConfig software tool can generate an RBS descriptor XML file, which you can specify for an RBS in the Configuration tool. For more information, refer to CAN BUS and LIN BUS.