Skip to content

Latest commit

 

History

History
76 lines (67 loc) · 2.11 KB

CAN.md

File metadata and controls

76 lines (67 loc) · 2.11 KB

CAN

Contents

  1. DB Update
  2. Port Configuration
  3. Data Mapping
  4. E2E

DB Update

EcuExtract > Communication and Topology

  1. Select and remove existing DB

EcuExtract > Overview

  1. Click Import DBC
  2. Set Prefix & Signal Groups for ALL
  3. Check E2E & Type(Normal, Diag, Xcp, Etc.) for each message(=SignalGroup)
  4. Finish

EcuValueCollection > Generate ECU Configuration(=Harmonize)

  1. Harmonize a relevant modules (check the below items)
    • Can Stack
    • Com Stack
    • EcuC
    • Miscellaneous (When there are messages using E2E)
      • ComXf
      • E2EXf
  2. Click Finish

If there are added Rx signal group

Com > Signal Group

  1. Select added Rx signal groups
  2. fill in Notification & Timeout Notification with Bulk Change

Port Configuration

SWC_X > Ports

  1. Add port by choosing proper interface
  2. Check enable Com Specs AND
    1. Set Alive Timeout
    2. Handle Never Received false
    3. Enable Update false
  3. Configure proper InitVal

SWC_X > Runnables

  1. Click Runnable which will use the port data
  2. Select specific Access Type and Click add button
  3. Add proper message from candidate

Variable Access

When signal and properties changed(=ARXML doesn't match to DB)

  1. Copy DataTypes from DB
  2. Amend reference DataTypes of interface in ARXML
  3. Compare and modify InitVal in ARXML

Data Mapping

Making Callback function

  1. Go to SWC
  2. Make receiver port
  3. Make runnable
  4. Rename the runnable
  5. Set the RTE Event w/ DRE & DREE
  6. Set Alive Timeout
    • Should be matched to Timeout in Com module

Caution!

Port can be created by imported CAN message, but DataType is not updated automatically.
It could be possible that mismatch between data and port occur.
Should check Interface, Port, DataType
Port -> Interface -> DataTypes
InitVal only reside in composition so should modify InitVal manually in constant
InitVal doesn't refer to NAME, it convert list to array

Interface and DataTypes are COMMON
Port is INDIVIDUAL for SWC