AUTOSAR COM

What COM does

COM is the mail room of a car's control unit. Applications hand it single values. It gets them to other control units, and brings theirs back.

The problem COM solves

A car has many small computers, called control units or ECUs. They talk over a shared wire, the bus. On most cars that is CAN; newer ones also use Ethernet.

The software inside a control unit thinks in single values: the speed, a temperature, "door open". The bus does not carry single values. It carries small packets of bytes. Somebody has to translate, and decide when each packet is sent. That somebody is COM.

what the application sees

Signal

One value with a meaning, for example the speed.

what travels

Packet

A handful of bytes holding several signals side by side. AUTOSAR calls it an I-PDU.

Follow one value

Click through the journey of one speed value from one control unit to another.

COM's jobs

Everything COM does is one of these jobs. Each gets its own lesson.

JobIn plain wordsLesson
Decide when to sendRight away, on a timer, or both.2, 3, 4
Decide when to tellTell the application at once, or a moment later.2
Start values and "new" marksEvery signal has a value from the start; a mark shows which signals are really new.5
Watch for timeoutsNotice when an expected packet stops coming.6
Handle invalid valuesLet a sender say "I have no good value right now".7
FilterPass on only the received values the application cares about.8
NotifyTell the application what happened: received, sent, timed out.9
Keep values togetherValues that belong together travel together.10
Switch packets on and offWhole sets of packets can be started and stopped.11
Pass signals onCopy a received signal straight into another packet.12
Handle big dataData that is too large for one packet, or changes size.13
Pack and convertPut each signal's bits in the right place and byte order.16, 17

What COM does not do. COM does not know which bus it is on. It hands every packet to one neighbour below it and receives packets from that neighbour. Everything specific to CAN or Ethernet happens further down. Lesson 14 shows that road.

The AUTOSAR words

Plain word hereAUTOSAR word
Control unitECU
ApplicationSoftware component (SWC). It reaches COM through a layer called the RTE.
SignalSignal
PacketI-PDU
The neighbour below COMPDU Router (PduR)

Source: AUTOSAR COM specification, R25-11, chapter 1 (main features) and chapter 2 (definitions).