๐ŸŽค

Controller Area Network Session: Introduction - Embedded System

์ƒ์„ฑ์ผ
2023/08/03 09:14
ํƒœ๊ทธ
Parent item
Status
Permanently Paused
Sub-item
language
๐Ÿ‡ฌ๐Ÿ‡ง

Embedded Systems

What is Embedded System? What are the main features?

General Definition

Embedded Systems:
โ€ข
coputer is part of enclosing system
โ€ข
computer is not recognizable as such
โ€ข
computer is used to control physical systems โ†’ cyber-physical systems
โ€ข
computer is communicating with the environment via sensors and actuators
โ€ข
computer is communicating with users via dedicated HMIs (switches, buttons, LEDs, (touch-)displays)

Specialized Definition

Embedde systems in cars:
โ€ข
every systems which is based on an microcontroller (ECU: embedded control unit)
โ€ข
domains with different requirements with respect to the application area
โ€ข
ECUs are coupled by a set of different networks/field busses
โ€ข
sw&hw = 40% of the production cost of a car
โ€ข
=(1...40)โˆ—106โˆ—LoC/car=(1...40)*10^6*LoC/car

Requirements

(1)

Functional - Requirements
What happens if you push button x?
Functional Requirements define actino-reaction pairs what the system should do
โ†’ Definition of all โ€œwhat if โ€ฆ then โ€ฆโ€ actions
โ€ข
If button A is pressed the system is toggled(on/off)
โ€ข
If button B is pressed the system produces a pot of coffee
โ€ข
โ€ฆ
โ€ข
If water is low then LED 1 is switched on
Can we buid a system if we have all functional requirements?

(2)

Functional - Requirements - Non Functional
โ€ข
The production of a pot of coffee has to be completed in less than 40s
โ€ข
The power consumption of the system in standby mode has to be less than 1W
โ€ข
โ€ฆ

Real-time Systems

Definitions

Categories

Categorization based on the neccessary QoS
Hard Real-Time Constraints Missing the time constraints can lead to damage and/or danger to the system and/or users. (ex: automatic driving, heart pacemaker)
Real-Time constraints
Fixed Real-Time Constraints Missing the time constraints โ†’ System reactions is of no use โ†’ No damage or danger (ex. GPS-position of a vehicle)
Soft Real-Time Constraints Timing constraints or โ€œonlyโ€ guidelines. missing them only leads to less QoS (ex. digital video/audio transmission)

Operating Systems

Usage of an OS depends on the application and the uC.
Application
Simple 8/16 Bit uC no OS (bare metal)
Complex 16/32 Bit uC
(hard) Real-Time constraints real time OS (RTOS) โ†’ FreeRTOS, mbed, AUTOSAR-OS, QNX, โ€ฆ
(no/soft) Real-Time constraints General purpose OS (Linux, Windows, โ€ฆ)
Efficient programming of embedded applications
(Deep) understanding of uC & RTOS are helpful/mandatory

Microcontrollers (uC) and ECUs

``skip``

Computer Architecture - Von Neumann

(1)