DEP — DEVlink Engineering PlatformUser Guide

Networks and Restbus (CAN)

DEP simulates vehicle and aircraft buses virtually. You can import a DBC database, let DEP play the ECUs that are not present (restbus simulation), generate signal values, and watch decoded traffic live. This chapter starts with a complete walk-through of the bundled CAN example, then describes each tool.

Before you start

RequirementWhat you need
EditionDEP Integrator or higher (network.can, network.canfd, network.lin, network.ethernet, network.arinc, restbus.author, restbus.execute). See Licensing and Editions.
FilesA DBC database for CAN and CAN FD; LDF or FIBEX (CAN) for the other databases. The tutorial uses the bundled project CAN_Restbus_Demo.rbsproj.
ExecutionNo other execution owner active. Stop or release a System session before you start acquisition (see One execution owner at a time).

Steps

Tutorial: the virtual CAN demo

The bundled project Virtual CAN controller and vehicle (CAN_Restbus_Demo.rbsproj) has three ECUs on the network CustomerCAN (CAN, 500 kbit/s) and five cyclic 100 ms messages:

Virtual CAN demo: TestBench, DriveController and CustomerVehiclePlant exchange five 100 ms messages on CustomerCAN at 500 kbit/s TestBenchrestbus · simulatedpedal sine 35 ± 25 % DriveControllergain 4 Nm per % CustomerVehiclePlant1850 kg · 0.33 m wheel 0x100 DriverInput 0x200 DriveCommand 0x110 RoadLoad (constant 180 N) 0x300 VehicleState 0x310 ElectricalState · 0x300 VehicleState CustomerCAN · CAN 500 kbit/s · virtual only · physical CAN output locked
The CAN demo. TestBench simulates the driver pedal (a sine of 35 % ± 25 % with an 8 s period). DriveController turns pedal into torque (4 Nm per %). The vehicle plant computes speed and current.
IDMessageTransmitterReceivers
0x100DriverInputTestBenchDriveController
0x110RoadLoadTestBenchCustomerVehiclePlant
0x200DriveCommandDriveControllerCustomerVehiclePlant
0x300VehicleStateCustomerVehiclePlantDriveController, TestBench
0x310ElectricalStateCustomerVehiclePlantTestBench

The demo is synthetic. It is not customer ECU software or a calibrated vehicle. The plant uses 1850 kg, a 0.33 m wheel radius and a constant 180 N road load.

Part A: run the System model (optional)

  1. Open the projectOverview → Projects → Open on Virtual CAN controller and vehicle. Save a working copy.
  2. Check and runOpen System → Check → Run. With the initial pedal of 35 %, DriveController outputs 140 Nm and the vehicle speed rises. See Results.
  3. Release the sessionSelect Reset & release session. This is required before Part B: the System run and the CAN acquisition are separate execution owners.
Run results of the System MIL profile: DriveController output 140 Nm, vehicle speed increasing.
Run results of the System MIL profile: DriveController output 140 Nm, vehicle speed increasing.

System Run does not drive this demo's CAN frames. The frames come from the restbus runtime started in Part B. Always stop the System before you start acquisition.

Part B: watch live CAN traffic

  1. Open the networkSelect System → Networks & restbus. In Activity choose CAN / CAN FD.
  2. Arrange the viewSelect Recommended in the toolbar. In Network topology, select Auto layout and then Fit. Three ECU cards appear: TestBench, DriveController and CustomerVehiclePlant.
  3. See the messagesClose Network topology with its ×. Messages and signals now lists all five messages with ID, TX, RX and signal count.
  4. Inspect the generatorSelect DriverInput, expand Details and transmission and select Configure transmission. DEP opens the integrated runtime, where the Accelerator_pct sine generator is already enabled.
  5. Start streamingReturn to System → Networks & restbus, choose the activity Traffic / Streaming and select Recommended. Keep Live local restbus runtime selected and select Start acquisition.
  6. ObserveFrames appear in CAN / CAN-FD Trace. DriverInput, DriveCommand, VehicleState and ElectricalState payloads change, while RoadLoad stays constant. Select a frame to see it decoded in Frame / Signal Detail.
  7. PauseSelect Pause before you leave the workspace. Acquisition stops and the local runtime pauses.
CAN / CAN FD activity: the network table with the imported DBC, the network topology with three ECUs, and selection properties.
CAN / CAN FD activity: the network table with the imported DBC, the network topology with three ECUs, and selection properties.
With the topology closed, Messages and signals lists the five messages.
With the topology closed, Messages and signals lists the five messages.
Traffic / Streaming during acquisition: the trace table, frame detail and trace statistics.
Traffic / Streaming during acquisition: the trace table, frame detail and trace statistics.
A DriveCommand frame selected: message, network, direction, ID, timestamp, transmitter, receivers and payload.
A DriveCommand frame selected: message, network, direction, ID, timestamp, transmitter, receivers and payload.

Read the network overview

The default activity, Overview / Topology, summarises the networks in the active System revision: counts per protocol (CAN, CAN FD, LIN, Ethernet, EtherCAT, ARINC 429, ARINC 825) and tabs for Networks, Properties, Routes & mappings and Health & diagnostics. Use Edit topology in System Engineering to change it.

Network Overview / Topology.
Network Overview / Topology.

The Protocol engineering cards open deeper tools only when you need them: CAN / CAN FD (DBC, ECU membership, messages, trace and CAN diagnostics), ARINC 429 / ARINC 825 (labels, profiles, virtual execution, trace), LIN and Ethernet / EtherCAT.

Networks and DBC import

In the CAN / CAN FD activity, the Networks panel lists each network with type, bitrate, physical binding and database.

  • New network: choose CAN or CAN FD, the bitrate and the backend (Virtual).
  • Import DBC… or Replace: DEP validates the database, keeps compatible project mappings, and records a revision diff before the new database becomes active, for example 10 added · 0 removed · 0 changed · 0 renamed · 0 broken mappings. If a mapping cannot be kept automatically, resolve it with Controlled remapping / Remap.
  • Delete removes the network after confirmation.

LIN and other databases are handled in the Network databases & LIN panel: DBC, LDF and FIBEX (CAN). Select Inspect database file, review the findings, then Apply reviewed import. For LIN you can Prepare network run, Step ticks, Apply fault, Export LIN history and Load LIN replay.

Configure ECUs and topology

  • New ECU adds an ECU. Select an ECU to edit its Selection properties: name, description, role (External ECU, Restbus simulated, vECU, SIL process, Physical ECU, Monitor only) and Runtime mode.
  • Set mode…: Real, Simulated, Monitor or Disabled. A simulated ECU is played by DEP's restbus. A disabled ECU sends nothing.
  • Executable vECU: assign the model or software that computes the ECU's signals.
  • DBC node mappings: tie the ECU to a node of the database (Map imported DBC node / Unmap).
  • Layout tools: Align H, Align V, Distribute H, Distribute V, Auto layout, Hide selected, New variant.
  • Overlay tabs above the canvas: Architecture, Ownership, Traffic, Runtime, Errors, Deployment.
  • Import topology / Export topology exchange the topology as a file. Add gateway route forwards messages between networks.

Configure message transmission and generators

Select a message, expand Details and transmission and select Configure transmission.

SettingOptions
Tx modeCyclic, Event-triggered, Cyclic + event, On change, RX-triggered, Manual
TimingCycle time and delays
Alive counterAdds a rolling counter signal
CRCXOR-8, SUM-8, SAE J1850 CRC-8
ActionsApply Tx configuration, Trigger manually

Signal generators produce values for simulated ECUs: Constant, Ramp, Sine, Square, Repeating table and Scripted sequence. Select Enable generator to activate one. Import trace → stimulation replays a recorded trace as stimulus.

Configure transmission opens the integrated runtime in Runs → Results & recordings. Its Project Explorer lists networks, ECUs, databases, models, scenarios, faults and recordings.
Configure transmission opens the integrated runtime in Runs → Results & recordings. Its Project Explorer lists networks, ECUs, databases, models, scenarios, faults and recordings.

Stream traffic

ControlPurpose
Start acquisition / PauseStart or pause the local restbus runtime and the capture.
Clear bufferEmpty the trace.
SourceLive local restbus runtime
Channel, direction, filterAll channels or one network; RX + TX, RX or TX; filter by ID, message or signal.
TimeRelative time, Delta time or Wall clock.
Capture trigger / Arm triggerStart capturing when a message name or ID appears.
Save filterStore the current filter as a named preset.
Frame detailSelect message, Open in topology, Add marker.

Work with ARINC 429 and ARINC 825

Choose the activity ARINC 429 / ARINC 825 to work with labels, profiles, virtual execution and traces. The Aircraft ARINC Roll and ElectricAircraft examples use virtual ARINC buses.

Connect buses to models

Models exchange values with buses through Signal Mappings, and in the integrated runtime through Signal Bindings (Library → Software / FMI / SSP: model variable ↔ restbus signal, with optional scale and offset).

Results

  • CAN / CAN-FD Trace lists each frame; Frame / Signal Detail decodes the selected frame: message, network, direction, ID, timestamp, transmitter, receivers and payload.
  • Trace Statistics shows for each message the count, Logical Hz (spacing in simulation time, about 10 Hz for 100 ms messages), Wall Hz (acquisition throughput on your PC) and the configured cycle. Compare Logical Hz with the configured cycle to judge the timing.
  • The NETWORK ANALYSIS panel of the CAN activity shows bus load, frame rate, timing and CAN state for each network.
  • To keep traffic, record it in Results and Recordings.

Limits

  • All buses in DEP are virtual. DEP does not connect to physical CAN, LIN or Ethernet buses, and the trace header always shows OUTPUT LOCKED. ARINC is virtual only, and DEP does not connect to aerospace hardware (OUTPUTS LOCKED).
  • The trace keeps a bounded history of 20,000 frames.
  • Starting acquisition clears the old trace buffer, so traces from different resets are never mixed.
  • The network overview is read-only; topology changes are made in System Engineering.
  • System Run and restbus acquisition are separate execution owners and do not run at the same time.

Troubleshooting

SymptomUsually meansAction
No messages configured — import a DBC in TopologyThe network has no messages.Import a DBC in the CAN / CAN FD activity.
Acquisition refuses to startAnother runtime owns execution, for example a System session.Stop that owner first, for example with Reset & release session in System Engineering.
The restbus is faultedThe integrated runtime stopped on a fault.Review and reset it in Runs → Results & recordings, activity Runs / Recording / Replay.
Mappings become broken after ReplaceThe new DBC renamed or removed signals.Use Controlled remapping / Remap.
No CAN frames during a System runSystem Run does not drive the demo's frames.Release the System session and start acquisition in Traffic / Streaming.